Webhooks

Embed
Preview of the card
<a href="https://trackified.net/docs/ref-webhooks"><img src="https://trackified.net/docs/_api/public/orgs/e2a7773e-db9e-41cb-bd59-bd248745cac3/spaces/9d63a5d4-feb0-4803-84a5-dc68639362a6/pages/1d50d1de-5c93-44a5-adcd-4cb6ed92c180/social-card.svg?v=3e7ae33eec8b" alt="Webhooks" width="600" height="315"></a>
GEThttps://api.trackified.net/v1/webhooks

List webhook endpoints

Parameters

limitintegerquery
= 50
offsetintegerquery
= 0

Code samples

cURL
curl -X GET "https://api.trackified.net/v1/webhooks" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Endpoints
Example
{
  "data": [
    {
      "id": "string",
      "url": "string",
      "event_types": [
        "tracking.created"
      ],
      "enabled": true,
      "consecutive_failures": 0,
      "secret_preview": "string",
      "previous_secret_expires_at": "2024-01-01T00:00:00Z",
      "created_at": "2024-01-01T00:00:00Z",
      "disabled_at": "2024-01-01T00:00:00Z"
    }
  ],
  "pagination": {
    "limit": 0,
    "offset": 0,
    "total": 0
  }
}
Schema
dataWebhook[]required
Show child parameters
idstring
urlstring
event_typesWebhookEventType[]
enabledboolean
false: paused, receives nothing. Defaults to true.
consecutive_failuresinteger
secret_previewstring
previous_secret_expires_atstring
During a secret rotation, when the old secret stops signing; otherwise null.
created_atstring
disabled_atstring
Set when the endpoint was removed or disabled after repeated failures.
paginationobjectrequired
Show child parameters
limitinteger
offsetinteger
totalinteger
401 Error
Example
{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "string"
  }
}
Schema
errorobject
Show child parameters
codestring
messagestring
request_idstring
POSThttps://api.trackified.net/v1/webhooks

Add a webhook endpoint

Request body

application/json
urlstringrequired
event_typesWebhookEventType[]
{
  "url": "string",
  "event_types": [
    "tracking.created"
  ]
}

Code samples

cURL
curl -X POST "https://api.trackified.net/v1/webhooks" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"string","event_types":["tracking.created"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Created. The full signing secret is returned only here.
Example
{
  "id": "string",
  "url": "string",
  "event_types": [
    "tracking.created"
  ],
  "enabled": true,
  "consecutive_failures": 0,
  "secret_preview": "string",
  "previous_secret_expires_at": "2024-01-01T00:00:00Z",
  "created_at": "2024-01-01T00:00:00Z",
  "disabled_at": "2024-01-01T00:00:00Z",
  "secret": "string"
}
Schema
idstring
urlstring
event_typesWebhookEventType[]
enabledboolean
false: paused, receives nothing. Defaults to true.
consecutive_failuresinteger
secret_previewstring
previous_secret_expires_atstring
During a secret rotation, when the old secret stops signing; otherwise null.
created_atstring
disabled_atstring
Set when the endpoint was removed or disabled after repeated failures.
secretstring
400 Error

Same as 401 · GET /v1/webhooks

401 Error

Same as 401 · GET /v1/webhooks

DELETEhttps://api.trackified.net/v1/webhooks/{id}

Remove a webhook endpoint

Parameters

idstringpathrequired

Code samples

cURL
curl -X DELETE "https://api.trackified.net/v1/webhooks/{id}" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Removed
401 Error

Same as 401 · GET /v1/webhooks

404 Error

Same as 401 · GET /v1/webhooks

PATCHhttps://api.trackified.net/v1/webhooks/{id}

Update a webhook endpoint

Send at least one field. Validation is the same as on create. The secret is unchanged. A disabled endpoint (enabled: false) receives nothing until it is enabled again.

Parameters

idstringpathrequired

Request body

application/json
urlstring
event_typesWebhookEventType[]
enabledboolean
{
  "url": "string",
  "event_types": [
    "tracking.created"
  ],
  "enabled": true
}

Code samples

cURL
curl -X PATCH "https://api.trackified.net/v1/webhooks/{id}" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"string","event_types":["tracking.created"],"enabled":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 The updated endpoint
Example
{
  "id": "string",
  "url": "string",
  "event_types": [
    "tracking.created"
  ],
  "enabled": true,
  "consecutive_failures": 0,
  "secret_preview": "string",
  "previous_secret_expires_at": "2024-01-01T00:00:00Z",
  "created_at": "2024-01-01T00:00:00Z",
  "disabled_at": "2024-01-01T00:00:00Z"
}
Schema
idstring
urlstring
event_typesWebhookEventType[]
enabledboolean
false: paused, receives nothing. Defaults to true.
consecutive_failuresinteger
secret_previewstring
previous_secret_expires_atstring
During a secret rotation, when the old secret stops signing; otherwise null.
created_atstring
disabled_atstring
Set when the endpoint was removed or disabled after repeated failures.
400 Error

Same as 401 · GET /v1/webhooks

401 Error

Same as 401 · GET /v1/webhooks

404 Error

Same as 401 · GET /v1/webhooks

POSThttps://api.trackified.net/v1/webhooks/{id}/rotate-secret

Rotate the signing secret

Issues a new secret, returned only here. Until previous_secret_expires_at, deliveries are signed with both secrets in one header: x-tracking-signature: t=<t>,v1=<hex new>,v1=<hex old>. expires_in_hours: 0 drops the old secret at once.

Parameters

idstringpathrequired

Request body

application/json
expires_in_hoursnumber
= 24
{
  "expires_in_hours": 24
}

Code samples

cURL
curl -X POST "https://api.trackified.net/v1/webhooks/{id}/rotate-secret" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expires_in_hours":24}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 The endpoint with its new secret
Example
{
  "id": "string",
  "url": "string",
  "event_types": [
    "tracking.created"
  ],
  "enabled": true,
  "consecutive_failures": 0,
  "secret_preview": "string",
  "previous_secret_expires_at": "2024-01-01T00:00:00Z",
  "created_at": "2024-01-01T00:00:00Z",
  "disabled_at": "2024-01-01T00:00:00Z",
  "secret": "string"
}
Schema
idstring
urlstring
event_typesWebhookEventType[]
enabledboolean
false: paused, receives nothing. Defaults to true.
consecutive_failuresinteger
secret_previewstring
previous_secret_expires_atstring
During a secret rotation, when the old secret stops signing; otherwise null.
created_atstring
disabled_atstring
Set when the endpoint was removed or disabled after repeated failures.
secretstringrequired
The new secret, shown once.
400 Error

Same as 401 · GET /v1/webhooks

401 Error

Same as 401 · GET /v1/webhooks

404 Error

Same as 401 · GET /v1/webhooks

POSThttps://api.trackified.net/v1/webhooks/{id}/test

Sign a sample event without sending it

The signature is exactly what a delivery would carry now, including both v1 values during a secret rotation.

Parameters

idstringpathrequired

Code samples

cURL
curl -X POST "https://api.trackified.net/v1/webhooks/{id}/test" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 The signed sample
Example
{
  "delivered": true,
  "dry_run": true,
  "signature": "t=1792560000,v1=5d41…,v1=19752d…",
  "body": {}
}
Schema
deliveredboolean
dry_runboolean
signaturestring
bodyobject
401 Error

Same as 401 · GET /v1/webhooks

404 Error

Same as 401 · GET /v1/webhooks

GEThttps://api.trackified.net/v1/webhook-deliveries

List recent webhook delivery attempts

Parameters

limitintegerquery
= 50
offsetintegerquery
= 0

Code samples

cURL
curl -X GET "https://api.trackified.net/v1/webhook-deliveries" \
  -H "Authorization: Bearer $TRACKIFIED_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Deliveries, newest first
Example
{
  "data": [
    {
      "id": "string",
      "webhook_id": "string",
      "url": "string",
      "event_type": "tracking.created",
      "status": 0,
      "attempts": 0,
      "error": "string",
      "delivered_at": "2024-01-01T00:00:00Z",
      "created_at": "2024-01-01T00:00:00Z"
    }
  ],
  "pagination": {
    "limit": 0,
    "offset": 0,
    "total": 0
  }
}
Schema
dataWebhookDelivery[]required
Show child parameters
idstring
webhook_idstring
urlstring
The endpoint's current URL.
event_typestring
tracking.created | tracking.updated | tracking.status_changed | tracking.delivered | tracking.exception | tracking.returned
statusinteger
HTTP status of the last attempt.
attemptsinteger
errorstring
delivered_atstring
created_atstring
paginationobjectrequired
Show child parameters
limitinteger
offsetinteger
totalinteger
401 Error

Same as 401 · GET /v1/webhooks

Updated