Skip to main content
DELETE
Delete Any Thread
Permanently deletes a thread addressed by id alone, and every message in it. Returns no body. This cannot be undone, deletes more than one message, and names no inbox — Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created, so it can destroy a conversation belonging to another caller. Read it first with get_agentmail_thread; the scoped twin is delete_agentmail_inbox_thread.

Example

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer authentication

Path Parameters

thread_id
string
required

ID of thread.

Query Parameters

permanent
boolean

If true, permanently delete the thread instead of moving to trash.

Response

Successful response