Skip to main content
GET
/
api
/
drafts
/
[threadId]
Get Draft
curl --request GET \
  --url 'https://api.example.com/api/drafts/[threadId]'
{
  "id": "<string>",
  "threadId": "<string>",
  "subject": "<string>",
  "content": "<string>",
  "translation": "<string>",
  "status": {},
  "sentAt": {},
  "updatedAt": {},
  "error": "<string>"
}

Authentication

Requires a valid session. Returns 401 if unauthorized.

Path Parameters

threadId
string
required
The unique identifier of the email thread

Response

Returns the draft object if found, or null if no draft exists for the thread.
id
string
Unique draft identifier (format: draft-{threadId})
threadId
string
The associated email thread ID
subject
string
Email subject line
content
string
Draft email body in HTML format
translation
string
Korean translation of the draft (plain text)
status
enum
Current draft status
  • pending - Draft generation in progress
  • ready - Draft is ready to send
  • sent - Draft has been sent
  • skipped - Draft was skipped
sentAt
timestamp
ISO 8601 timestamp when the draft was sent (null if not sent)
updatedAt
timestamp
ISO 8601 timestamp of last update

Example Request

curl -X GET https://api.delightbridge.com/api/drafts/thread-123 \
  -H "Cookie: session=your-session-token"

Example Response

{
  "id": "draft-thread-123",
  "threadId": "thread-123",
  "subject": "Re: Product inquiry",
  "content": "<p>Hi Sarah,</p><p>Thank you for reaching out about our premium plan. I'd be happy to help you understand the features...</p>",
  "translation": "안녕하세요 Sarah님,\n\n프리미엄 플랜에 대해 문의해 주셔서 감사합니다...",
  "status": "ready",
  "sentAt": null,
  "updatedAt": "2026-03-01T10:30:00Z"
}

No Draft Found

If no draft exists for the specified thread, the response will be:
null

Error Responses

error
string
Error message describing what went wrong

401 Unauthorized

{
  "error": "Unauthorized"
}
Returned when the session is invalid or expired.

Build docs developers (and LLMs) love