---
title: "message.sent"
url: "https://docs.yoagent.dev/reference/webhook-events/webhooks/message-sent"
---

# message.sent

POST

A sent message was handed on to its first recipient. A webhook of scope `project` or `inboxes` gets it. Answer 2xx within 10 s; anything else is retried after 30 s, 120 s, 600 s, 3600 s, 21600 s, unless the URL now resolves to an address webhooks may not reach (then it is dropped), and 3 failures in a row pause the webhook (`disabled_reason: failing`). Each attempt counts toward the organization’s webhook deliveries per minute; one over it is skipped, never sent later. Before each attempt the webhook is checked again: one paused, deleted or no longer wanting the event gets nothing more of it. Every attempt is in the webhook’s log (`GET /v0/webhooks/{webhook_id}/attempts`). Verify `webhook-signature` with the webhook’s `secret`; `webhook-id` is the same on every retry. An event goes to the webhooks that want it when it is queued for them, so one made right after an event may still receive it if that queuing was retried.

## Request Body required

application/json

_MessageSentBody_

The body POSTed for `message.sent`: the sent message, once the first of its recipients was handed on (SES took it, or an inbox of ours got it).

object

**event_id**

required

_Event Id_

string

/^evt\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**event_type**

required

_Event Type_

string

Allowed value: message.sent

**occurred_at**

required

_Occurred At_

string format: date-time

**message**

required

_MessageItem_

A message in a list: no bodies.

object

**version**

required

_Version_

Goes up by one on every change: of two copies, the one with the higher version is the newer.

integer

**message_id**

required

_Message Id_

string

/^msg\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**project_id**

required

_Project Id_

string

/^prj\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**inbox_id**

required

_Inbox Id_

string

/^inb\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**thread_id**

required

_Thread Id_

string

/^thr\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

**envelope_to**

required

_Envelope To_

The address the message came to; null for a message the inbox sent (`sent`).

Any of:

**string**

string

**null**

null

**envelope_from**

required

_Envelope From_

string

**plus_tag**

required

_Plus Tag_

Any of:

**string**

string

**null**

null

**from**

required

_From_

Array\<object>

_Party_

A name and address from a header.

object

**name**

required

_Name_

string

**address**

required

_Address_

string

**to**

required

_To_

Array\<object>

_Party_

A name and address from a header.

object

**name**

required

_Name_

string

**address**

required

_Address_

string

**subject**

required

_Subject_

Any of:

**string**

string

**null**

null

**preview**

required

_Preview_

Any of:

**string**

string

**null**

null

**labels**

required

_Labels_

Array\<string>

**size**

required

_Size_

integer

**received_at**

required

_Received At_

string format: date-time

### Example

```json
{
  "event_id": "evt_01je56wqswfmn9pgbc1wq8tjgq",
  "event_type": "message.sent",
  "occurred_at": "2026-12-01T12:00:00Z",
  "message": {
    "version": 1,
    "message_id": "msg_01je56wqswfmn9pgbc1wq8tjgq",
    "project_id": "prj_01je56wqswfmn9pgbc1wq8tjgq",
    "inbox_id": "inb_01je56wqswfmn9pgbc1wq8tjgq",
    "thread_id": "thr_01je56wqswfmn9pgbc1wq8tjgq",
    "envelope_to": null,
    "envelope_from": "test@k7m2xq4p.yoagent.email",
    "plus_tag": null,
    "from": [
      {
        "name": "",
        "address": "test@k7m2xq4p.yoagent.email"
      }
    ],
    "to": [
      {
        "name": "Ada",
        "address": "ada@example.com"
      }
    ],
    "subject": "Your report is ready",
    "preview": "Hello from a test.",
    "labels": [
      "sent"
    ],
    "size": 2048,
    "received_at": "2026-12-01T12:00:00Z"
  }
}
```

## Responses

### 200

Delivered: any 2xx within 10 s (its body is not read).
