Email & PEC

Discard a draft

Permanently deletes a draft or a failed send. Only draft or failed can be discarded — refuses with EMAIL_OUTBOX_NOT_DRAFT on anything queued, sending or already sent (use email_undo_send for a queued one instead). There is no undo: confirm with the user first.

Examples

  • Throw away that draft, I don’t need it DELETE /api/v1/rest/email/outbox/55555555-6666-4777-8888-999999999999
delete/api/v1/rest/email/outbox/{id}

Request

  • Base URL: https://api.custodo.ai
  • URL: https://api.custodo.ai/api/v1/rest/email/outbox/{id}
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Headers

X-Tenant-Idstring uuid

The organisation to act in. An API key is bound to exactly one, so this is optional for a key and must match the one it was minted for.

Response

Done. data is the tool’s own answer.

oktrue required
dataunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.