OdyDocs

Webhook endpoints

Register HTTPS endpoints for event notifications, rotate signing secrets, send test events and inspect delivery history.

A webhook endpoint is an HTTPS URL Ody POSTs signed events to. This page covers managing endpoints. For what gets delivered and how to verify it, see Webhooks, Event types and Verifying signatures.

The same endpoints are managed in the Ody app under Build → Webhooks, which adds an event picker, the body of each delivery and a Resend button (overview). There's no MCP tool for webhooks yet.

#The webhook endpoint object

  • id uuid
  • url string — HTTPS only, and it must resolve to a public address (URL rules).
  • events array of strings — Subscribed event types, or ["*"] for every current and future type.
  • label string | null — Your own name for it.
  • status "enabled" | "disabled"
  • apiVersion string | null — The payload version pinned when the endpoint was created.
  • createdAt timestamp
  • failingSince timestamp | null — When deliveries started failing with no success since. null while the endpoint is healthy; any successful delivery clears it.
  • disabledReason "failing" | null — "failing" when Ody switched the endpoint off after 3 days without a successful delivery (details). null when it is enabled or when you disabled it.
  • disabledAt timestamp | null — When the endpoint was disabled, by you or by Ody (disabledReason says which). null while it is enabled.
  • secret string — whsec_… signing secret. Returned only by create and rotate. Store it right away.

A workspace can have up to 50 endpoints.

#List event types

GET/v1/api/webhook-events

Returns the catalog of event types you can subscribe to.

Scope: webhooks:manage

Returns { events: string[] }.

curl https://api.ody.co/v1/api/webhook-events \
  -H "Authorization: Bearer $ODY_API_KEY"

#List endpoints

GET/v1/api/webhooks

Secrets are never included.

Scope: webhooks:manage

Returns { webhooks: WebhookEndpoint[] }.

curl https://api.ody.co/v1/api/webhooks \
  -H "Authorization: Bearer $ODY_API_KEY"

#Create an endpoint

POST/v1/api/webhooks

Scope: webhooks:manage

Body

  • url string required — Public HTTPS URL. A URL that resolves to localhost, a private network or a metadata address is refused with 400.
  • events array of strings required — Event types, or ["*"].
  • label string

Returns 201 with { webhook }, including secret. Returns 400 for a non-HTTPS URL, a URL that doesn't resolve to a public address, an unknown event type, or when you'd exceed 50 endpoints.

curl https://api.ody.co/v1/api/webhooks \
  -H "Authorization: Bearer $ODY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/ody/webhooks",
    "events": ["message.received", "call.completed", "call.summary.completed"],
    "label": "Production CRM sync"
  }'
Response
{
  "webhook": {
    "id": "3a8f…",
    "url": "https://example.com/ody/webhooks",
    "events": ["message.received", "call.completed", "call.summary.completed"],
    "label": "Production CRM sync",
    "status": "enabled",
    "apiVersion": "2026-06-01",
    "createdAt": "2026-10-14T18:20:00.000Z",
    "failingSince": null,
    "disabledReason": null,
    "disabledAt": null,
    "secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
  }
}

#Retrieve an endpoint

GET/v1/api/webhooks/:id

Scope: webhooks:manage

Returns { webhook } (without the secret).

curl https://api.ody.co/v1/api/webhooks/3a8f… \
  -H "Authorization: Bearer $ODY_API_KEY"

#Update an endpoint

PATCH/v1/api/webhooks/:id

Change the URL, subscriptions or label, or pause deliveries with status: "disabled". Setting status: "enabled" turns an endpoint back on, including one Ody switched off; it also clears failingSince, disabledReason and disabledAt.

Scope: webhooks:manage

Body: any of url, events, label (null clears it), status.

Returns { webhook }.

curl -X PATCH https://api.ody.co/v1/api/webhooks/3a8f… \
  -H "Authorization: Bearer $ODY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"disabled"}'

#Delete an endpoint

DELETE/v1/api/webhooks/:id

Scope: webhooks:manage

Returns { "deleted": true }.

curl -X DELETE https://api.ody.co/v1/api/webhooks/3a8f… \
  -H "Authorization: Bearer $ODY_API_KEY"

#Rotate the signing secret

POST/v1/api/webhooks/:id/rotate

Issues a new whsec_ secret and returns it once. Signatures made with the old secret stop validating immediately. Deploy the new secret to your verifier first, or accept both secrets briefly (see Verifying signatures).

Scope: webhooks:manage

Returns { webhook }, including the new secret.

curl -X POST https://api.ody.co/v1/api/webhooks/3a8f…/rotate \
  -H "Authorization: Bearer $ODY_API_KEY"

#Send a test delivery

POST/v1/api/webhooks/:id/test

POSTs one event to the endpoint, signed exactly like a real delivery, and returns the result straight away. This is the fastest way to check your signature verification and your handler.

Scope: webhooks:manage

Body (optional)

  • type string — ping (the default), or any event type such as message.received. With an event type, Ody sends a realistic sample of that event: the same fields as a real one, with made-up ids and phone numbers, and an id that starts with evt_test_. The sample is sent even if the endpoint isn't subscribed to that type, and to a disabled endpoint too.

A test is one attempt and is never retried. It appears in the delivery history.

Returns { delivered: boolean, attempt: { at, statusCode, error?, durationMs }, type, eventId }. delivered is true for any 2xx response. Returns 400 for an unknown type.

curl -X POST https://api.ody.co/v1/api/webhooks/3a8f…/test \
  -H "Authorization: Bearer $ODY_API_KEY"
Response
{
  "delivered": true,
  "attempt": { "at": "2026-10-14T18:21:03.114Z", "statusCode": 200, "durationMs": 143 },
  "type": "message.received",
  "eventId": "evt_test_mdv4k2p97xq3"
}

#List deliveries

GET/v1/api/webhooks/:id/deliveries

Recent deliveries, newest first, with every attempt's status code or error. This is your debugging view. Deliveries are kept for 30 days. The app's Build → Webhooks shows the same list, plus the body that was sent and the start of your server's answer.

Scope: webhooks:manage

Query parameters

  • limit integer — 1–200, default 50.

Returns { deliveries: [{ id, webhookId, eventId, eventType, status, attempts, nextAttemptAt, createdAt }] }.

  • eventType string | null — The event's type (ping for a plain test). null on deliveries made before 2026-11-24.
  • status string — pending (the first attempt hasn't been made), retrying (an attempt failed and another is due at nextAttemptAt), success, or failed (every attempt failed; nothing more is scheduled). See the retry schedule.
  • attempts array — Each has at, durationMs, and statusCode or error. manual: true marks an attempt made with Resend in the app.
  • nextAttemptAt timestamp | null — When the next automatic attempt is due.
curl "https://api.ody.co/v1/api/webhooks/3a8f…/deliveries?limit=20" \
  -H "Authorization: Bearer $ODY_API_KEY"
Last updated Tue Nov 24 2026 00:00:00 GMT+0000 (Coordinated Universal Time)Something wrong on this page? Tell us