Skip to content

Bulk Delete Threads

Delete up to 100 threads in one call.

POST/api/v1/inbox/threads/bulk-delete

Requires an API key with the write scope.

The threads are removed at once and each deletion writes an audit entry. Removing the messages from the mailboxes runs in the background and is best-effort. Ids that are not in this workspace are skipped. This cannot be undone.

Body Parameters#

idsstring[]bodyrequired

Thread identifiers, 1 to 100.

Response#

Returns { "data": { "deleted": 2 } }.

Errors#

StatusDescription
401Missing, invalid, revoked or expired API key
403API key does not have the required scope: write
422ids is empty or has more than 100 items

Rate Limit#

  • 100 requests per minute, shared by every bulk call in your workspace. Fixed 60-second window.
  • Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (unix epoch seconds) and X-RateLimit-Bucket (bulk).
  • A 429 response includes a Retry-After header (seconds until the bucket resets).

For client-side patterns, see Rate Limiting.

Was this page helpful?
View as MarkdownLast updated November 4, 2026