Skip to content

Download a raw message

GET
/v1/raw/{id}
curl --request GET \
--url https://api.inboxcnx.com/v1/raw/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Streams the raw RFC 822 source of a stored message, to archive it or parse parts the API does not expose. Take the URL from raw.downloadUrl on a message rather than building it. id is the message id.

Requires the read:messages scope.

id
required
string format: uuid

The bytes, streamed as a download (Content-Disposition: attachment)

Media typemessage/rfc822
string format: binary

The credential lacks the read:messages scope, the Application requires a grant token (grant_token_required), or the credential is blocked

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

blob_not_found: no such blob for the caller, or its bytes are gone

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

blob_too_large: the blob exceeds the download limit

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}