
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "agentmail",
"path": "",
"method": "GET"
}'
{
"success": true,
"data": {
"to": [ 1 item ],
"from": "{from}",
"html": "{html}",
"size": 1,
"labels": [ 1 item ],
"pod_id": "{pod_id}",
"headers": { … },
"smtp_id": "{smtp_id}",
"subject": "{subject}",
"inbox_id": "{inbox_id}",
"thread_id": "{thread_id}",
"timestamp": "{timestamp}",
"created_at": "{created_at}",
"message_id": "{message_id}",
"updated_at": "{updated_at}",
"extracted_html": "{extracted_html}",
"organization_id": "{organization_id}"
}
}
Example values, built from the documented fields.
Free
Calls cost nothing.
API-wide: 100% success · 615 ms median · 30 days
About this endpoint
Get a specific message including headers, body (text and HTML), attachments, and metadata.
Path parameters
inbox_idrequiredstringGoes in the path: replace {inbox_id} in the request.message_idrequiredstringGoes in the path: replace {message_id} in the request.Response types
to[]stringfromstringhtmlstringsizenumberlabels[]stringpod_idstringsmtp_idstringsubjectstringinbox_idstringthread_idstringtimestampstringcreated_atstringmessage_idstringupdated_atstringextracted_htmlstringorganization_idstringMore from AgentMail
- Get InboxGET/v0/inboxes/{inbox_id}Free
- Reply To MessagePOST/v0/inboxes/{inbox_id}/messages/{message_id}/reply$0.01 per callFixed
- Reply All MessagePOST/v0/inboxes/{inbox_id}/messages/{message_id}/reply-all$0.01 per callFixed
- Get DraftGET/v0/inboxes/{inbox_id}/drafts/{draft_id}Free
- Update MessagePATCH/v0/inboxes/{inbox_id}/messages/{message_id}Free
- Create DraftPOST/v0/inboxes/{inbox_id}/drafts$0.01 per callFixed
- List ThreadsGET/v0/inboxes/{inbox_id}/threadsFree
- List DraftsGET/v0/inboxes/{inbox_id}/draftsFree
- Update InboxPATCH/v0/inboxes/{inbox_id}Free
- Get ThreadGET/v0/inboxes/{inbox_id}/threads/{thread_id}Free
- Get Raw MessageGET/v0/inboxes/{inbox_id}/messages/{message_id}/rawFree
- Send DraftPOST/v0/inboxes/{inbox_id}/drafts/{draft_id}/sendFree