API Reference
List Webhooks
Page through every webhook endpoint registered for the active organisation. Includes health metrics so dashboards can flag failing endpoints.
GET/org/webhooks
Authentication
Accepts a JWT bearer token (Authorization: Bearer eyJ…) or an API key (X-API-Key: ms_live_…). API-key callers should send X-Project-ID unless the key is project-locked. Cross-tenant operators must send X-Tenant-ID.
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
offset | integer | optional | Default 0. |
limit | integer | optional | Default 50, max 100. |
active | boolean | optional | Filter by active state. |
Response
Returns 200 OK with the following body.
| Field | Type | Required | Description |
|---|---|---|---|
items | array | optional | Webhook endpoint records. |
health | object | optional | { success_rate, last_success_at, last_failure_at }. |
total | integer | optional | Total matching endpoints. |
200.json
{"items": [{"id": "whk_01HX...","url": "https://hooks.acme.io/memorysync","event_types": ["memory.created"],"active": true,"health": {"success_rate": 0.998,"last_success_at": "2026-05-04T12:00:00Z","last_failure_at": null}}],"total": 1,"offset": 0,"limit": 50,"has_next": false}
Errors
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Body or query failed schema validation. The error includes the offending field name. |
| 401 | unauthenticated | Missing or invalid bearer token / API key. |
| 403 | forbidden | Authenticated principal lacks the required scope, role, or project access. |
| 404 | not_found | Target resource does not exist or is not visible to the calling tenant. |
| 429 | rate_limited | Per-IP or per-route limit exceeded. Respect the Retry-After header. |
| 500 | internal_error | Unhandled server error. Quote the request_id when contacting support. |
Examples
cURL
curl -X GET https://api.memorysync.io/org/webhooks \-H "Authorization: Bearer $MEMORYSYNC_KEY"
javascript
import { MemorySync } from 'memorysync'const client = new MemorySync({ apiKey: process.env.MEMORYSYNC_KEY })const result = await client.request({method: 'GET',path: '/org/webhooks',})console.log(result)
python
from memorysync import Clientclient = Client(api_key=os.environ["MEMORYSYNC_KEY"])result = client.request(method="GET",path="/org/webhooks",)print(result)
Behavior & notes
Idempotent through Idempotency-Key on writes. Replays within 24h return the original response unchanged.