inboxes > messages
Batch Update Messages
Changed onApply one label change to up to 50 messages in a single request. The same add_labels and remove_labels apply to every message id, and at least one of them must be provided. The update is atomic: either all resolved messages are updated or none are. Missing or restricted ids are silently excluded; compare count against limit to detect exclusions.
CLI:
agentmail inboxes messages batch-update --inbox-id <inbox_id> --message-ids <id1> --message-ids <id2> --add-labels read --remove-labels unread
post/v0/inboxes/{inbox_id}/messages/batch-update
Request
- Base URLhttps://api.agentmail.to
- URLhttps://api.agentmail.to/v0/inboxes/{inbox_id}/messages/batch-update
- AuthHTTP bearer
Path parameters
inbox_idstring required
The ID of the inbox.
Request body
Response
Response with status 200
Changes
- breaking
the request property
became not nullable - breaking
the request property
became not nullable - info
the endpoint scheme security
Bearerwas added to the API - info
the endpoint scheme security
BearerAuthwas removed from the API - info
api tag
inboxes > messagesadded - info
api tag
InboxesMessagesremoved - info
request body became optional
- breaking
- info
endpoint added
- info