Hoppa till innehållet

Read a received message

GET/v1/inbound/{id}

TypeScript sendora.inbound.get(inboundMessageId)

Python sendora.inbound.get(inbound_message_id)

PHP $sendora->inbound->get($inboundMessageId)

Java sendora.inbound().get(inboundMessageId)

Key sk_… a server key

The message with its envelope, parties, headers, text, HTML and attachment descriptors; the attachment bytes and the raw message are downloads of their own. Once the stream’s content window has passed, the content fields are null and contentAvailable is false.

Parameters

  • idin pathstring (uuid)required

    The inbound message id.

Responses

Every field of a response is always present. A field that can be null says so in its type.

200The received message with everything but the attachment bytes.

Example (68 lines)
{
  "inboundMessageId": "4d1f8b2e-9c3a-4e7b-8f21-6a5d0c9e7b31",
  "streamId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "receivedAt": "2026-09-19T08:00:02.000Z",
  "envelopeRecipient": "7c9e6679742540de944be07fc1f90ae7@inbound.sendora.se",
  "mailboxHash": null,
  "sizeBytes": 48213,
  "attachmentCount": 1,
  "hasText": true,
  "hasHtml": false,
  "parseIssue": null,
  "authentication": {
    "spf": "pass",
    "spfHelo": "pass",
    "dkim": "pass",
    "dmarc": "pass",
    "dmarcPolicy": null,
    "arc": "none",
    "checkedAt": "2026-09-19T08:00:03.000Z"
  },
  "contentAvailable": true,
  "contentExpiresAt": "2026-10-19T08:00:02.000Z",
  "from": {
    "address": "anna@example.com",
    "name": "Anna Andersson"
  },
  "subject": "A question about my order",
  "date": "2026-09-19T08:00:00.000Z",
  "envelope": {
    "sender": "anna@example.com"
  },
  "replyTo": [],
  "to": [
    {
      "address": "7c9e6679742540de944be07fc1f90ae7@inbound.sendora.se",
      "name": null
    }
  ],
  "toCount": 1,
  "cc": [],
  "ccCount": 0,
  "messageIdHeader": "<question-1@example.com>",
  "inReplyTo": null,
  "references": [],
  "headers": [
    {
      "name": "From",
      "value": "Anna Andersson <anna@example.com>"
    },
    {
      "name": "Subject",
      "value": "A question about my order"
    }
  ],
  "text": "Hi!\n",
  "html": null,
  "attachments": [
    {
      "attachmentId": "9b7e2c41-3f6d-4a8e-b2c5-1d0f7e6a9c58",
      "position": 0,
      "name": "invoice.pdf",
      "contentType": "application/pdf",
      "contentId": null,
      "size": 46102,
      "inline": false
    }
  ]
}
  • inboundMessageIdstring (uuid)
  • streamIdstring (uuid)

    The inbound stream that received it.

  • receivedAtstring (date-time)

    When the message was accepted from the sending server.

  • envelopeRecipientstring

    The address of yours the message was sent to.

  • mailboxHashstring or null

    The text after the plus sign in that address, when the sender used one.

  • sizeBytesinteger
  • attachmentCountinteger
  • hasTextboolean
  • hasHtmlboolean
  • parseIssuestring or null

    What the parser met; null when the message parsed clean. A hard issue empties the parsed parts, and the raw message stays: no_headers, header_block_too_large, too_many_headers, too_many_parts, nesting_too_deep, missing_boundary, decoded_too_large, parse_timeout, parser_error. A soft issue keeps them and says what was changed or dropped: truncated_multipart, too_many_attachments, unknown_transfer_encoding, undecodable_container, filename_sanitised, control_chars_stripped, multiple_from, duplicate_header, malformed_header_dropped, address_list_truncated, header_value_truncated. A message with several names the hard one, or the first soft one in this order.

  • authenticationobject

    What Sendora found when it checked the message; unchecked until the checks have run.

    • spf"pass" | "fail" | "softfail" | "neutral" | "none" | "temperror" | "permerror" | "unchecked"

      SPF for the address in MAIL FROM.

    • spfHelo"pass" | "fail" | "softfail" | "neutral" | "none" | "temperror" | "permerror" | "unchecked"

      SPF for the name the sending server gave in HELO.

    • dkim"pass" | "fail" | "none" | "temperror" | "permerror" | "unchecked"
    • dmarc"pass" | "fail" | "none" | "temperror" | "permerror" | "unchecked"
    • dmarcPolicy"none" | "quarantine" | "reject" or null

      What the sender’s domain asks for; told only when DMARC failed.

    • arc"none" | "pass" | "fail" | "unchecked"
    • checkedAtstring (date-time) or null

      When the checks ran; null until they have.

  • contentAvailableboolean

    False once the stream’s content window has passed; only the reference remains.

  • contentExpiresAtstring (date-time)

    When the content goes.

  • fromobject or null

    The From header; null without it or once the content is gone.

    • addressstring
    • namestring or null
  • subjectstring or null
  • datestring (date-time) or null

    The sender’s Date header as ISO 8601, when it was a real moment.

  • envelopeobject or null

    Null once the content is gone.

    • senderstring or null

      The MAIL FROM address; null for a bounce.

  • replyToarray of object
    • addressstring
    • namestring or null
  • toarray of object

    Up to 100 entries; toCount is the whole number.

    • addressstring
    • namestring or null
  • toCountinteger
  • ccarray of object

    Up to 100 entries; ccCount is the whole number.

    • addressstring
    • namestring or null
  • ccCountinteger
  • messageIdHeaderstring or null
  • inReplyTostring or null
  • referencesarray of string
  • headersarray of object or null

    Every header in order; null once the content is gone.

    • namestring
    • valuestring
  • textstring or null

    The plain-text body; null without one or once the content is gone.

  • htmlstring or null

    The HTML body as received; null without one or once the content is gone.

  • attachmentsarray of object
    • attachmentIdstring (uuid)
    • positioninteger

      Its place among the message’s attachments, from 0.

    • namestring or null

      The filename, sanitised; null once the content is gone.

    • contentTypestring or null

      The type the sender declared; every download is served as application/octet-stream.

    • contentIdstring or null

      The Content-ID an HTML body refers to with cid:.

    • sizeinteger

      Bytes.

    • inlineboolean

      True for a part shown in the body rather than offered as a file.

Errors

Every error answers error, the code, and message, a sentence for a person. A code that adds fields is shown in full below the table.

CodeStatusMeaning
unauthorized401The key is missing, malformed or revoked.
wrong_token_kind403The key is of the other kind: a server key (sk_) where an account key (ak_) is needed, or the reverse. The message names the kind the operation takes.
not_for_connections403A connected app called an operation that no tool of the MCP server calls. An API key can.
read_only_connection403A connected app may only read here: the account is read only through a connection, and a live server takes changes only if the person allowed them when connecting.
test_server_only403A connected app may create a secret, or do what cannot be undone, on a test server only.
not_found404No such inbound message of this server.
content_unreadable409The stored content of this received message cannot be opened. Sendora has been told.
  • WWW-Authenticateheader on 401"Bearer"

    Always Bearer: send the key as Authorization: Bearer <key>.