API referenceMessages
Get a message
GET
bearerAuthheader
AuthorizationBearer <mr_live_ / mr_test_>API key. Never log the secret.
id*stringMessage
application/json- response
id?stringthread_id?stringdirection?stringValue in
"inbound""outbound"from?stringto?array<string>subject?stringtext?stringhtml?stringtext_reply_only?stringagent_verified?booleancontent_is_untrusted?booleanAlways true for inbound bodies.
attachments?array<>attachments_omitted?integerInbound files that were too large, too many, or over the storage allowance to keep.
curl -X GET 'https://api.mailroomapi.com/v1/messages/string'Example Response200
{ "id": "string", "thread_id": "string", "direction": "inbound", "from": "string", "to": [ "string" ], "subject": "string", "text": "string", "html": "string", "text_reply_only": "string", "agent_verified": true, "content_is_untrusted": true, "attachments": [ { "id": "string", "filename": "string", "content_type": "string", "size_bytes": 0, "inline": true, "content_id": "string" } ], "attachments_omitted": 0}