
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "agentmail",
"path": "",
"method": "PATCH"
}'
{
"success": true,
"data": {
"to": [ 1 item ],
"labels": [ 1 item ],
"pod_id": "{pod_id}",
"subject": "{subject}",
"draft_id": "{draft_id}",
"inbox_id": "{inbox_id}",
"created_at": "{created_at}",
"updated_at": "{updated_at}",
"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
Update an existing draft. Only the fields you include will be changed; omitted fields are left unchanged.
Path parameters
inbox_idrequiredstringGoes in the path: replace {inbox_id} in the request.draft_idrequiredstringGoes in the path: replace {draft_id} in the request.Body parameters
toarrayUpdated recipient email addresses.ccarrayUpdated CC recipients.bccarrayUpdated BCC recipients.reply_toarrayUpdated reply-to addresses.subjectstringUpdated subject line.textstringUpdated plain text body.htmlstringUpdated HTML body.labelsarrayUpdated labels.attachmentsarrayUpdated attachments: {filename, content_type, content (base64)} or {filename, content_type, url}.headersobjectUpdated custom email headers.Response types
to[]stringlabels[]stringpod_idstringsubjectstringdraft_idstringinbox_idstringcreated_atstringupdated_atstringorganization_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