Update a thread
https://anjal.app/v1/inboxes/{id}/threads/{threadId}Applies to every message in the thread: labels (replace with labels,
or change with addLabels / removeLabels), read, starred, archived
and spam. Labelling a thread labels each of its messages.
Path parameters
idrequired string | Inbox UUID |
threadIdrequired string |
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 the thread to Spam; false recovers it. |
Responses
updatedboolean | |
threadIdstring | |
messageCountinteger | |
labelsstring[] |
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.