Skip to Content
Developers
Webhooks

Add a webhook endpoint; its signing secret is answered once

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/account/webhooks

Only public HTTPS addresses are accepted. Events are signed the Standard Webhooks way.

Authorization

key
headerAuthorizationBearer <traki_account_…>

Request Body

application/json
  1. body
url*string
Formaturi
Lengthlength <= 2000
events*array<>
Items1 <= items <= 26
owner?||
Default
{  "type": "account"}

Response Body

Success

application/json
  1. response
endpoint*
secret*string
Example Request
curl -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"}