Drafts
Send a draft
Sends the current draft contents now and deletes the draft atomically. If the draft has replyToMessageId, the sent message is threaded as a reply. The draft's labels are applied to the sent message. Accepts an Idempotency-Key header.
post/v1/inboxes/{id}/drafts/{did}/send
Request
- Base URL: https://anjal.app
- URL: https://anjal.app/v1/inboxes/{id}/drafts/{did}/send
- Auth: API key in header X-API-Key
Headers
Idempotency-Keystring
Unique value for this send (e.g. a UUID). A retry with the same key and identical request returns the stored response (header Idempotent-Replayed: true) and sends nothing. Same key with a different request: 409 IDEMPOTENCY_KEY_REUSED. Same key while the first is still running: 409 IDEMPOTENCY_IN_PROGRESS. Blank: 400 IDEMPOTENCY_KEY_INVALID. Keys are per account and expire after 24 hours; a failed send (non-2xx) frees the key.
Response
Sent
Changes
No recorded changes to this operation across all 1 revision of this API.