InboxesThreads

Update Thread

Updates thread labels. Cannot add or remove system labels (sent, received, bounced, etc.). Rejects requests with a 422 for threads with 100 or more messages.

patch/v0/inboxes/{inbox_id}/threads/{thread_id}

Request

  • Base URL
    https://api.agentmail.to
  • URL
    https://api.agentmail.to/v0/inboxes/{inbox_id}/threads/{thread_id}
  • Auth
    HTTP bearer

Path parameters

inbox_idstring required

The ID of the inbox.

thread_idstring required

ID of thread.

Request body

add_labelsstring[] nullable

Labels to add to thread. Cannot be system labels.

remove_labelsstring[] nullable

Labels to remove from thread. Cannot be system labels. Takes priority over add_labels (in the event of duplicate labels passed in).

Response

thread_idstring required

ID of thread.

labelsstring[] required

Labels of thread.

Changes

No recorded changes to this operation across all 1 revision of this API.