GET /api/webhooks
List all webhook endpoints in the caller's org.
curl https://www.mnueron.com/api/webhooks \
-H "Authorization: Bearer $MNUERON_API_TOKEN"
Response
{
"endpoints": [
{
"id": "01HQ…",
"url": "https://example.com/hooks/mnueron",
"events": ["memory.saved"],
"description": "Sync into our CRM",
"enabled": true,
"last_success_at": 1737070000000,
"last_failure_at": null,
"consecutive_failures": 0,
"created_at": 1737070000000,
"updated_at": 1737070000000
}
]
}
The secret is never returned by listings — it's shown only once at creation.
GET /api/webhooks/:id
Fetch a single endpoint (same shape as the list rows, no secret).
PUT /api/webhooks/:id
Update one or more fields. All fields are optional.
curl -X PUT https://www.mnueron.com/api/webhooks/01HQ… \
-H "Authorization: Bearer $MNUERON_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"events": ["memory.saved", "memory.deleted"],
"enabled": true
}'
| Field | Type | Notes |
|---|---|---|
url | string | Updates the target URL |
events | string[] | Replaces the events array |
enabled | bool | Toggle without deleting |
description | string |
Response
{ "id": "01HQ…", "updated": true }
DELETE /api/webhooks/:id
204 No Content. Deletes the endpoint and all its pending deliveries.