Create Draft
Changed onCreate a draft. Supply in_reply_to to create a reply draft (with reply_all to address the whole thread), whose recipients, subject, and threading are derived from the referenced message, or forward_of to create a forward draft, which derives the subject, threading, and forwarded content from the source but keeps recipients caller-supplied.
CLI:
agentmail inboxes drafts create --inbox-id <inbox_id> --to recipient@example.com --subject "Draft subject" --text "Draft body"
Request
- Base URLhttps://api.agentmail.to
- URLhttps://api.agentmail.to/v0/inboxes/{inbox_id}/drafts
- AuthHTTP bearer
Path parameters
The ID of the inbox.
Request body
Response
Response with status 200
Changes
- breaking
the request property
became not nullable - breaking
the request property
//became not nullable - breaking
the request property
//became not nullable - breaking
the request property
//became not nullable - breaking
the request property
//became not nullable - breaking
the request property
//became not nullable - breaking
the request property
//became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - info
the endpoint scheme security
Bearerwas added to the API - info
the endpoint scheme security
BearerAuthwas removed from the API - info
api tag
inboxes > draftsadded - info
api tag
InboxesDraftsremoved - info
request body became optional
- breaking
- info
added the new optional request property
- info
added the new optional request property
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info