Skip to content

Receive

Events

Every provider speaks its own dialect. Braidport normalises all of them into one event schema, delivered to your webhook endpoints and available from GET /v1/events. The tables on this page are generated from the same schema the API validates against.

On this page

The envelope#

Every event has the same envelope; type decides the shape of data. The current api_version is 2026-11-01.

FieldTypeDescription
idevt_ idEvent id, evt_…. Deterministic: a retry or redelivery of the same event carries the same id. De-duplicate on it.
api_versionstringVersion of the event schema, currently the date shown above.
created_attimestampWhen Braidport created the event.
testbooleantrue for sandbox and simulated events. Test events never count as usage.
workspace_idws_ idThe workspace (end client) the event belongs to. null only on ping sent to an organization-level endpoint.
channelobjectThe channel the event happened on. null only on ping.
channel.idch_ idChannel id, ch_…. Use it with channel_id + to to start a conversation.
channel.provider"whatsapp" | "instagram" | "messenger" | "telegram" | "google" | "sandbox"whatsapp, instagram, messenger, telegram, google or sandbox.
channel.external_account_idstringThe provider's account id: WhatsApp phone number id, Instagram account id, Facebook Page id, Telegram bot id, Google account id; the workspace id for the sandbox.
channel.display_namestringHuman-readable name: phone number, account or Page name, bot username.
type"message.received"The event type. The data object depends on it.

With the workspace setting include_raw on, message and status events also carry data.raw: the untouched provider payload, for the rare case the unified fields do not cover.

Event types#

TypeWhendataUsage
message.receivedA contact sent a message to a channel.{ message }Counted
message.sentA message went out on a channel: through the API (source: "api") or from a person outside Braidport.{ message }Free
message.statusAn outbound message was delivered, read, played or failed.status objectFree
message.editedA contact edited a message. data.message holds the new version.{ message }Free
message.deletedA contact deleted a message.{ provider_message_id, conversation_id }Free
channel.connectedAn end client connected an account through a connect link or the dashboard.{ status, previous_status, reason }Free
channel.disconnectedA channel was disconnected, removed at the provider or moved to another workspace.{ status, previous_status, reason }Free
channel.status_changedA channel's status changed, for example to needs_reauth or back to active.{ status, previous_status, reason }Free
template.status_changedMeta reviewed, paused or disabled a WhatsApp message template.{ template }Free
pingTest event sent by POST /v1/webhook-endpoints/:id/test.{ endpoint_id }Free

Usage counts inbound message.received events and outbound sends through the API; sandbox and test events are never counted. Choose which types an endpoint receives with its events filter.

Messages#

message.received, message.sent and message.edited carry one data.message object:

message.receivedjson
{  "id": "evt_sabr24pa3eywnyp266ssm8yw9pkrdvzr2hy4wwnsg1vrbbze92xg",  "type": "message.received",  "api_version": "2026-11-01",  "created_at": "2026-11-10T19:20:30.123Z",  "test": false,  "workspace_id": "ws_01m74e503kmb73kwncxpsgwymm",  "channel": {    "id": "ch_01m74e503qm4cft8xvtq85g98s",    "provider": "whatsapp",    "external_account_id": "106540352242922",    "display_name": "+39 340 123 4567"  },  "data": {    "message": {      "provider_message_id": "wamid.HBgMMzkzNDAxMjM0NTY3FQIAEhgUM0E",      "conversation_id": "cnv_djF8Y2hfMDFtNzRlNTAzcW00Y2Z0OHh2dHE4NWc5OHN8SVQuMTM0OTEyMDg2NTUzMDI3NDE5MTh8",      "direction": "inbound",      "source": null,      "client_reference": null,      "timestamp": "2026-11-10T19:20:29.000Z",      "from": {        "id": "IT.13491208655302741918",        "name": "Mario Rossi",        "username": null,        "phone": "+393401234567"      },      "type": "text",      "text": "Hello, I would like to book an appointment",      "attachments": [],      "audio_url": null,      "interactive_reply": null,      "location": null,      "contacts": null,      "reaction": null,      "share": null,      "reply_to": null,      "referral": null,      "identity_change": null    }  }}
FieldTypeDescription
provider_message_idstringThe provider's message id. WhatsApp wamid.…; Telegram <chat_id>:<message_id>.
conversation_idcnv_ id≤ 2,048 charsOpaque id of the conversation with this contact on this channel. Pass it back to POST /v1/messages to reply.
direction"inbound" | "outbound"inbound for message.received, outbound for message.sent.
source"api" | "business_app" | "page_inbox" | "other" | nullmessage.sent only: where the outbound message came from. api = sent through Braidport; anything else was sent by a person outside Braidport.
client_referencestring | nullmessage.sent through the API: the client_reference you set on the send.
timestamptimestampWhen the provider says the message was sent.
fromobjectThe sender.
from.idstringThe provider's stable sender id: the WhatsApp BSUID when present (else the phone number), the Messenger PSID, the Instagram IGSID, the Telegram user id as a string.
from.namestring | nullDisplay name, when the provider supplies it (Messenger needs an extra approved feature).
from.usernamestring | nullUsername, when the provider supplies one.
from.phonestring | nullPhone number in international format, only when the provider supplies it.
typeenum (13 values)Message type: text, image, audio, video, document, sticker, location, contacts, interactive_reply, reaction, share, system or unsupported.
textstring | nullThe body, the media caption, or the title of the button the contact tapped.
audio_urlstring | nullConvenience copy of the URL of the first audio attachment.
interactive_replyobject | nullSet when the contact tapped a button, a list row, a postback or a quick reply.
interactive_reply.idstringThe id you gave the button or row when you sent it.
interactive_reply.titlestringThe visible title the contact tapped.
interactive_reply.kind"button" | "list" | "postback" | "quick_reply"Which kind of control was tapped.
locationobject | nullSet on location messages.
location.latitudenumber≥ -90≤ 90Latitude in degrees.
location.longitudenumber≥ -180≤ 180Longitude in degrees.
location.namestring | nullName of the place, when shared.
location.addressstring | nullAddress of the place, when shared.
contactsobject[] | nullSet on contacts messages: the shared contact cards.
contacts[].namestring | nullName on the card.
contacts[].phonesobject[]Phone numbers on the card.
contacts[].phones[].phonestringThe number as written on the card.
contacts[].phones[].typestring | nullLabel such as CELL or WORK, when given.
contacts[].phones[].user_idstring | nullThe provider user id for this number when known (WhatsApp wa_id, Telegram user_id).
contacts[].emailsobject[]E-mail addresses on the card.
contacts[].emails[].emailstringThe address.
contacts[].emails[].typestring | nullLabel such as HOME or WORK, when given.
reactionobject | nullSet on reaction messages.
reaction.emojistringThe emoji. An empty string means the contact removed their reaction.
reaction.provider_message_idstringThe message the reaction belongs to.
shareobject | nullSet on share messages (Instagram and Messenger).
share.kind"post" | "reel" | "story" | "story_mention"What was shared or mentioned.
share.urlstring | nullLink to the shared item, when the provider supplies one.
share.titlestring | nullTitle of the shared item, when the provider supplies one.
reply_toobject | nullSet when the message quotes an earlier one.
reply_to.provider_message_idstringThe quoted message.
referralobject | nullAd or link context that opened the conversation, when the provider supplies it.
referral.sourcestring | nullThe provider's source, lower-cased: ad, post, shortlink, …
referral.refstring | nullThe ref parameter of the link, when present.
referral.urlstring | nullURL of the ad or post.
referral.ad_idstring | nullThe ad id.
referral.headlinestring | nullHeadline of the ad.
referral.bodystring | nullBody text of the ad.
identity_changeobject | nullType system only: the sender's provider id changed (WhatsApp user id or phone number change).
identity_change.kind"user_id" | "phone"Which identifier changed.
identity_change.previous_idstring | nullThe old id, when known.
identity_change.new_idstringThe new id. Later messages carry it in from.id.

Message types: text, image, audio, video, document, sticker, location, contacts, interactive_reply, reaction, share, system, unsupported. Each type sets its own field (location on location, reaction on reaction, and so on); fields that do not apply are null. unsupported means the provider sent something Braidport cannot represent yet; turn on include_raw to inspect it.

Attachments

Images, audio, video, documents and stickers arrive in attachments, each with a short-lived download URL. A voice note:

message.received (voice note)json
{  "id": "evt_7rhyg5g075cmmcw99xjp9rdh6j5vtyg0h3a2rjpbefqaxncw02eg",  "type": "message.received",  "api_version": "2026-11-01",  "created_at": "2026-11-10T19:21:04.410Z",  "test": false,  "workspace_id": "ws_01m74e503kmb73kwncxpsgwymm",  "channel": {    "id": "ch_01m74e503qm4cft8xvtq85g98s",    "provider": "whatsapp",    "external_account_id": "106540352242922",    "display_name": "+39 340 123 4567"  },  "data": {    "message": {      "provider_message_id": "wamid.HBgMMzkzNDAxMjM0NTY3FQIAEhgUM0F",      "conversation_id": "cnv_djF8Y2hfMDFtNzRlNTAzcW00Y2Z0OHh2dHE4NWc5OHN8SVQuMTM0OTEyMDg2NTUzMDI3NDE5MTh8",      "direction": "inbound",      "source": null,      "client_reference": null,      "timestamp": "2026-11-10T19:21:03.000Z",      "from": {        "id": "IT.13491208655302741918",        "name": "Mario Rossi",        "username": null,        "phone": "+393401234567"      },      "type": "audio",      "text": null,      "attachments": [        {          "type": "audio",          "url": "https://api.braidport.com/media/v1.k1.Zm9vYmFy",          "mime_type": "audio/ogg",          "size_bytes": 18233,          "filename": null,          "voice": true,          "duration_seconds": 7,          "transcript": null,          "expires_at": "2026-11-11T19:21:04.000Z",          "unavailable_reason": null        }      ],      "audio_url": "https://api.braidport.com/media/v1.k1.Zm9vYmFy",      "interactive_reply": null,      "location": null,      "contacts": null,      "reaction": null,      "share": null,      "reply_to": null,      "referral": null,      "identity_change": null    }  }}

The attachment fields are described in Media.

Senders and conversations

from.id is the provider's stable id for the contact, and conversation_id identifies the conversation between that contact and the channel. Use conversation_id to reply and as the key of your conversation state. It is opaque: do not parse it.

message.sent#

message.sent reports every outbound message: your own API sends (source: "api", with your client_reference) and messages a person sent outside Braidport. Sources: api, business_app, page_inbox, other.

message.sentjson
{  "id": "evt_5syjr0x9a1xe4sfcyptkat45mmss78g2kmj1754se9jt38jtxz30",  "type": "message.sent",  "api_version": "2026-11-01",  "created_at": "2026-11-10T19:24:12.002Z",  "test": false,  "workspace_id": "ws_01m74e503kmb73kwncxpsgwymm",  "channel": {    "id": "ch_01m74e503qm4cft8xvtq85g98s",    "provider": "whatsapp",    "external_account_id": "106540352242922",    "display_name": "+39 340 123 4567"  },  "data": {    "message": {      "provider_message_id": "wamid.HBgMMzkzNDAxMjM0NTY3FQIAERgSQjE",      "conversation_id": "cnv_djF8Y2hfMDFtNzRlNTAzcW00Y2Z0OHh2dHE4NWc5OHN8SVQuMTM0OTEyMDg2NTUzMDI3NDE5MTh8",      "direction": "outbound",      "source": "business_app",      "client_reference": null,      "timestamp": "2026-11-10T19:24:11.000Z",      "from": {        "id": "106540352242922",        "name": null,        "username": null,        "phone": "+393401234567"      },      "type": "text",      "text": "Hi Mario, this is Giulia from the front desk. Tuesday at 10:00 works.",      "attachments": [],      "audio_url": null,      "interactive_reply": null,      "location": null,      "contacts": null,      "reaction": null,      "share": null,      "reply_to": null,      "referral": null,      "identity_change": null    }  }}

When source is anything other than api, a human is talking to the contact: pause your agent. See Human handover.

message.status#

message.statusjson
{  "id": "evt_32p3wwt3y0b8j32h1t9zjd9625mxkrzncn1p8ac31yqgjd7mz3j0",  "type": "message.status",  "api_version": "2026-11-01",  "created_at": "2026-11-10T19:25:00.512Z",  "test": false,  "workspace_id": "ws_01m74e503kmb73kwncxpsgwymm",  "channel": {    "id": "ch_01m74e503qm4cft8xvtq85g98s",    "provider": "whatsapp",    "external_account_id": "106540352242922",    "display_name": "+39 340 123 4567"  },  "data": {    "provider_message_id": "wamid.HBgMMzkzNDAxMjM0NTY3FQIAERgSQjI",    "conversation_id": "cnv_djF8Y2hfMDFtNzRlNTAzcW00Y2Z0OHh2dHE4NWc5OHN8SVQuMTM0OTEyMDg2NTUzMDI3NDE5MTh8",    "status": "read",    "recipient": {      "id": "IT.13491208655302741918"    },    "timestamp": "2026-11-10T19:24:58.000Z",    "client_reference": "booking-8841"  }}
FieldTypeDescription
provider_message_idstringThe outbound message this status is about.
conversation_idcnv_ id≤ 2,048 charsThe conversation of that message.
status"sent" | "delivered" | "read" | "played" | "failed"sent, delivered, read, played (voice notes) or failed.
recipientobjectWho the message was sent to.
recipient.idstringThe recipient's provider id.
timestamptimestampWhen the provider recorded the status.
client_referencestring | nullmay be absentThe client_reference of the send, when you set one.
errorobjectmay be absentPresent when status is failed.
error.codeenum (35 values)A stable Braidport error code (see Errors).
error.provider_codestringmay be absentThe provider's numeric code, for support cases.
pricingobjectmay be absentWhatsApp pricing information, when Meta includes it.
pricing.billablebooleanWhether Meta bills this message to the client's WhatsApp account.
pricing.categorystringMeta's pricing category.
pricing.typestringMeta's pricing type.
rawanymay be absentThe untouched provider payload, only when the workspace setting include_raw is on.

Providers report different receipts. What each channel can tell you about a message you sent:

Channeldeliveredreadplayed
WhatsAppYesYesYes
MessengerYesNoNo
InstagramNoYesNo
TelegramNoNoNo
SandboxYesNoNo

Messenger read receipts are not reported per message: Meta sends only a watermark (every message up to a time was read), not the ids of the messages. Messenger deliveries are reported only when Meta lists the ids of the messages delivered.

Do not wait for a delivered that a channel never sends: a successful POST /v1/messages already means the provider accepted the message. A failed status always carries error.code:

message.status (failed)json
{  "id": "evt_7xwvpyt3bc2k45jhvbqx6x6drt0xr1qtmsf3ekhr6dxrhjg4dqn0",  "type": "message.status",  "api_version": "2026-11-01",  "created_at": "2026-11-10T19:26:00.000Z",  "test": false,  "workspace_id": "ws_01m74e503kmb73kwncxpsgwymm",  "channel": {    "id": "ch_01m74e503qm4cft8xvtq85g98s",    "provider": "whatsapp",    "external_account_id": "106540352242922",    "display_name": "+39 340 123 4567"  },  "data": {    "provider_message_id": "wamid.HBgMMzkzNDAxMjM0NTY3FQIAERgSQjM",    "conversation_id": "cnv_djF8Y2hfMDFtNzRlNTAzcW00Y2Z0OHh2dHE4NWc5OHN8SVQuMTM0OTEyMDg2NTUzMDI3NDE5MTh8",    "status": "failed",    "recipient": {      "id": "IT.13491208655302741918"    },    "timestamp": "2026-11-10T19:25:59.000Z",    "client_reference": null,    "error": {      "code": "recipient_unreachable",      "provider_code": "131026"    }  }}

message.edited and message.deleted#

message.edited carries the full new version of the message in data.message, with the same provider_message_id. message.deleted carries only provider_message_id and conversation_id. If your agent already answered the original, decide in your own logic whether the edit changes anything. WhatsApp reports that a message was edited but not its new text, so a WhatsApp edit produces no event.

Channel events#

channel.connected, channel.disconnected and channel.status_changed share one data shape. Channel statuses: active, pending, needs_reauth, restricted, error, disabled.

channel.status_changedjson
{  "id": "evt_4mqh1j1p23nwm6g5kg5tx0jnxehfjpz4t7bvsym9twj8n0psy48g",  "type": "channel.status_changed",  "api_version": "2026-11-01",  "created_at": "2026-11-10T08:00:00.000Z",  "test": false,  "workspace_id": "ws_01m74e503kmb73kwncxpsgwymm",  "channel": {    "id": "ch_01m74e503qm4cft8xvtq85g98s",    "provider": "whatsapp",    "external_account_id": "106540352242922",    "display_name": "+39 340 123 4567"  },  "data": {    "status": "active",    "previous_status": "pending",    "reason": null  }}
FieldTypeDescription
status"active" | "pending" | "needs_reauth" | "restricted" | "error" | "disabled"The channel status now.
previous_status"active" | "pending" | "needs_reauth" | "restricted" | "error" | "disabled" | nullThe status before the change; null for a new channel.
reasonstring | nullMachine-readable reason, such as claimed_elsewhere or subscription_inactive, when there is one.
  • needs_reauth: the provider no longer accepts the channel's authorization, or, with the reason credentials_unreadable, the stored authorization can no longer be read on our side (for example after a restore). Ask the client to reconnect through their connect link. With credentials_unreadable you can contact support first: we may be able to restore the stored authorization, and a following health check then drops that reason by itself: the channel usually returns to active, possibly with a reason that check found (such as webhook_replaced or scope_missing).
  • restricted: the provider restricted the account; the client must resolve it with the provider.
  • disabled: the channel no longer works, for example because the account was connected to another workspace (claimed_elsewhere), a managed Telegram bot was transferred to another owner, who must connect it again through your connect link (owner_changed), or the subscription ended (subscription_inactive).

template.status_changed#

template.status_changedjson
{  "id": "evt_sm5ak1b18yvcbd7z5dyzxset42n3g99gk7qhpjk4nkpj6f4tzrmg",  "type": "template.status_changed",  "api_version": "2026-11-01",  "created_at": "2026-11-10T09:12:44.000Z",  "test": false,  "workspace_id": "ws_01m74e503kmb73kwncxpsgwymm",  "channel": {    "id": "ch_01m74e503qm4cft8xvtq85g98s",    "provider": "whatsapp",    "external_account_id": "106540352242922",    "display_name": "+39 340 123 4567"  },  "data": {    "template": {      "id": "1029384756",      "name": "appointment_reminder",      "language": "en_US",      "status": "approved",      "category": "utility"    }  }}
FieldTypeDescription
templateobjectThe WhatsApp message template that changed.
template.idstringMeta's template id.
template.namestringTemplate name.
template.languagestringLanguage code, such as en_US.
template.status"approved" | "pending" | "rejected" | "paused" | "disabled" | "in_appeal" | "pending_deletion" | "archived" | "limit_exceeded" | "locked"The new review status.
template.category"marketing" | "utility" | "authentication"marketing, utility or authentication.
template.reasonstring | nullmay be absentMeta's reason for a rejection or pause, when given.

Template statuses: approved, pending, rejected, paused, disabled, in_appeal, pending_deletion, archived, limit_exceeded, locked. Only approved templates can be sent.

ping#

Sent only when you test an endpoint. It is always test: true, has no channel, and has workspace_id: null on organization-level endpoints.

pingjson
{  "id": "evt_namm09k4y6j1yg7bqh9ck69ypsnepdk60aarzqxa50xq3sjdp4hg",  "type": "ping",  "api_version": "2026-11-01",  "created_at": "2026-11-10T10:00:00.000Z",  "test": true,  "workspace_id": null,  "channel": null,  "data": {    "endpoint_id": "we_01m74e503qmhx9q0b5gatqq4fs"  }}

Polling recent events#

GET/v1/eventsscope read

Recent events, oldest first: the most recent 200 or so events of the workspace, none older than 24 hours (needs the workspace's event buffer). A cursor that trimming has passed usually answers validation_failed with details.reason cursor_expired; after 48 hours without an event the buffer starts afresh and the gap is not reported

Besides webhooks, recent events can be read in order, which is useful for agents that poll. The buffer keeps the most recent 200 or so events of the workspace, none older than 24 hours. It needs the workspace setting event_buffer (on by default). Pass the returned next_after as after on the next call; with an organization key, pass workspace_id.

A poller that falls further behind than the buffer gets validation_failed with details.reason cursor_expired: events after its cursor are no longer kept. Call again without after to read from the oldest event kept. While a quiet workspace's buffer is empty, the answer is an empty page instead, and when the workspace had no new event for 48 hours the buffer starts afresh and the gap is not reported at all, so do not rely on cursor_expired to detect missed events. To catch up after an outage, rely on webhooks: a failed delivery is retried for about 24 hours.