Download a raw message
GET
/v1/raw/{id}
const url = 'https://api.inboxcnx.com/v1/raw/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”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" }}