Register a URL to receive events at, later. Endpoint management is live today; Dyva does not dispatch events to it yet.
An HTTPS URL and the event names you’d eventually want. The events list and secret are stored as given. There’s no fixed event catalog to validate against yet, so anything you send is accepted as-is.
/v1/webhooksStores a webhook endpoint registration.
Route and method verified directly against the live ts-api source on August 13, 2026.
Request body (3)
urlstringRequiredeventsstring[]OptionalsecretstringOptionalResponse
Illustrative example, not a captured response{
"id": "wh_f1e2d3c4b5a6",
"url": "https://yourapp.com/webhooks/dyva",
"events": ["message.created"],
"secret": null,
"created_at": "2026-03-09T12:00:00Z"
}Examples (4)
curl -X POST https://api.dyva.ai/v1/webhooks \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"url": "https://yourapp.com/webhooks/dyva",
"events": ["message.created"]
}'There’s no update endpoint today. To change a URL or event list, remove the old registration and create a new one.
/v1/webhooksLists every endpoint registered on your account.
Route and method verified directly against the live ts-api source on August 13, 2026.
Response
Illustrative example, not a captured response[
{
"id": "wh_f1e2d3c4b5a6",
"url": "https://yourapp.com/webhooks/dyva",
"events": ["message.created"],
"secret": null,
"created_at": "2026-03-09T12:00:00Z"
}
]/v1/webhooks/:idRemoves a registration.
Route and method verified directly against the live ts-api source on August 13, 2026.
Path and query parameters (1)
idstringRequiredResponse
Illustrative example, not a captured responseHTTP/1.1 204 No ContentExamples (2)
curl -X DELETE https://api.dyva.ai/v1/webhooks/wh_f1e2d3c4b5a6 \
-H "Authorization: Bearer <access_token>"Poll instead. It’s less elegant, but it’s the mechanism that’s actually live. See Rate Limits for how often you can reasonably check.
# Check for new messages in a conversation on a timer
curl https://api.dyva.ai/v1/conversations/conv_j1k2l3m4n5o6/messages \
-H "Authorization: Bearer <access_token>"