Skip to main content
GET
/
api
/
email
/
drafts
/
{uid}
Get outbound email draft
curl --request GET \
  --url https://dev.exante.app/api/email/drafts/{uid} \
  --header 'Authorization: Bearer <token>'
{
  "uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "from_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "from_email": "<string>",
  "to": [
    "<string>"
  ],
  "cc": [
    "<string>"
  ],
  "bcc": [
    "<string>"
  ],
  "subject": "<string>",
  "body_text": "<string>",
  "body_html": "<string>",
  "context_type": "<string>",
  "context_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "planned_send_at": "2023-11-07T05:31:56Z",
  "status": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
Retrieve a single email draft by its unique identifier. Returns the complete draft record including all recipients, content, and metadata.

Path Parameters

ParameterDescription
uidThe draft’s unique identifier (UUID)

Response

Returns the full draft record:
{
  "uid": "draft-uuid",
  "from_account_id": "account-uuid",
  "from_email": "sender@mycompany.com",
  "to": ["customer@example.com"],
  "cc": ["manager@mycompany.com"],
  "bcc": [],
  "subject": "Invoice INV-2024-001 - Payment Reminder",
  "body_text": "Hi,\n\nThis is a reminder that your invoice is due...",
  "body_html": "<html><body>...</body></html>",
  "context_type": "invoice",
  "context_id": "invoice-uuid",
  "planned_send_at": "2024-03-26T09:00:00Z",
  "status": "draft",
  "created_at": "2024-03-25T10:30:00Z",
  "updated_at": "2024-03-25T14:45:00Z"
}

Error Responses

StatusDescription
404Draft not found or belongs to a different organization

Use Cases

  • Edit form - Load draft content into an editor for modification
  • Preview - Display the email before sending
  • Audit - Review draft details for compliance or debugging

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uid
string<uuid>
required

Response

200 - application/json

Draft details

uid
string<uuid>
from_account_id
string<uuid>
from_email
string
to
string[]
cc
string[]
bcc
string[]
subject
string
body_text
string
body_html
string
context_type
string
context_id
string<uuid>
planned_send_at
string<date-time>
status
string
created_at
string<date-time>
updated_at
string<date-time>