Delete all inbound messages matching filters
POST /v1/inbound-messages/delete-all
Soft-delete inbound messages matching the specified filters.
Processes in chunks for reliability. Returns the count and IDs of deleted messages.
On error, the response includes an error object: DELETE_FAILED if no rows were
deleted, or PARTIAL_DELETE_FAILURE if some rows were committed before the error.
Maximum 1000 messages per request.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Comma-separated list of statuses to match.
Restrict to messages for this inbound endpoint.
Only delete messages received at or after this time (RFC 3339).
Only delete messages received before this time (RFC 3339).
Maximum messages to delete (1–1000, default 1000).
Responses
Section titled “ Responses ”Delete-all results
object
object
Number of messages deleted
IDs of deleted messages
Present only on partial failure
object
object
Unique identifier for this request (useful for support)
Example
req_xyz123Example
{ "data": { "deleted": 42, "deleted_message_ids": [ "01935abc-def0-7123-4567-890abcdef012" ] }, "meta": { "request_id": "req_xyz123" }}Invalid request
object
object
Machine-readable error code
Example
INVALID_REQUESTHuman-readable error message
Example
endpoint must be a valid HTTPS URLobject
Unique identifier for this request (useful for support)
Example
req_xyz123Examples
Endpoint not found
{ "error": { "code": "ENDPOINT_NOT_FOUND", "message": "endpoint not found" }, "meta": { "request_id": "req_xyz123" }}Invalid endpoint ID format
{ "error": { "code": "INVALID_REQUEST", "message": "endpoint_id must be in format ep_xxx" }, "meta": { "request_id": "req_xyz123" }}Invalid payload
{ "error": { "code": "INVALID_REQUEST", "message": "payload must be valid JSON" }, "meta": { "request_id": "req_xyz123" }}Invalid headers
{ "error": { "code": "INVALID_HEADERS", "message": "header 'Host' is forbidden and cannot be overridden" }, "meta": { "request_id": "req_xyz123" }}Unauthorized - Invalid or missing API key
object
object
Machine-readable error code
Example
INVALID_REQUESTHuman-readable error message
Example
endpoint must be a valid HTTPS URLobject
Unique identifier for this request (useful for support)
Example
req_xyz123Example
{ "error": { "code": "UNAUTHORIZED", "message": "Invalid or missing API key" }, "meta": { "request_id": "req_xyz123" }}Internal server error
object
object
Machine-readable error code
Example
INVALID_REQUESTHuman-readable error message
Example
endpoint must be a valid HTTPS URLobject
Unique identifier for this request (useful for support)
Example
req_xyz123Example
{ "error": { "code": "INTERNAL_ERROR", "message": "An internal error occurred" }, "meta": { "request_id": "req_xyz123" }}Enter your credentials to populate code examples throughout the docs.