Email

Batch get messages

Changed on

Fetches up to 500 messages by id in one request. Missing or foreign ids are silently omitted; compare the returned count against the ids you sent to detect misses.

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

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
message_ids, string[] required

Message ids (msg_…), up to 500

Response

Messages

object required
object, 'list' required
data, EmailMessage[] required
has_more, boolean required
url, string

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