Skip to Content
Developers
Webhooks

Change a webhook’s URL or events, or pause and resume it

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/{id}

Authorization

key
headerAuthorizationBearer <traki_buyer_…>

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
url?string
Formaturi
Lengthlength <= 2048
events?array<>
Items1 <= items <= 26
state?string
Value in"active""paused"

Response Body

Success

application/json
  1. response
id*string
Formatuuid
code*string
url*string
events*array<string>
state*string
failureCount*integer
Range-9007199254740991 <= value <= 9007199254740991
lastDeliveryAt*string|null
lastFailureNote*string|null
createdAt*string
Example Request
curl -X PATCH 'https://api.traki.io/v1/buyer/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H "Authorization: Bearer $TRAKI_KEY" \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "code": "string",  "url": "string",  "events": [    "string"  ],  "state": "string",  "failureCount": -9007199254740991,  "lastDeliveryAt": "string",  "lastFailureNote": "string",  "createdAt": "string"}