
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "agentmail",
"path": "",
"method": "POST"
}'
{
"success": true,
"data": {
"thread_id": "{thread_id}",
"message_id": "{message_id}"
}
}
Example values, built from the documented fields.
$0.01per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
API-wide: 100% success · 615 ms median · 30 days
About this endpoint
Send an email message from an inbox. At least one recipient (to, cc, or bcc) is required. Returns the message_id and thread_id. Replace {inbox_id} directly in the path with the full inbox email (e.g., /v0/inboxes/myagent@agentmail.to/messages/send).
Path parameters
inbox_idrequiredstringGoes in the path: replace {inbox_id} in the request.Body parameters
toarrayRecipient email address(es). At least one of to, cc, or bcc is required. Can be a string or array of strings.ccarrayCC recipient email address(es). String or array of strings.bccarrayBCC recipient email address(es). String or array of strings.reply_toarrayReply-to address(es) if different from the inbox address.subjectstringEmail subject line.textstringPlain text body. Provide text, html, or both.htmlstringHTML body. Provide text, html, or both.labelsarrayArray of label strings to tag the sent message.attachmentsarrayArray of attachment objects: {filename: string, content_type: string, content: string (base64)} or {filename: string, content_type: string, url: string}.headersobjectCustom email headers as key-value pairs (e.g., {"X-Custom": "value"}).Response types
thread_idstringmessage_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
- Get MessageGET/v0/inboxes/{inbox_id}/messages/{message_id}Free
- 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