Update Draft

VerifiedReliablePATCH /v0/inboxes/{inbox_id}/drafts/{draft_id}Published by AgentMail
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": "example",
"subject": "example",
"draft_id": "example",
"inbox_id": "example",
"created_at": "example",
"updated_at": "example",
"organization_id": "example"
}
}
Example values, built from the documented fields.

Free

API-wide: 99.4% success · 575 ms median · 30 days

About this endpoint

Update an existing draft. Only the fields you include will be changed; omitted fields are left unchanged.

Body parameters

Response types

More from AgentMail

  1. Get InboxGET/v0/inboxes/{inbox_id}Free
  2. Reply To MessagePOST/v0/inboxes/{inbox_id}/messages/{message_id}/reply$0.0100 per call
  3. Get MessageGET/v0/inboxes/{inbox_id}/messages/{message_id}Free
  4. Reply All MessagePOST/v0/inboxes/{inbox_id}/messages/{message_id}/reply-all$0.0100 per call
  5. Get DraftGET/v0/inboxes/{inbox_id}/drafts/{draft_id}Free
  6. Update MessagePATCH/v0/inboxes/{inbox_id}/messages/{message_id}Free
  7. Create DraftPOST/v0/inboxes/{inbox_id}/drafts$0.0100 per call
  8. List ThreadsGET/v0/inboxes/{inbox_id}/threadsFree
  9. List DraftsGET/v0/inboxes/{inbox_id}/draftsFree
  10. Update InboxPATCH/v0/inboxes/{inbox_id}Free
  11. Get ThreadGET/v0/inboxes/{inbox_id}/threads/{thread_id}Free
  12. Get Raw MessageGET/v0/inboxes/{inbox_id}/messages/{message_id}/rawFree
All 21 AgentMail endpoints