Email

Batch update message labels

Changed on

Applies one label change to up to 50 messages, all or none. Ids that are missing or belong to another inbox are silently omitted; compare count with limit to detect misses. The held label can only be changed by a person in the Crevio inbox.

post/email/inboxes/{inbox_id}/messages/batch-update

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

inbox_id, string required

Inbox id (inbox_…)

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required

At least one of add_labels or remove_labels is required.

message_ids, string[] required

Message ids (msg_…), up to 50, no duplicates

add_labels, union

Labels to add. Crevio uses unread (new incoming mail), starred and archived (out of the inbox, still listed) like Gmail; spam and trash hide the mail from lists and search until removed. held can't be changed through the API.

remove_labels, union

Labels to remove. Removing spam or trash brings the mail back.

Response

Updated messages

object required
limit, integer required

Number of ids sent

count, integer required

Number of messages updated

updates, object[] required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    2 more changes in this revision