Manage endpoints
Create and manage your webhook subscriptions over the API. Base path /v1/webhooks.
IDs are UUIDs, no prefix, and the signing secret is a plain hex string — neither carries a
whk_/whsec_prefix. Examples below use that style purely for readability.
Create
POST /v1/webhooks · scope webhooks:write
curl -X POST https://platform.eurekatechlabs.com/v1/webhooks \
-H "Authorization: Bearer ek_live_..." \
-H "Content-Type: application/json" \
-d '{
"targetUrl": "https://yourapp.com/webhooks/eureka",
"eventTypes": ["call.ended"]
}'{
"id": "6f2a1c9e-4b3d-4e2a-9c1a-7d5e8b9a0c4f",
"targetUrl": "https://yourapp.com/webhooks/eureka",
"eventTypes": ["call.ended"],
"state": "ACTIVE",
"signingSecret": "8f14e45fceea167a5a36dedd4bea2543d5f2f5e9c3a1b0d"
}Save the
signingSecretnow — it's shown only on create and on rotate. You need it to verify deliveries.
| Field | Required | What |
|---|---|---|
targetUrl |
yes | Your HTTPS endpoint. |
eventTypes |
yes | Which events to receive. Allowed: call.ended, recording.ready, tool_call. |
Only those three event types are accepted. Anything else returns
400 Unsupported event type.
List
GET /v1/webhooks · scope webhooks:read
curl https://platform.eurekatechlabs.com/v1/webhooks -H "Authorization: Bearer ek_live_..."The signing secret is not returned here — only on create and rotate.
Update
PATCH /v1/webhooks/{id} · scope webhooks:write
Change the URL, the events, or pause it (state: ACTIVE / DISABLED).
curl -X PATCH https://platform.eurekatechlabs.com/v1/webhooks/whk_xxxxxxxxxxxx \
-H "Authorization: Bearer ek_live_..." \
-H "Content-Type: application/json" \
-d '{ "eventTypes": ["call.ended", "tool_call"] }'Rotate the secret
POST /v1/webhooks/{id}/rotate-secret · scope webhooks:write
Returns a new signingSecret and invalidates the old one. Update your server right away.
curl -X POST https://platform.eurekatechlabs.com/v1/webhooks/whk_xxxxxxxxxxxx/rotate-secret \
-H "Authorization: Bearer ek_live_..."Delete
DELETE /v1/webhooks/{id} · scope webhooks:write · returns 204
curl -X DELETE https://platform.eurekatechlabs.com/v1/webhooks/whk_xxxxxxxxxxxx \
-H "Authorization: Bearer ek_live_..."Configure the call answer webhook
This section uses a different endpoint and a different auth scheme —
/dashboard/products/..., not/v1/webhooks, and a dashboard bearer token, not anek_live_/ek_test_API key. Everything above this line is the public API; everything below is the dashboard API.
The call answer webhook is a separate, product-level setting (not a subscription). Set it from the product settings page, or via the dashboard Products API:
curl -X PATCH https://platform.eurekatechlabs.com/v1/dashboard/products/prd_xxxxxxxxxxxx \
-H "Authorization: Bearer ..." \
-H "Content-Type: application/json" \
-d '{
"answerWebhookUrl": "https://yourapp.com/call-answer",
"answerWebhookTimeoutAction": "REJECT"
}'answerWebhookTimeoutAction is REJECT or PLATFORM_FALLBACK. Setting a URL for the first time mints a signing secret; rotate it with POST /dashboard/products/{id}/answer-webhook/rotate-secret.
Next
- Event reference — what each event carries
- Overview & signing — verify deliveries
