Event types
Every webhook event Ody can send, when it fires, and the fields in its data object.
Subscribe an endpoint to individual types, or to ["*"] for every current and future type. GET /v1/api/webhook-events returns the live catalog, and the SDKs export it as WEBHOOK_EVENT_TYPES with a typed data shape per event.
#Summary
| Event | Fires when |
|---|---|
message.received | An inbound SMS/MMS is stored |
message.sent | An outbound text is accepted for sending. Once per message |
message.delivered | An outbound message is accepted by the carrier, and again on each delivery-status update |
message.failed | The carrier reports an outbound message failed |
conversation.created | A conversation starts with a number you had no thread with |
conversation.status.changed | A conversation is marked done, or reopened |
call.ringing | An inbound call reaches one of your numbers, before anyone answers |
call.answered | Someone picks up: a teammate, the AI agent, or the person you called |
call.forwarded | An inbound call is sent on to an outside phone number |
call.completed | An answered call ends (by a teammate or the AI agent) |
call.missed | An inbound call ends unanswered |
call.recording.completed | A call recording is stored |
call.voicemail.completed | A voicemail is stored |
call.transcript.completed | A call or voicemail transcript is ready |
call.summary.completed | The AI summary of a call is ready |
call.flow.started | An inbound call enters an IVR call flow |
call.flow.completed | A call flow reaches its final step |
call.flow.aborted | A call flow stops early |
call.queue.joined | A caller starts waiting in a call queue |
call.queue.qualified | The AI greeter has learned who is calling and why, while they wait |
call.queue.answered | A teammate picks up a caller from the queue |
call.queue.left | A caller leaves the queue without being answered |
contact.updated | A contact is created or edited in the app, the API or MCP — or Ody AI Contact fills in details |
contact.deleted | A contact is deleted |
link.clicked | A person opens a tracked link.ody.co link from a text you sent |
media.opened | A person opens a hosted link.ody.co/m/… page (a gallery, video or file you texted) |
media.downloaded | A person saves a photo or file from a hosted page |
#The life of a call
Call events arrive in this order. The first three are live signals, sent while the call is still going on; the rest describe the finished call and carry a conversationId.
| Inbound call | Outbound call |
|---|---|
call.ringing → call.answered or call.forwarded → call.completed / call.missed → call.recording.completed, call.transcript.completed, call.summary.completed | call.answered → call.completed / call.missed → call.recording.completed, call.transcript.completed |
call.ringing, call.answered and call.forwarded fire before the call has a timeline entry, so they have no conversationId. Use telnyxCallId to join them to the later call.completed or call.missed, which carries both IDs.
Most events share these data fields:
conversationIduuid — The thread. Fetch it withGET /conversations/:id.inboxIduuid — The inbox the thread belongs to.activityIduuid — The message, call or voicemail inside the thread.numberE164string — Your Ody number involved.telnyxCallIdstring — For call events: the carrier's call ID. Join live and finished events on it, and quote it when talking to support.
#Messages
#message.received
An inbound SMS or MMS was stored in a thread. Fetch the body and media from the conversation.
{
"type": "message.received",
"data": {
"numberE164": "+15125550100",
"conversationId": "c4f1a2b3-…",
"inboxId": "1e2d3c4b-…",
"activityId": "a1b2c3d4-…",
"contactId": "8b1d6f3e-…"
}
}#message.sent
An outbound text was accepted for sending. It fires once per message, whoever sent it: a teammate in the app, an API key, an MCP client, the AI or an automation. Use it for "after we text a customer…" logic and for logging outbound texts to a CRM, where one event per message is what you want.
sentBystring —memberwhen a person sent it (the app, an API key or MCP),aiwhen Ody's AI sent it,automationwhen an automation from Build → Automations sent it. Treat any other value as "not a person": new senders may be added.automationIduuid — Only whensentByisautomation: the automation that sent the text. The same id is on the message in the thread.conversationIduuid,inboxIduuid,activityIduuid,numberE164string — The thread, its inbox, the message, and the Ody number it was sent from.
{
"type": "message.sent",
"data": {
"conversationId": "c4f1…",
"inboxId": "1e2d…",
"activityId": "5e7f…",
"numberE164": "+15125550100",
"sentBy": "member"
}
}A text sent by an automation looks like this — if your own code reacts to message.sent by sending a text, skip these so the two do not answer each other:
{
"type": "message.sent",
"data": {
"conversationId": "c4f1…",
"inboxId": "1e2d…",
"activityId": "5e7f…",
"numberE164": "+15125550100",
"sentBy": "automation",
"automationId": "9a3b…"
}
}message.sent and the first message.delivered describe the same moment. message.delivered then repeats as the carrier reports progress; message.sent does not. Messages sent with a test key (ody_test_…) are simulated and send neither.
#message.delivered
Fires when an outbound message (from the app, the API, MCP or the AI) is accepted by the carrier, and again each time the carrier reports progress. Status only ever moves forward, so a late sent never overwrites delivered.
deliveryStatusstring — Present on carrier status updates, for examplesentordelivered. Absent on the first event at send time.
{
"type": "message.delivered",
"data": { "conversationId": "c4f1…", "inboxId": "1e2d…", "activityId": "5e7f…", "deliveryStatus": "delivered" }
}#message.failed
The carrier reported that an outbound message could not be delivered (for example, the number is unreachable or the recipient opted out).
deliveryStatusstring — The carrier's failure status, for examplesending_failedordelivery_failed.
#Conversations
#conversation.created
A conversation now exists with a phone number you had no thread with on that Ody number. It fires when the first text or call arrives from a new number, and when you text or call a new number first. It does not fire again for later messages in the same thread.
conversationIduuid — The new thread.inboxIduuid — The inbox (the Ody number) it belongs to.contactIduuid — The contact on the other side. For an unknown number this is the placeholder contact Ody creates; fetch it withGET /contacts/:id.
{
"type": "conversation.created",
"data": { "conversationId": "c4f1…", "inboxId": "1e2d…", "contactId": "8b1d6f3e-…" }
}It arrives just before the event for the message or call that started the thread (message.received, message.sent, call.completed…). Delivery order is not guaranteed, so don't rely on it arriving first.
#conversation.status.changed
A conversation was marked done, or reopened. It fires when someone changes the status in the app, through PATCH /conversations/:id or through MCP, and when Ody reopens a done conversation because the person texted or called again. Setting a status the conversation already has sends nothing.
statusstring — The new status:openordone.previousStatusstring — The status before the change.conversationIduuid,inboxIduuid — The thread and its inbox.
{
"type": "conversation.status.changed",
"data": { "conversationId": "c4f1…", "inboxId": "1e2d…", "status": "done", "previousStatus": "open" }
}#Calls
#call.ringing
An inbound call reached one of your numbers and your phones (or the AI agent, or the call flow) are about to take it. This is the earliest signal Ody has about a call: use it to open the caller's record in your CRM while the phone is still ringing.
Sent once per inbound call, before routing. Not sent for outbound calls, or when the workspace is suspended.
numberE164string — The Ody number that was called.fromstring | null — The caller, in E.164.nullwhen the caller withheld their number.callerNamestring | null — The caller name the carrier delivered (CNAM), if any.telnyxCallIdstring | null — Join key for the latercall.answered/call.completed/call.missed.directionstring — Alwaysinbound.routedBystring —numberwhen the number's own settings route the call,flowwhen a call flow (phone menu) takes it. Flow calls also sendcall.flow.started.
{
"type": "call.ringing",
"data": {
"numberE164": "+15125550100",
"from": "+15125559999",
"callerName": "ADA LOVELACE",
"telnyxCallId": "v3:6aL…",
"direction": "inbound",
"routedBy": "number"
}
}#call.answered
Someone picked up. answeredBy tells you who, and the other fields depend on it:
answeredBy | Meaning | Extra fields |
|---|---|---|
agent | The AI agent took an inbound call. Sent the moment the agent picks up. | agentId |
member | A teammate answered an inbound call on the Ody app. | memberUid — the teammate's user ID |
callee | The person you dialed answered an outbound call placed from the app. | conversationId, inboxId, activityId — the call already has its timeline entry |
answeredBystring —agent,memberorcallee.directionstring —inboundoroutbound.numberE164string | null — Your Ody number. Formemberanswers it is included when the workspace has one number or the teammate has an assigned line; otherwise it is omitted rather than guessed, andcall.completedcarries the definitive number.fromstring | null — The caller (inbound).telnyxCallIdstring | null — Join key.
{
"type": "call.answered",
"data": {
"numberE164": "+15125550100",
"from": "+15125559999",
"telnyxCallId": "v3:6aL…",
"direction": "inbound",
"answeredBy": "member",
"memberUid": "uid_ana"
}
}Calls the AI agent places for you through POST /calls do not send call.answered; their first event is call.completed.
#call.forwarded
An inbound call is being connected to an outside phone number: the number is set to forward, the caller pressed a menu key that forwards, or a call flow reached a forward step. No call.answered follows for the outside line. When the call ends you get call.completed (it was picked up) or call.missed.
forwardedTostring — The outside number the call went to, in E.164.numberE164string,fromstring | null,telnyxCallIdstring | null,directionstring — As incall.ringing.
{
"type": "call.forwarded",
"data": {
"numberE164": "+15125550100",
"from": "+15125559999",
"telnyxCallId": "v3:6aL…",
"direction": "inbound",
"forwardedTo": "+15125550001"
}
}#call.completed
An answered call ended. When the AI agent handled the call, data.answeredBy is "agent". The recording, transcript and summary follow as separate events.
{
"type": "call.completed",
"data": {
"conversationId": "c4f1…",
"inboxId": "1e2d…",
"activityId": "9d8c…",
"numberE164": "+15125550100",
"telnyxCallId": "v3:6aL…",
"answeredBy": "agent"
}
}#call.missed
An inbound call ended without being answered (no voicemail, or before one was left). Same fields as call.completed, without answeredBy.
#call.recording.completed
A call recording was stored on the call activity. The signed recording URL is on the activity, which you get from GET /conversations/:id.
#call.voicemail.completed
A caller left a voicemail. The audio is on the activity; the transcript follows as call.transcript.completed.
#call.transcript.completed
A speaker-labelled transcript is ready for a call or voicemail. Read it from the activity's callTranscript.
#call.summary.completed
The AI summary of a call is ready. For calls the AI agent handled, data.summaryText carries the summary inline. For other calls, read it from the activity.
{
"type": "call.summary.completed",
"data": {
"conversationId": "c4f1…",
"activityId": "9d8c…",
"telnyxCallId": "v3:6aL…",
"summaryText": "Ada asked to move Friday's appointment to Monday 10am; confirmed and texted the new time."
}
}#Call flow events
Fired by IVR call flows (phone menus) built in the app. Use them to measure menu drop-off or trigger follow-ups.
numberE164string — The number that was called.flowIdstring,flowNamestring,flowVersioninteger — Which flow, and which published version.telnyxCallIdstring | nullterminalstring —completedonly: the final step type, for examplering,voicemail,forward,astraorhangup.reasonstring —abortedonly: why the flow stopped.nodeIdstring —completedandaborted: the step it ended on.
#Call queue events
A call queue holds callers in line, with music, until a teammate is free. These four events follow one caller through that wait. They are live signals: they fire while the caller is still on the phone, so you can put the caller on a wallboard, open their record before anyone picks up, or alert a manager when people hang up.
Every queue event carries the fields below. entryId is one caller's place in one queue, the same on all of that caller's queue events. telnyxCallId is the same ID the call's other events carry (call.ringing, then call.completed or call.missed), so you can join the two.
numberE164string — The number that was called.fromstring | null — The caller, in E.164.nullwhen the caller ID is withheld.telnyxCallIdstring — The carrier's call ID.directionstring — Alwaysinbound.queueIduuid,queueNamestring — Which queue.entryIduuid — This caller's place in the queue.
A caller's events arrive in this order. qualified is sent only by queues with the AI greeter on, and only when the caller answered it. Exactly one of answered or left ends the sequence.
call.queue.joined → [call.queue.qualified] → call.queue.answered
→ call.queue.leftA caller who never gets into the line sends none of these: when the queue is full, switched off, or every teammate on it is Away, the call follows the call flow's fallback branch instead (voicemail, unless the flow says otherwise).
#call.queue.joined
A caller started waiting.
positioninteger — Their place in line at that moment.1means they are next.callerNamestring | null — The caller name the carrier sent (CNAM), if any.
{
"type": "call.queue.joined",
"data": {
"numberE164": "+14155550100",
"from": "+14155550111",
"telnyxCallId": "v3:6aL…",
"direction": "inbound",
"queueId": "0b9c1f6e-…",
"queueName": "Front desk",
"entryId": "5d2a7c41-…",
"position": 2,
"callerName": "WHITFIELD DANA"
}
}#call.queue.qualified
The queue's AI greeter asked the caller who they are and what they need, and the caller answered. This arrives seconds after joined, usually before anyone has picked up. Use it to show your team the reason for the call, or to route work in your own system.
The event carries what the greeter understood, not a transcript of what the caller said.
callerNamestring | null — The name the caller gave.nullif they did not say one.callReasonstring | null — One line on why they are calling.urgentboolean — The greeter judged the call urgent (for example a leak, an outage, a safety issue).fieldsobject — The extra details this queue asks for, keyed by field. A queue that asks for a "Job number" sends{"job_number": "4471"}. Details the caller did not give are absent.greeterstring —modelwhen the AI read the answer.fallbackwhen it could not be reached in time:callReasonis then the caller's own words, andcallerNameis filled in only when the caller plainly said it ("this is Dana").creditsinteger — The AI credits this exchange cost.conversationIduuid,contactIduuid — The caller's thread and contact. Absent when the caller ID is withheld.
{
"type": "call.queue.qualified",
"data": {
"numberE164": "+14155550100",
"from": "+14155550111",
"telnyxCallId": "v3:6aL…",
"direction": "inbound",
"queueId": "0b9c1f6e-…",
"queueName": "Front desk",
"entryId": "5d2a7c41-…",
"conversationId": "c4f1…",
"contactId": "8b1d6f3e-…",
"callerName": "Dana Whitfield",
"callReason": "Water heater is leaking",
"urgent": true,
"fields": { "job_number": "4471" },
"greeter": "model",
"credits": 30
}
}When AI Contact is on, Ody also saves what the caller said to their contact. That change arrives separately as contact.updated with change: "enriched".
#call.queue.answered
A teammate picked up. Sent once per caller.
memberUidstring — The teammate who answered.waitSecondsinteger — How long the caller waited.
{
"type": "call.queue.answered",
"data": {
"numberE164": "+14155550100",
"from": "+14155550111",
"telnyxCallId": "v3:6aL…",
"direction": "inbound",
"queueId": "0b9c1f6e-…",
"queueName": "Front desk",
"entryId": "5d2a7c41-…",
"memberUid": "u_8Kq…",
"waitSeconds": 42
}
}The call's ordinary events still follow: call.answered at the same moment, and call.completed when the conversation ends.
#call.queue.left
The caller left the line without speaking to anyone.
reasonstring — Why they left. See the table below.waitSecondsinteger — How long they had waited.taskIduuid —callbackonly: the task Ody created so your team calls them back.
reason | What happened | What follows |
|---|---|---|
abandoned | The caller hung up while waiting. | call.missed |
callback | The caller pressed 1 to be called back instead of waiting. | call.missed, and a task in the app |
texted | The caller pressed 2 and Ody sent them a text. | call.missed; their reply arrives as message.received |
timeout | They waited the queue's longest wait. | The call flow's "waited too long" branch (voicemail by default) |
no_agents | Every teammate on the queue went Away while they waited. | The call flow's "nobody available" branch (voicemail by default) |
{
"type": "call.queue.left",
"data": {
"numberE164": "+14155550100",
"from": "+14155550111",
"telnyxCallId": "v3:6aL…",
"direction": "inbound",
"queueId": "0b9c1f6e-…",
"queueName": "Front desk",
"entryId": "5d2a7c41-…",
"reason": "callback",
"waitSeconds": 95,
"taskId": "7e0f3b2a-…"
}
}#Contacts
Contact events carry only the contact's ID, never the record itself, so an endpoint that is only meant to learn "something changed" is never sent names and phone numbers. Fetch the current state with GET /contacts/:id.
They fire for deliberate changes made in the app, through the API or through MCP, and when AI Contact fills in details on a contact. They do not fire for the placeholder contacts Ody creates automatically when an unknown number calls or texts, nor for bulk CSV imports and CRM syncs: a 2,000-row import would otherwise send 2,000 deliveries. Read the result of an import through the Contacts API instead.
#contact.updated
A contact was created or edited, or Ody AI Contact filled in details.
contactIduuid — The contact.changestring —created,updatedorenriched.fieldsstring[] —updated: the top-level fields the caller sent (for example["lastName", "tags"]). Sending a field with its existing value still lists it, so treat this as "what was touched", not a diff.enriched: the fields whose value Ody AI Contact just filled in or improved.
{
"type": "contact.updated",
"data": { "contactId": "8b1d6f3e-…", "change": "updated", "fields": ["lastName", "tags"] }
}enriched is sent only for workspaces with AI Contact on, each time Ody adds or improves details — one call can produce more than one (the number lookup, then what was said). It never reports a change to a field you wrote — AI Contact doesn't overwrite those. Fetch the contact to read the new values and fieldSources:
{
"type": "contact.updated",
"data": { "contactId": "8b1d6f3e-…", "change": "enriched", "fields": ["firstName", "company", "jobTitle"] }
}If you sync contacts into a CRM, treat enriched like updated: fetch and upsert. To keep AI-filled values out of your system of record, skip fields whose fieldSources[…].aiGenerated is true.
#contact.deleted
A contact was deleted. GET /contacts/:id now returns 404, so remove or archive your copy.
{
"type": "contact.deleted",
"data": { "contactId": "8b1d6f3e-…" }
}#Links
#link.clicked
A person opened a tracked short link from a text you sent. Only fires when the workspace has link tracking on (Settings → Analytics in the Ody app): every http(s) URL in an outbound text — from the app, the API, MCP or the AI — is then sent as https://link.ody.co/<code>, and the redirect records the click. The message that carried the link lists its links under trackedLinks.
One event per human click. Link previews, scanners and prefetchers (iMessage, WhatsApp, carrier filters, security gateways) are recognised and never emit, so a link.clicked means a person reached the destination. Clicks on the same link after the first carry repeat: true and a growing clickCount.
conversationIduuid,activityIduuid — The thread and the message that carried the link.activityIdis omitted when the link was created before its message was stored (rare).contactIduuid — The contact who clicked, when the thread has one.linkIduuid — The tracked link.destinationstring — The destination host (for examplefarmdogs.com), never the full URL.clickCountinteger — Human clicks on this link so far, including this one.repeatboolean —truewhen this link had been clicked before.devicestring —mobile,desktoporother, from the user agent.countrystring — ISO-3166 alpha-2 when the edge supplied one.
{
"type": "link.clicked",
"data": {
"conversationId": "c4f1…",
"activityId": "5e7f…",
"contactId": "8b1d…",
"linkId": "2d9a…",
"destination": "farmdogs.com",
"clickCount": 2,
"repeat": true,
"device": "mobile",
"country": "US"
}
}#Hosted files
#media.opened
A person opened a hosted page — the link.ody.co/m/<token> page Ody sends for a gallery, a video, a document or any attachment too big for MMS when the workspace has Hosted files on (the default). The message that carried the page lists it under hostedMedia.
One event per human open. Link previewers and scanners receive a generic card and never emit, so a media.opened means a person saw the content. Opens after the first carry repeat: true. Nothing fires when the workspace turned trackOpens off.
conversationIduuid,activityIduuid — The thread and the message that carried the page.contactIduuid — The contact who opened it, when the thread has one.hostedMediaIduuid — The page; matcheshostedMedia[].idandmedia[].hostedMediaIdon the activity.titlestring — What the text said:3 photos,1 video,quote.pdf.layoutstring —gallery,singleormixed.itemCountinteger — Files on the page.repeatboolean —truewhen this page had been opened before.devicestring —mobile,desktoporother.countrystring — ISO-3166 alpha-2 when the edge supplied one.
{
"type": "media.opened",
"data": {
"conversationId": "c4f1…",
"activityId": "5e7f…",
"contactId": "8b1d…",
"hostedMediaId": "a91c…",
"title": "3 photos",
"layout": "gallery",
"itemCount": 3,
"repeat": false,
"device": "mobile",
"country": "US"
}
}#media.downloaded
A person tapped Save on a hosted page (only offered for the kinds the workspace allows — photos and documents by default). Same fields as media.opened minus repeat, plus itemId — the file that was saved.
{
"type": "media.downloaded",
"data": {
"conversationId": "c4f1…",
"activityId": "5e7f…",
"contactId": "8b1d…",
"hostedMediaId": "a91c…",
"itemId": "f02e…",
"title": "3 photos",
"layout": "gallery",
"itemCount": 3,
"device": "mobile",
"country": "US"
}
}Taps on the page's Visit website button are tracked links (source = media_page) and arrive as link.clicked.
#The test event
POST /webhooks/:id/test sends {"type": "ping", "data": {"message": "Test delivery from Ody"}}, signed like a real event. Its ID starts with evt_test_. ping isn't in the catalog and you can't subscribe to it, so make sure your handler doesn't error on unknown types.
To test a handler for one event, send a sample of that type instead: pass {"type": "message.received"} (any type from the table above) in the request body, or use Send test event in the Ody app under Build → Webhooks. The body is a realistic sample with made-up IDs and phone numbers, signed like a real event, and its ID still starts with evt_test_. A test is sent once and is never retried.