
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"
}'
$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
Create a new draft in an inbox. The draft can be edited later and sent with Send Draft.
Path parameters
inbox_idrequiredstringGoes in the path: replace {inbox_id} in the request.Body parameters
toarrayRecipient email addresses as an array of strings.ccarrayCC recipient email addresses.bccarrayBCC recipient email addresses.reply_toarrayReply-to addresses.subjectstringEmail subject line.textstringPlain text body of the draft.htmlstringHTML body of the draft.labelsarrayLabels to tag the draft.attachmentsarrayArray of attachment objects: {filename, content_type, content (base64)} or {filename, content_type, url}.headersobjectCustom email headers as key-value pairs.More 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
- 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