Webhook Subscriptions
GET
https://shippified.net /api/webhook-subscriptions List your outbound webhook subscriptions.
Parameters
limitinteger
query
offsetinteger
query
Code samples
cURL
curl -X GET "https://shippified.net/api/webhook-subscriptions"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{}POST
https://shippified.net /api/webhook-subscriptions Create a subscription. Returns the raw signing secret exactly once.
Request body
application/json
urlstring
required
eventTypesobject[]
required
activeboolean
{
"url": "string",
"eventTypes": [
"order.created"
],
"active": true
}Code samples
cURL
curl -X POST "https://shippified.net/api/webhook-subscriptions" \
-H "Content-Type: application/json" \
-d '{"url":"string","eventTypes":["order.created"],"active":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Created. The
secret field is only present in this response.{}400 Invalid url or eventTypes.
403 Called with a read-only API key.
{
"error": "string"
}429 Subscription limit reached (25 per workspace).
GET
https://shippified.net /api/webhook-subscriptions/{id} Get one subscription.
Parameters
idstring
path
required
Code samples
cURL
curl -X GET "https://shippified.net/api/webhook-subscriptions/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
{
"id": "string",
"userId": "string",
"url": "string",
"prefix": "string",
"eventTypes": [
"order.created"
],
"active": true,
"failureCount": 0,
"needsSecretRotation": true,
"lastFiredAt": "2024-01-01T00:00:00Z",
"lastError": "string",
"createdAt": "2024-01-01T00:00:00Z"
}404 Not found.
DELETE
https://shippified.net /api/webhook-subscriptions/{id} Delete subscription.
Parameters
idstring
path
required
Code samples
cURL
curl -X DELETE "https://shippified.net/api/webhook-subscriptions/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Deleted.
403 Called with a read-only API key.
{
"error": "string"
}404 Not found.
PATCH
https://shippified.net /api/webhook-subscriptions/{id} Update url / eventTypes / active. A new url goes through the same validation as create (private / loopback targets are rejected in production); the signing secret is unchanged.
Parameters
idstring
path
required
Request body
application/json
urlstring
eventTypesobject[]
activeboolean
{
"url": "string",
"eventTypes": [
"order.created"
],
"active": true
}Code samples
cURL
curl -X PATCH "https://shippified.net/api/webhook-subscriptions/{id}" \
-H "Content-Type: application/json" \
-d '{"url":"string","eventTypes":["order.created"],"active":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Updated.
{
"id": "string",
"userId": "string",
"url": "string",
"prefix": "string",
"eventTypes": [
"order.created"
],
"active": true,
"failureCount": 0,
"needsSecretRotation": true,
"lastFiredAt": "2024-01-01T00:00:00Z",
"lastError": "string",
"createdAt": "2024-01-01T00:00:00Z"
}400 Invalid url or eventTypes.
403 Called with a read-only API key.
{
"error": "string"
}404 Not found.
POST
https://shippified.net /api/webhook-subscriptions/{id}/test Send a synthetic event so you can verify your receiver round-trip.
Parameters
idstring
path
required
Request body
application/json
eventTypestring
Event types our outbound webhooks can dispatch.
{
"eventType": "order.created"
}Code samples
cURL
curl -X POST "https://shippified.net/api/webhook-subscriptions/{id}/test" \
-H "Content-Type: application/json" \
-d '{"eventType":"order.created"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Receiver round-trip result (does not count toward failureCount).
{
"ok": true,
"status": 0,
"error": "string"
}403 Called with a read-only API key.
{
"error": "string"
}POST
https://shippified.net /api/webhook-subscriptions/{id}/rotate-secret Rotate the signing secret. Returns the new raw secret once.
Parameters
idstring
path
required
Code samples
cURL
curl -X POST "https://shippified.net/api/webhook-subscriptions/{id}/rotate-secret"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Rotated. The
secret field is only present in this response.{}403 Called with a read-only API key.
{
"error": "string"
}Updated