← API reference

Webhooks

Create webhook endpoint

POST /v1/webhook-endpoints

Register a URL and event filter. Returns the signing secret once.

Scopes: webhooks:write · Write key required · Supports Idempotency-Key

Request body

{
  "url": "https://example.com/edison",
  "events": [
    "call.completed",
    "job.created"
  ]
}

Examples

BASH
curl -X POST "https://app.tryedison.com/api/v1/webhook-endpoints" \
  -H "Authorization: Bearer ed_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{  "url": "https://example.com/edison",  "events": [    "call.completed",    "job.created"  ]}'