List webhooks
This key's webhooks, as a sync list (a Pro feature)
GET
https://s.zo.sa/api/public/v1 /webhooks Scope
webhooks.readA key sees and manages only the webhooks it created. Webhooks made in the dashboard or by another key are not listed and answer 404. They all share the store's webhook quota (10 on Pro).
Request
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
per_page | integer | Rows per page, 1 to 100 (default 50; more is capped at 100). Default 50 At least 1 | |
cursor | string | The meta.next_cursor of the previous page. Opaque. Up to 200 characters | |
updated_since | string (date-time) | Only rows updated at or after this time (ISO 8601, inclusive to the second; no offset means UTC). | |
created_since | string (date-time) | Only rows created at or after this time (ISO 8601, inclusive to the second; no offset means UTC). |
cURL
curl -sS "https://s.zo.sa/api/public/v1/webhooks" \
-H "Authorization: Bearer $ZO_API_KEY" \
-H "Accept: application/json"JavaScript
const response = await fetch('https://s.zo.sa/api/public/v1/webhooks', {
headers: {
Authorization: `Bearer ${process.env.ZO_API_KEY}`,
Accept: 'application/json',
},
});
console.log(response.status, await response.json());PHP
<?php
$ch = curl_init('https://s.zo.sa/api/public/v1/webhooks');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ZO_API_KEY'),
'Accept: application/json',
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
echo $status, PHP_EOL, $body, PHP_EOL;Python
import os
import requests
response = requests.get(
"https://s.zo.sa/api/public/v1/webhooks",
headers={
"Authorization": f"Bearer {os.environ['ZO_API_KEY']}",
"Accept": "application/json",
},
timeout=30,
)
print(response.status_code, response.json()){
"data": [
{
"id": 7,
"name": "ERP orders",
"event": "order.created",
"url": "https://erp.example.com/zo/hooks",
"rule": null,
"headers": [],
"security_strategy": "signature",
"signature_version": 2,
"is_active": true,
"disabled_reason": null,
"failures": 0,
"last_status": 200,
"last_delivered_at": "2026-11-23T06:02:10Z",
"created_at": "2026-11-22T10:00:00Z",
"updated_at": "2026-11-22T10:00:00Z"
}
],
"meta": {
"per_page": 50,
"next_cursor": null
}
}Example.
Responses
200A page.
Response schema
dataarray of objectsrequired15 fields
idintegerrequirednamestringrequiredeventstringrequiredurlstring (uri)requiredrulestringrequirednullableA rule on the payload attributes, such as total > 100 AND payment_method = `cod`.headersarray of objectsrequired2 fields
keystringrequiredvaluestringrequiredMasked (••••••) on every read; shown only in the answer to the POST or PATCH that sent it. Sending the mask back in a PATCH keeps the stored value.
security_strategystringrequiredsignature_versionintegerrequired1 signs the raw body; 2 signs "{X-Zo-Timestamp}.{raw body}" and sends X-Zo-Timestamp.is_activebooleanrequireddisabled_reasonstringrequirednullablefailures when the webhook switched itself off.failuresintegerrequiredFailed deliveries in a row.last_statusintegerrequirednullableThe HTTP status of the last delivery.last_delivered_atstring (date-time)requirednullablecreated_atstring (date-time)requiredupdated_atstring (date-time)required
metaobjectrequired2 fields
per_pageintegerrequirednext_cursorstringrequirednullablePass as cursor for the next page; null on the last page.
401Missing, unknown, revoked or expired key.
An error object: {"error": {"code", "message", "fields"}}.
402The store's plan does not include this feature (error code feature_locked, with the feature and the plan that has it). Every operation answers it with feature public_api when the key's store is not on the Pro plan.
An error object: {"error": {"code", "message", "fields"}}.
403The key lacks the scope (code insufficient_scope, naming it in scope), the caller's address is not allowed (ip_not_allowed), or the store is suspended (store_suspended: reads stay allowed, every write answers this).
An error object: {"error": {"code", "message", "fields"}}.
422A query parameter is invalid (code validation_failed, with fields).
An error object: {"error": {"code", "message", "fields"}}.
429Too many requests (code rate_limited); see Retry-After.
An error object: {"error": {"code", "message", "fields"}}.