Skip to Content
Developers
Webhooks

Subscribe one of your URLs to events about your own traffic

Needs the webhooks:write scope. About scopes

Try it with a test key

Sends to https://api.traki.io

Test keys only. The key stays in this page while it is open and is never saved.

/v1/buyer/webhooks

The signing secret is answered once, here. The URL must be a public https:// address.

Authorization

key
headerAuthorizationBearer <traki_buyer_…>

Request Body

application/json
  1. body
url*string
Formaturi
Lengthlength <= 2048
events*array<>
Items1 <= items <= 26

Response Body

Success

application/json
  1. response
webhook*
secret*string
Example Request
curl -X POST 'https://api.traki.io/v1/buyer/webhooks' \  -H "Authorization: Bearer $TRAKI_KEY" \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: a-unique-id-for-this-change' \  -d '{  "url": "http://example.com",  "events": [    "call.started"  ]}'
Example Response
{  "webhook": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "code": "string",    "url": "string",    "events": [      "string"    ],    "state": "string",    "failureCount": -9007199254740991,    "lastDeliveryAt": "string",    "lastFailureNote": "string",    "createdAt": "string"  },  "secret": "string"}