Webhooks
Add a webhook endpoint; its signing secret is answered once
Needs the webhooks:write scope. About scopes
Only public HTTPS addresses are accepted. Events are signed the Standard Webhooks way.
keyheader
AuthorizationBearer <traki_account_…>application/json- body
url*stringFormat
uriLength
length <= 2000events*array<>Items
1 <= items <= 26owner?||Default
{ "type": "account"}Success
application/json- response
endpoint*secret*stringcurl -X POST 'https://api.traki.io/v1/account/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
{ "endpoint": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "code": "string", "ownerType": "WORKSPACE", "owner": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "url": "string", "events": [ "string" ], "state": "ACTIVE", "failureCount": -9007199254740991, "lastDeliveryAt": "2019-08-24T14:15:22Z", "lastFailureNote": "string", "createdAt": "2019-08-24T14:15:22Z" }, "secret": "string"}