Skip to main content
Resend Docs
current

Search documentation

Type to search this documentation.

On this pageOverview

inbox.draft.sent

Received when a draft is sent.

Event triggered whenever a draft is sent.

Note: This event fires from the send call. inbox.email.sent follows once the email is accepted for delivery.

All webhook payloads follow a consistent top-level structure with event-specific data nested within the data object.

  • type (string) — The event type that triggered the webhook (e.g., inbox.draft.sent).

  • created_at (string) — ISO 8601 timestamp when the webhook event was created.

  • data (object) — Event-specific data containing detailed information about the event. The data object for the inbox.draft.sent event contains the following parameters:

    object parameters
    • source (api | dashboard | agent | system) — What made the change
    • inbox_id (string) — The ID of the inbox
    • thread_id (string) — The ID of the thread
    • email_id (string) — The ID of the email
    • draft_id (string) — The ID of the draft
    • thread (object) — The thread, as it is when the webhook is sentobject (string) — Always inbox_threadid (string) — The ID of the threadsubject (string | null) — The subject of the threadfolder (inbox | archive | spam | sent | trash) — The folder the thread lives inlabels (array) — The labels attached to the thread, each with an id, name, and colorread (boolean) — True only when every message in the thread is read
    • email (object) — The email, as it is when the webhook is sent, without html or text. Only when the email is already on the thread when the webhook is sentid (string) — The ID of the emaildirection (inbound | outbound) — Whether the email was received by the inbox or sent from itfrom (string) — Sender email addressto (string[]) — The recipients of the emailcc (string[]) — The CC recipients of the emailbcc (string[]) — The BCC recipients of the emailreply_to (string[]) — The Reply-To addressessubject (string | null) — The subject of the emailmessage_id (string | null) — The Message-ID header of the emailattachments (array) — The attachments on the emailid (string) — The ID of the attachmentfilename (string | null) — The filename of the attachmentsize (number | null) — The size of the attachment in bytesread (boolean) — Whether the email has been readreceived_at (string) — ISO 8601 timestamp when the email arrived or was sent
    • draft (object) — The draft, as it is when the webhook is sent, without html or text. Fetch the body from the APIobject (string) — Always inbox_draftid (string) — The ID of the drafttype (standalone | reply) — standalone for a new conversation, or replyto (string[] | null) — Recipientscc (string[]) — CC recipientsbcc (string[]) — BCC recipientssubject (string | null) — The subjectthread_id (string | null) — The Thread ID when this draft is a reply. null otherwisereply_to_email_id (string | null) — The Email ID being replied to. null otherwiseemail_id (string | null) — The queued outbound email after send. null until thencreated_at (string) — ISO 8601 timestamp when the draft was createdupdated_at (string) — ISO 8601 timestamp when the draft was last saved
JSON
{
  "type": "inbox.draft.sent",
  "created_at": "2026-09-29T12:00:00.000Z",
  "data": {
    "source": "api",
    "inbox_id": "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1",
    "thread_id": "7c1f0a2e-5d3b-4e8a-9f61-2b8d4c6e1a90",
    "email_id": "81ce9b8d-1b0a-4d02-a4d9-2a91f5ab6397",
    "draft_id": "9a2b7c4d-1e3f-4a5b-8c6d-0e1f2a3b4c5d",
    "thread": {
      "object": "inbox_thread",
      "id": "7c1f0a2e-5d3b-4e8a-9f61-2b8d4c6e1a90",
      "subject": "Question about my invoice",
      "folder": "inbox",
      "labels": [],
      "read": true
    },
    "draft": {
      "object": "inbox_draft",
      "id": "9a2b7c4d-1e3f-4a5b-8c6d-0e1f2a3b4c5d",
      "type": "reply",
      "to": ["steve.wozniak@gmail.com"],
      "cc": [],
      "bcc": [],
      "subject": "Re: Question about my invoice",
      "thread_id": "7c1f0a2e-5d3b-4e8a-9f61-2b8d4c6e1a90",
      "reply_to_email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
      "email_id": "81ce9b8d-1b0a-4d02-a4d9-2a91f5ab6397",
      "created_at": "2026-09-29T11:58:00.000Z",
      "updated_at": "2026-09-29T12:00:00.000Z"
    }
  }
}
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu