v1

latestOpenAPI 3.0.02026-07-13474670.4 KB
Messages

Add a label to a message

To help organize messages and group messages together, add a label to a message. Labels are used in the Inbox UI to group messages.

When successful, returns 200 with a subset of the message object.

When the label already exists on the message, the message is not modified and the API endpoint returns 200.

No PUT body is needed.

put/addresses/{email}/messages/{messageId}/labels/{label}

Response

Sets the specified label on a message.

_idstring string

Unique Mailsac-generated identifier for an email message

labelsMessageLabel[]

Labels for an email message

Example response

{
  "_id": "m3phnJ2ag3example-0"
}