Skip to the page

Retrieve received email

One received email with its text, its HTML and the names of its attachments.

GET/v1/inbound/{id}
Needs the scopeemails:read

Path parameters

  • idstringRequired

    The id of the item. Up to 64 characters.

Returns

  • object"inbound_email"

    Always inbound_email.

  • idstring

    The id of the received email.

  • fromstring

    The address it came from.

  • fromNamestring | null

    The name of the sender, or null when the message gave none.

  • tostring

    The address it was sent to, on one of your domains.

  • subjectstring

    The subject line.

  • domainstring

    The domain of yours that received it.

  • spamboolean

    Whether it was judged to be spam.

  • sizeinteger

    The size of the whole message in bytes.

  • attachmentsinteger

    How many files were attached.

  • createdAtstring

    When it arrived.

  • textstring | null

    The message as plain text, or null.

  • htmlstring | null

    The message as HTML, or null.

  • truncatedboolean

    Whether the message was too long to keep whole.

  • messageIdstring

    The Message-ID header of the message.

  • filesobject[]

    The attached files. Their content is not kept.

  • files[].filenamestring

    The name of the file.

  • files[].mimeTypestring

    The media type of the file.

  • files[].sizeinteger

    The size of the file in bytes.