Skip to content

Get a message

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

Returns one stored message with its body, attachment metadata and download URLs, to display or process the full mail. body.html is returned exactly as the sender wrote it: not sanitised, remote content not stripped. Render it only in an isolated context (a sandboxed <iframe> without allow-scripts/allow-same-origin, on its own origin or under a restrictive CSP), and block remote images until the reader opts in, or tracking pixels report the read to the sender.

Requires the read:messages scope.

id
required
string format: uuid

The full message-v1 object

Media typeapplication/json
object
id
required
string format: uuid
providerMessageId
required
string
providerThreadId
required
string | null
source
required
string
Allowed values: gmail m365 imap
receivedAt
required
string
sentAt
required
string | null
subject
required
string | null
from
required
Array<object> | null
object
name
required
string | null
email
required
string
sender
required
Array<object> | null
object
name
required
string | null
email
required
string
to
required
Array<object> | null
object
name
required
string | null
email
required
string
cc
required
Array<object> | null
object
name
required
string | null
email
required
string
bcc
required
Array<object> | null
object
name
required
string | null
email
required
string
replyTo
required
Array<object> | null
object
name
required
string | null
email
required
string
messageId
required
Array<string> | null
inReplyTo
required
Array<string> | null
references
required
Array<string> | null
size
required
integer
keywords
required
object
key
additional properties
boolean
labels
required
object
system
required
Array<string>
Allowed values: inbox archive drafts sent trash junk all flagged important
custom
required
Array<string>
language
required
string | null
preview
required
string | null
<= 256 characters
hasAttachment
required
boolean
raw
required
object
downloadUrl
required
string | null
enrichment
required
object
application
object
key
additional properties
stateAt
required
string | null
deletedAt
required
string | null
grantId
required
string
body
required
object
text
required
string | null
html
required
string | null
attachments
required
Array<object>
object
id
required
string
name
required
string | null
contentType
required
string | null
size
required
integer | null
disposition
required
string | null
cid
required
string | null
downloadUrl
required
string | null
lifecycle
required
object
providerReceivedAt
required
string
detectedAt
required
string | null
fetchedAt
required
string | null
processedAt
required
string | null
storedAt
required
string | null
webhookEnqueuedAt
required
string | null
webhookDeliveredAt
required
string | null

Example

{
"id": "c4a7e2b9-1d3f-4e6a-8b0c-5f2d9e7a1b34",
"grantId": "9b2f0c4e-6a1d-4f3b-8c55-0d7e2a91b3c4",
"providerMessageId": "18f2c4a9b7d01e3f",
"providerThreadId": "18f2b1c0a9e8d7f6",
"source": "gmail",
"receivedAt": "2026-10-23T07:58:12.000Z",
"sentAt": "2026-10-23T07:58:09.000Z",
"subject": "Invoice 2026-1042",
"from": [
{
"name": "Acme Accounts",
"email": "accounts@example.com"
}
],
"sender": null,
"to": [
{
"name": null,
"email": "owner@example.com"
}
],
"cc": null,
"bcc": null,
"replyTo": null,
"messageId": [
"<20261023075809.4711@example.com>"
],
"inReplyTo": null,
"references": null,
"size": 48213,
"keywords": {
"$seen": false
},
"labels": {
"system": [
"inbox"
],
"custom": []
},
"language": "en",
"preview": "Please find attached the invoice for October.",
"hasAttachment": true,
"raw": {
"downloadUrl": "https://api.inboxcnx.com/v1/raw/c4a7e2b9-1d3f-4e6a-8b0c-5f2d9e7a1b34"
},
"enrichment": null,
"stateAt": "2026-10-23T07:58:12.000Z",
"deletedAt": null,
"body": {
"text": "Please find attached the invoice for October.",
"html": "<p>Please find attached the invoice for October.</p>"
},
"attachments": [
{
"id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
"name": "invoice-2026-1042.pdf",
"contentType": "application/pdf",
"size": 41872,
"disposition": "attachment",
"cid": null,
"downloadUrl": "https://api.inboxcnx.com/v1/attachments/e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
}
],
"lifecycle": {
"providerReceivedAt": "2026-10-23T07:58:10.000Z",
"detectedAt": "2026-10-23T07:58:11.000Z",
"fetchedAt": "2026-10-23T07:58:11.400Z",
"processedAt": "2026-10-23T07:58:11.900Z",
"storedAt": "2026-10-23T07:58:12.000Z",
"webhookEnqueuedAt": "2026-10-23T07:58:12.100Z",
"webhookDeliveredAt": "2026-10-23T07:58:12.600Z"
}
}

The credential lacks the read:messages scope

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

Example generated

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

No such message for the caller’s organization and application

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

Example generated

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