OdyDocs

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

EventFires when
message.receivedAn inbound SMS/MMS is stored
message.sentAn outbound text is accepted for sending. Once per message
message.deliveredAn outbound message is accepted by the carrier, and again on each delivery-status update
message.failedThe carrier reports an outbound message failed
conversation.createdA conversation starts with a number you had no thread with
conversation.status.changedA conversation is marked done, or reopened
call.ringingAn inbound call reaches one of your numbers, before anyone answers
call.answeredSomeone picks up: a teammate, the AI agent, or the person you called
call.forwardedAn inbound call is sent on to an outside phone number
call.completedAn answered call ends (by a teammate or the AI agent)
call.missedAn inbound call ends unanswered
call.recording.completedA call recording is stored
call.voicemail.completedA voicemail is stored
call.transcript.completedA call or voicemail transcript is ready
call.summary.completedThe AI summary of a call is ready
call.flow.startedAn inbound call enters an IVR call flow
call.flow.completedA call flow reaches its final step
call.flow.abortedA call flow stops early
call.queue.joinedA caller starts waiting in a call queue
call.queue.qualifiedThe AI greeter has learned who is calling and why, while they wait
call.queue.answeredA teammate picks up a caller from the queue
call.queue.leftA caller leaves the queue without being answered
contact.updatedA contact is created or edited in the app, the API or MCP — or Ody AI Contact fills in details
contact.deletedA contact is deleted
link.clickedA person opens a tracked link.ody.co link from a text you sent
media.openedA person opens a hosted link.ody.co/m/… page (a gallery, video or file you texted)
media.downloadedA 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 callOutbound call
call.ringing → call.answered or call.forwarded → call.completed / call.missed → call.recording.completed, call.transcript.completed, call.summary.completedcall.answered → call.completed / call.missed → call.recording.completed, call.transcript.completed
Correlating live and finished events

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:

  • conversationId uuid — The thread. Fetch it with GET /conversations/:id.
  • inboxId uuid — The inbox the thread belongs to.
  • activityId uuid — The message, call or voicemail inside the thread.
  • numberE164 string — Your Ody number involved.
  • telnyxCallId string — 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.

JSON
{
  "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.

  • sentBy string — member when a person sent it (the app, an API key or MCP), ai when Ody's AI sent it, automation when an automation from Build → Automations sent it. Treat any other value as "not a person": new senders may be added.
  • automationId uuid — Only when sentBy is automation: the automation that sent the text. The same id is on the message in the thread.
  • conversationId uuid, inboxId uuid, activityId uuid, numberE164 string — The thread, its inbox, the message, and the Ody number it was sent from.
JSON
{
  "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:

JSON
{
  "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.

  • deliveryStatus string — Present on carrier status updates, for example sent or delivered. Absent on the first event at send time.
JSON
{
  "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).

  • deliveryStatus string — The carrier's failure status, for example sending_failed or delivery_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.

  • conversationId uuid — The new thread.
  • inboxId uuid — The inbox (the Ody number) it belongs to.
  • contactId uuid — The contact on the other side. For an unknown number this is the placeholder contact Ody creates; fetch it with GET /contacts/:id.
JSON
{
  "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.

  • status string — The new status: open or done.
  • previousStatus string — The status before the change.
  • conversationId uuid, inboxId uuid — The thread and its inbox.
JSON
{
  "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.

  • numberE164 string — The Ody number that was called.
  • from string | null — The caller, in E.164. null when the caller withheld their number.
  • callerName string | null — The caller name the carrier delivered (CNAM), if any.
  • telnyxCallId string | null — Join key for the later call.answered / call.completed / call.missed.
  • direction string — Always inbound.
  • routedBy string — number when the number's own settings route the call, flow when a call flow (phone menu) takes it. Flow calls also send call.flow.started.
JSON
{
  "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:

answeredByMeaningExtra fields
agentThe AI agent took an inbound call. Sent the moment the agent picks up.agentId
memberA teammate answered an inbound call on the Ody app.memberUid — the teammate's user ID
calleeThe person you dialed answered an outbound call placed from the app.conversationId, inboxId, activityId — the call already has its timeline entry
  • answeredBy string — agent, member or callee.
  • direction string — inbound or outbound.
  • numberE164 string | null — Your Ody number. For member answers it is included when the workspace has one number or the teammate has an assigned line; otherwise it is omitted rather than guessed, and call.completed carries the definitive number.
  • from string | null — The caller (inbound).
  • telnyxCallId string | null — Join key.
JSON
{
  "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.

  • forwardedTo string — The outside number the call went to, in E.164.
  • numberE164 string, from string | null, telnyxCallId string | null, direction string — As in call.ringing.
JSON
{
  "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.

JSON
{
  "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.

JSON
{
  "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.

  • numberE164 string — The number that was called.
  • flowId string, flowName string, flowVersion integer — Which flow, and which published version.
  • telnyxCallId string | null
  • terminal string — completed only: the final step type, for example ring, voicemail, forward, astra or hangup.
  • reason string — aborted only: why the flow stopped.
  • nodeId string — completed and aborted: 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.

  • numberE164 string — The number that was called.
  • from string | null — The caller, in E.164. null when the caller ID is withheld.
  • telnyxCallId string — The carrier's call ID.
  • direction string — Always inbound.
  • queueId uuid, queueName string — Which queue.
  • entryId uuid — 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.

Text
call.queue.joined → [call.queue.qualified] → call.queue.answered
                                           → call.queue.left

A 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.

  • position integer — Their place in line at that moment. 1 means they are next.
  • callerName string | null — The caller name the carrier sent (CNAM), if any.
JSON
{
  "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.

  • callerName string | null — The name the caller gave. null if they did not say one.
  • callReason string | null — One line on why they are calling.
  • urgent boolean — The greeter judged the call urgent (for example a leak, an outage, a safety issue).
  • fields object — 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.
  • greeter string — model when the AI read the answer. fallback when it could not be reached in time: callReason is then the caller's own words, and callerName is filled in only when the caller plainly said it ("this is Dana").
  • credits integer — The AI credits this exchange cost.
  • conversationId uuid, contactId uuid — The caller's thread and contact. Absent when the caller ID is withheld.
JSON
{
  "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.

  • memberUid string — The teammate who answered.
  • waitSeconds integer — How long the caller waited.
JSON
{
  "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.

  • reason string — Why they left. See the table below.
  • waitSeconds integer — How long they had waited.
  • taskId uuid — callback only: the task Ody created so your team calls them back.
reasonWhat happenedWhat follows
abandonedThe caller hung up while waiting.call.missed
callbackThe caller pressed 1 to be called back instead of waiting.call.missed, and a task in the app
textedThe caller pressed 2 and Ody sent them a text.call.missed; their reply arrives as message.received
timeoutThey waited the queue's longest wait.The call flow's "waited too long" branch (voicemail by default)
no_agentsEvery teammate on the queue went Away while they waited.The call flow's "nobody available" branch (voicemail by default)
JSON
{
  "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.

  • contactId uuid — The contact.
  • change string — created, updated or enriched.
  • fields string[] — 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.
JSON
{
  "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:

JSON
{
  "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.

JSON
{
  "type": "contact.deleted",
  "data": { "contactId": "8b1d6f3e-…" }
}

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.

  • conversationId uuid, activityId uuid — The thread and the message that carried the link. activityId is omitted when the link was created before its message was stored (rare).
  • contactId uuid — The contact who clicked, when the thread has one.
  • linkId uuid — The tracked link.
  • destination string — The destination host (for example farmdogs.com), never the full URL.
  • clickCount integer — Human clicks on this link so far, including this one.
  • repeat boolean — true when this link had been clicked before.
  • device string — mobile, desktop or other, from the user agent.
  • country string — ISO-3166 alpha-2 when the edge supplied one.
JSON
{
  "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.

  • conversationId uuid, activityId uuid — The thread and the message that carried the page.
  • contactId uuid — The contact who opened it, when the thread has one.
  • hostedMediaId uuid — The page; matches hostedMedia[].id and media[].hostedMediaId on the activity.
  • title string — What the text said: 3 photos, 1 video, quote.pdf.
  • layout string — gallery, single or mixed.
  • itemCount integer — Files on the page.
  • repeat boolean — true when this page had been opened before.
  • device string — mobile, desktop or other.
  • country string — ISO-3166 alpha-2 when the edge supplied one.
JSON
{
  "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.

JSON
{
  "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.

Last updated Tue Nov 24 2026 00:00:00 GMT+0000 (Coordinated Universal Time)Something wrong on this page? Tell us