List drafts
GET
https://anjal.app/v1/inboxes/{id}/draftsFor agents View as Markdown
scheduled=true lists only drafts waiting to be sent, soonest first. A failed scheduled send shows sendError.
Path parameters
idrequired string | Inbox UUID |
Query parameters
limitinteger | |
offsetinteger | |
scheduledboolean |
Responses
200application/jsonOK
draftsobject[] | |
idstring | format: uuid |
inboxIdstring | format: uuid |
tostring[] | |
ccstring[] | |
bccstring[] | |
subjectstring | |
plainBodystring | |
htmlBodystring | |
replyToMessageIdstring | format: uuid |
labelsstring[] | Applied to the message when the draft is sent. |
sendAtstring | When Anjal will send this draft. Null if not scheduled. format: date-time |
sendErrorstring | Why the last scheduled send failed. The draft is kept and `sendAt` is cleared. |
createdAtstring | format: date-time |
updatedAtstring | format: date-time |
Authentication
Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.