Skip to main content
DELETE
Delete Thread
Permanently deletes a thread and every message in it. Returns no body. This cannot be undone and it removes more than one message — Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created, so read the thread with get_agentmail_inbox_thread first. To hide it instead, relabel with patch_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

inbox_id
string
required

The ID of the inbox.

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