Update a message
https://anjal.app/v1/inboxes/{id}/messages/{messageId}Change labels (replace with labels, or change with addLabels /
removeLabels) and state (read, starred, archived, spam). Returns the
message's labels after the change.
Path parameters
idrequired string | Inbox UUID |
messageIdrequired string | Message UUID |
Request body
Content-Type: application/json
labelsstring[] | string | Labels as an array or a comma-separated string. Stored lowercase and deduplicated; at most 32 labels of at most 64 characters, no commas. |
addLabelsstring[] | string | Labels as an array or a comma-separated string. Stored lowercase and deduplicated; at most 32 labels of at most 64 characters, no commas. |
removeLabelsstring[] | string | Labels as an array or a comma-separated string. Stored lowercase and deduplicated; at most 32 labels of at most 64 characters, no commas. |
isReadboolean | |
isStarredboolean | |
isArchivedboolean | |
isSpamboolean | true moves it to Spam; false recovers it. |
Responses
updatedboolean | |
idstring | |
labelsstring[] | |
isReadboolean | |
isStarredboolean | |
isArchivedboolean | |
isSpamboolean |
errorrequired string | |
codestring |
errorrequired string | |
codestring |
Authentication
Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.