Postbacks
Subscribe one of your URLs to events about your own traffic
Needs the webhooks:write scope. About scopes
The signing secret is answered once, here. The URL must be a public https:// address.
keyheader
AuthorizationBearer <traki_publisher_…>application/json- body
url*stringFormat
uriLength
length <= 2048events*array<>Items
1 <= items <= 26Success
application/json- response
webhook*secret*stringcurl -X POST 'https://api.traki.io/v1/publisher/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"}