Skip to Content
TrackCrest Docs

Create webhook

Subscribe a URL to events. The signing secret is returned once: verify X-Signature (t=<unix>,v1=<hex HMAC-SHA256 of "t.body">) on every delivery.

POST
/api/v1/network/webhooks

Requires scope webhooks:write.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key: pk_company_… (network), pk_aff_… (affiliate) or pk_adv_… (advertiser). X-Api-Key works too.

Request Body

application/json
  1. body
url?string
events?array<string>

Response Body

Created

application/json
  1. response
data?
Example Request
curl -X POST 'https://trakcrt.com/api/v1/network/webhooks' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "webhook": {      "publicId": 0,      "url": "string",      "events": [        "string"      ],      "createdAt": "2019-08-24T14:15:22Z",      "lastSuccessAt": "2019-08-24T14:15:22Z",      "lastFailureAt": "2019-08-24T14:15:22Z"    },    "secret": "string"  }}