Webhooks
GET
https://api.trackified.net /v1/webhooks List webhook endpoints
Parameters
limitintegerqueryoffsetintegerqueryCode 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[]requiredShow child parameters
idstringurlstringevent_typesWebhookEventType[]enabledbooleanfalse: paused, receives nothing. Defaults to true.
consecutive_failuresintegersecret_previewstringprevious_secret_expires_atstringDuring a secret rotation, when the old secret stops signing; otherwise null.
created_atstringdisabled_atstringSet when the endpoint was removed or disabled after repeated failures.
paginationobjectrequiredShow child parameters
limitintegeroffsetintegertotalinteger401 Error
Example
{
"error": {
"code": "string",
"message": "string",
"request_id": "string"
}
}Schema
errorobjectShow child parameters
codestringmessagestringrequest_idstringPOST
https://api.trackified.net /v1/webhooks Add a webhook endpoint
Request body
application/json
urlstringrequiredevent_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
idstringurlstringevent_typesWebhookEventType[]enabledbooleanfalse: paused, receives nothing. Defaults to true.
consecutive_failuresintegersecret_previewstringprevious_secret_expires_atstringDuring a secret rotation, when the old secret stops signing; otherwise null.
created_atstringdisabled_atstringSet when the endpoint was removed or disabled after repeated failures.
secretstringDELETE
https://api.trackified.net /v1/webhooks/{id} Remove a webhook endpoint
Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://api.trackified.net/v1/webhooks/{id}" \
-H "Authorization: Bearer $TRACKIFIED_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
PATCH
https://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
idstringpathrequiredRequest body
application/json
urlstringevent_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
idstringurlstringevent_typesWebhookEventType[]enabledbooleanfalse: paused, receives nothing. Defaults to true.
consecutive_failuresintegersecret_previewstringprevious_secret_expires_atstringDuring a secret rotation, when the old secret stops signing; otherwise null.
created_atstringdisabled_atstringSet when the endpoint was removed or disabled after repeated failures.
POST
https://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
idstringpathrequiredRequest body
application/json
expires_in_hoursnumber{
"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
idstringurlstringevent_typesWebhookEventType[]enabledbooleanfalse: paused, receives nothing. Defaults to true.
consecutive_failuresintegersecret_previewstringprevious_secret_expires_atstringDuring a secret rotation, when the old secret stops signing; otherwise null.
created_atstringdisabled_atstringSet when the endpoint was removed or disabled after repeated failures.
secretstringrequiredThe new secret, shown once.
POST
https://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
idstringpathrequiredCode 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
deliveredbooleandry_runbooleansignaturestringbodyobjectGET
https://api.trackified.net /v1/webhook-deliveries List recent webhook delivery attempts
Parameters
limitintegerqueryoffsetintegerqueryCode 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[]requiredShow child parameters
idstringwebhook_idstringurlstringThe endpoint's current URL.
event_typestringstatusintegerHTTP status of the last attempt.
attemptsintegererrorstringdelivered_atstringcreated_atstringpaginationobjectrequiredShow child parameters
limitintegeroffsetintegertotalintegerUpdated