Skip to main content
PATCH
Update Message Labels
Adds or removes labels on one message and returns message_id with the resulting labels. Labels are the only mutable part of a received message. Writes to the shared AgentMail workspace: Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created, and what you write here is visible and editable by the next caller. Read the current labels with get_agentmail_inbox_message.

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.

message_id
string
required

ID of message.

Body

application/json
add_labels

Label or labels to add to message.

remove_labels

Label or labels to remove from message.

Response

Response with status 200

message_id
string
required

ID of message.

labels
string[]
required

Labels of message.