Webhook endpoints API
Endpoints, signing secrets, deliveries and replay.
Base URL https://api.ndstill.com/v2. Send Authorization: Bearer with a key, Ndstill-Version: 2026-11-01, and an Idempotency-Key on every POST. Conventions, scopes and errors are in the API overview and Errors and decline reasons. Examples come from the mock backend; the shapes are the TypeScript types in packages/api.
Create a webhook endpoint#
/v2/webhook-endpoints- urlstringrequired
- descriptionstring
- eventsstring[]required
- idId
- object"webhook_endpoint"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- urlstring
- descriptionstring
- eventsstring[]
Event types delivered ("*" for all).
- statusstring enum
"disabled""enabled" - secret_hintstring
Masked; the full secret is shown after a passkey check (reveal) or once on roll.
- success_rate_7dnumber
- last_delivery_atTimestamp | null
- api_versionstringoptional
API version the payloads use.
- secret_rotated_atTimestamp | nulloptional
When the current secret was set (null = since create).
- previous_secret_expires_atTimestamp | nulloptional
During a roll, deliveries carry both signatures until this time.
- deliveries_24hnumberoptional
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/webhook-endpoints" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhooks/ndstill",
"description": "Docs example",
"events": [
"payment_intent.created",
"approval.created"
]
}'{
"id": "we_01M82XPRPQ9F5C0VQBE8H08TD5",
"object": "webhook_endpoint",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.495Z",
"url": "https://example.com/webhooks/ndstill",
"description": "Docs example",
"events": [
"payment_intent.created",
"approval.created"
],
"status": "enabled",
"secret_hint": "whsec_…1b43",
"success_rate_7d": 1,
"last_delivery_at": null,
"api_version": "2026-11-01",
"secret_rotated_at": null,
"previous_secret_expires_at": null,
"deliveries_24h": 0
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List webhook deliveries#
/v2/webhook-deliveries- endpoint_idId
- statusstring enum
"pending""failed""succeeded" - event_typestring
- event_idId
- cursorstring
- limitnumber
1–200, default 50.
- qstring
Free-text search over names, ids and descriptors.
- sortstring
Sort field, prefix "-" for descending ("-created_at" is the default).
- created_gteTimestamp
created_at >= (ISO).
- created_lteTimestamp
created_at <= (ISO).
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- idId
- object"webhook_delivery"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- endpoint_idId
- event_idId
- event_typestring
- attemptnumber
- statusstring enum
"pending""failed""succeeded" - response_statusnumber | null
- duration_msnumber | null
- requestobject
2 fields
- headersmap of string
- bodystring
- responseobject | null
2 fields
- headersmap of string
- bodystring
- next_retry_atTimestamp | null
- urlstringoptional
The endpoint URL at delivery time.
- triggerstring enumoptional
Set on a manual replay or a test event.
"test""automatic""replay"
- 400invalid_request
A query parameter is invalid.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/webhook-deliveries?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "wd_01M82XN1S7EE9KZ12WECDX9C8V",
"object": "webhook_delivery",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:42:17.255Z",
"endpoint_id": "we_01KSP0J1MEGFT2EKA69PC63MGC",
"event_id": "ev_01M82XN0XPZ5NS7E23YGXW9SRA",
"event_type": "receipt.created",
"attempt": 1,
"status": "succeeded",
"response_status": 200,
"duration_ms": 95,
"request": {
"headers": {
"content-type": "application/json",
"user-agent": "ndStill-Webhooks/1.0",
"webhook-id": "ev_01M82XN0XPZ5NS7E23YGXW9SRA",
"webhook-timestamp": "1795394537",
"webhook-signature": "v1,qwPhbtX9a8IphTz19lOxXIzNTEfZ0OulSvdB2wnd5PV6"
},
"body": "{\n \"id\": \"ev_01M82XN0XPZ5NS7E23YGXW9SRA\",\n \"type\": \"receipt.created\",\n \"api_version\": \"2026-11-01\",\n \"created_at\": \"2026-11-23T00:42:16.374Z\",\n \"data\": {\n \"object\": {\n \"id\": \"rcpt_01M81MNTB8PSKPXQP8DYD8ZBAV\",\n \"object\": \"receipt\",\n \"intent_id\": \"pi_01M81MNTB8PSKPXQP8DYD8ZBAV\"\n }\n }\n}"
},
"response": {
"headers": {
"content-type": "application/json",
"x-request-id": "rq_d8b8bb039b"
},
"body": "{\"received\":true}"
},
"next_retry_at": null,
"url": "https://api.acme-robotics.example/hooks/ndstill",
"trigger": "automatic"
},
{
"id": "wd_01M82XN1RQMGGWP2EM5RHW1B34",
"object": "webhook_delivery",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:42:17.239Z",
"endpoint_id": "we_01KSP0J1MEGFT2EKA69PC63MGC",
"event_id": "ev_01M82XN0XPB2TZQ6S41CZ9QPBC",
"event_type": "receipt.created",
"attempt": 1,
"status": "succeeded",
"response_status": 200,
"duration_ms": 79,
"request": {
"headers": {
"content-type": "application/json",
"user-agent": "ndStill-Webhooks/1.0",
"webhook-id": "ev_01M82XN0XPB2TZQ6S41CZ9QPBC",
"webhook-timestamp": "1795394537",
"webhook-signature": "v1,1SxhsG9F75CB2wcF9WxhiTnF1mlBgi0FQIthPGrFG7_-"
},
"body": "{\n \"id\": \"ev_01M82XN0XPB2TZQ6S41CZ9QPBC\",\n \"type\": \"receipt.created\",\n \"api_version\": \"2026-11-01\",\n \"created_at\": \"2026-11-23T00:42:16.374Z\",\n \"data\": {\n \"object\": {\n \"id\": \"rcpt_01M82R531EGJTZVN5A14DRPNP1\",\n \"object\": \"receipt\",\n \"intent_id\": \"pi_01M82R531EGJTZVN5A14DRPNP1\"\n }\n }\n}"
},
"response": {
"headers": {
"content-type": "application/json",
"x-request-id": "rq_2ae1256baf"
},
"body": "{\"received\":true}"
},
"next_retry_at": null,
"url": "https://api.acme-robotics.example/hooks/ndstill",
"trigger": "automatic"
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 74
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List webhook endpoints#
/v2/webhook-endpoints- cursorstring
- limitnumber
1–200, default 50.
- qstring
Free-text search over names, ids and descriptors.
- sortstring
Sort field, prefix "-" for descending ("-created_at" is the default).
- created_gteTimestamp
created_at >= (ISO).
- created_lteTimestamp
created_at <= (ISO).
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
The same WebhookEndpoint object as Create a webhook endpoint.
- 400invalid_request
A query parameter is invalid.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/webhook-endpoints?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "we_01KXSATPMEQ0WPSNH2MDYCK8H6",
"object": "webhook_endpoint",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-07-18T00:43:11.374Z",
"url": "https://hooks.slack.example/services/T0/B1/ndstill",
"description": "Ops channel alerts",
"events": [
"approval.created",
"agent.frozen",
"connector.health_changed"
],
"status": "enabled",
"secret_hint": "whsec_…9bbc",
"success_rate_7d": 1,
"last_delivery_at": "2026-11-22T22:43:11.374Z",
"api_version": "2026-11-01",
"secret_rotated_at": null,
"previous_secret_expires_at": null,
"deliveries_24h": 0
},
{
"id": "we_01KWAZNRMEQTRQGV3HNJVRN8DF",
"object": "webhook_endpoint",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-06-30T00:43:11.374Z",
"url": "https://erp-bridge.acme-robotics.example/ndstill",
"description": "ERP bridge (old)",
"events": [
"settlement.posted",
"refund.posted"
],
"status": "enabled",
"secret_hint": "whsec_…5760",
"success_rate_7d": 0.62,
"last_delivery_at": "2026-11-22T22:47:11.374Z",
"api_version": "2026-11-01",
"secret_rotated_at": null,
"previous_secret_expires_at": null,
"deliveries_24h": 32
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 3
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve a webhook delivery#
/v2/webhook-deliveries/{id}- idIdrequired
A prefixed ID from this org.
The same WebhookDelivery object as List webhook deliveries.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/webhook-deliveries/wd_01M82XN1S7EE9KZ12WECDX9C8V" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "wd_01M82XN1S7EE9KZ12WECDX9C8V",
"object": "webhook_delivery",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:42:17.255Z",
"endpoint_id": "we_01KSP0J1MEGFT2EKA69PC63MGC",
"event_id": "ev_01M82XN0XPZ5NS7E23YGXW9SRA",
"event_type": "receipt.created",
"attempt": 1,
"status": "succeeded",
"response_status": 200,
"duration_ms": 95,
"request": {
"headers": {
"content-type": "application/json",
"user-agent": "ndStill-Webhooks/1.0",
"webhook-id": "ev_01M82XN0XPZ5NS7E23YGXW9SRA",
"webhook-timestamp": "1795394537",
"webhook-signature": "v1,qwPhbtX9a8IphTz19lOxXIzNTEfZ0OulSvdB2wnd5PV6"
},
"body": "{\n \"id\": \"ev_01M82XN0XPZ5NS7E23YGXW9SRA\",\n \"type\": \"receipt.created\",\n \"api_version\": \"2026-11-01\",\n \"created_at\": \"2026-11-23T00:42:16.374Z\",\n \"data\": {\n \"object\": {\n \"id\": \"rcpt_01M81MNTB8PSKPXQP8DYD8ZBAV\",\n \"object\": \"receipt\",\n \"intent_id\": \"pi_01M81MNTB8PSKPXQP8DYD8ZBAV\"\n }\n }\n}"
},
"response": {
"headers": {
"content-type": "application/json",
"x-request-id": "rq_d8b8bb039b"
},
"body": "{\"received\":true}"
},
"next_retry_at": null,
"url": "https://api.acme-robotics.example/hooks/ndstill",
"trigger": "automatic"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve a webhook endpoint#
/v2/webhook-endpoints/{id}- idIdrequired
A prefixed ID from this org.
The same WebhookEndpoint object as Create a webhook endpoint.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/webhook-endpoints/we_01KXSATPMEQ0WPSNH2MDYCK8H6" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "we_01KXSATPMEQ0WPSNH2MDYCK8H6",
"object": "webhook_endpoint",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-07-18T00:43:11.374Z",
"url": "https://hooks.slack.example/services/T0/B1/ndstill",
"description": "Ops channel alerts",
"events": [
"approval.created",
"agent.frozen",
"connector.health_changed"
],
"status": "enabled",
"secret_hint": "whsec_…9bbc",
"success_rate_7d": 1,
"last_delivery_at": "2026-11-22T22:43:11.374Z",
"api_version": "2026-11-01",
"secret_rotated_at": null,
"previous_secret_expires_at": null,
"deliveries_24h": 0
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Update a webhook endpoint#
/v2/webhook-endpoints/{id}- idIdrequired
A prefixed ID from this org.
- urlstring
- descriptionstring
- eventsstring[]
- statusstring enum
"disabled""enabled"
The same WebhookEndpoint object as Create a webhook endpoint.
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X PATCH "https://api.ndstill.com/v2/webhook-endpoints/we_01M82XPRPQ9F5C0VQBE8H08TD5" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "we_01M82XPRPQ9F5C0VQBE8H08TD5",
"object": "webhook_endpoint",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.495Z",
"url": "https://example.com/webhooks/ndstill",
"description": "Docs example",
"events": [
"payment_intent.created",
"approval.created"
],
"status": "enabled",
"secret_hint": "whsec_…1b43",
"success_rate_7d": 1,
"last_delivery_at": null,
"api_version": "2026-11-01",
"secret_rotated_at": null,
"previous_secret_expires_at": null,
"deliveries_24h": 0,
"updated_at": "2026-11-23T00:43:13.496Z"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Delete a webhook endpoint#
/v2/webhook-endpoints/{id}- idIdrequired
A prefixed ID from this org.
Returns the object as it was, with deleted: true.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X DELETE "https://api.ndstill.com/v2/webhook-endpoints/we_01M82XPRPQ9F5C0VQBE8H08TD5" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "deleted",
"id": "we_01M82XPRPQ9F5C0VQBE8H08TD5"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Replay a delivery#
/v2/webhook-deliveries/{id}/replay- idIdrequired
A prefixed ID from this org.
The same WebhookDelivery object as List webhook deliveries.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/webhook-deliveries/wd_01M82XPRW4HAM7AFSQ0TR1GDCY/replay" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)"{
"id": "wd_01M82XPRW7RDHAGZKEYZW3GEBX",
"object": "webhook_delivery",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.671Z",
"endpoint_id": "we_01KXSATPMEQ0WPSNH2MDYCK8H6",
"event_id": "ev_01M82XPRW4ZY5255BSXTBGHA75",
"event_type": "ping",
"attempt": 2,
"status": "succeeded",
"response_status": 200,
"duration_ms": 111,
"request": {
"headers": {
"content-type": "application/json",
"user-agent": "ndStill-Webhooks/1.0",
"webhook-id": "ev_01M82XPRW4ZY5255BSXTBGHA75",
"webhook-timestamp": "1795394593",
"webhook-signature": "v1,pYKDsHuBM6pnXqm95MlLkjl5OtzP51XVcACz9HBxD2kU"
},
"body": "{\n \"id\": \"ev_01M82XPRW4ZY5255BSXTBGHA75\",\n \"type\": \"ping\",\n \"api_version\": \"2026-11-01\",\n \"created_at\": \"2026-11-23T00:43:13.668Z\",\n \"data\": {\n \"object\": {}\n }\n}"
},
"response": {
"headers": {
"content-type": "application/json",
"x-request-id": "rq_0727edf37d"
},
"body": "{\"received\":true}"
},
"next_retry_at": null,
"url": "https://hooks.slack.example/services/T0/B1/ndstill",
"trigger": "replay"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Reveal a signing secret#
/v2/webhook-endpoints/{id}/reveal-secret- idIdrequired
A prefixed ID from this org.
- passkey_assertionstringrequired
- object"webhook_secret"
- secretstring
- previous_secret_expires_atTimestamp | nulloptional
- 400invalid_request
A field is missing or invalid; fields names each one.
- 400step_up_required
A person must confirm with a passkey first, when the org requires it.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/webhook-endpoints/we_01KXSATPMEQ0WPSNH2MDYCK8H6/reveal-secret" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"passkey_assertion": "passkey_assertion_from_webauthn"
}'{
"object": "webhook_secret",
"secret": "whsec_04d48c545d0563691abe27b848a8590dd0129bbc",
"previous_secret_expires_at": null
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Roll a signing secret#
/v2/webhook-endpoints/{id}/roll-secretStart using a new signing secret. During the overlap, deliveries carry both signatures.
- idIdrequired
A prefixed ID from this org.
- passkey_assertionstring
- overlap_hoursnumber
The same WebhookSecret object as Reveal a signing secret.
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/webhook-endpoints/we_01KXSATPMEQ0WPSNH2MDYCK8H6/roll-secret" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"step_up": "passkey_assertion_from_webauthn"
}'{
"object": "error",
"type": "step_up_required",
"code": "step_up_required",
"message": "Rolling a signing secret needs a fresh passkey check.",
"request_id": "req_d54e99179cfebb61d4fa"
}The mock answered this sample with an error; its message says why. Adjust the request in Try it below.
Runs against the in-browser mock with a test key. Nothing leaves your browser.
Send a test event#
/v2/webhook-endpoints/{id}/test- idIdrequired
A prefixed ID from this org.
- event_typestring
The same WebhookDelivery object as List webhook deliveries.
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/webhook-endpoints/we_01KXSATPMEQ0WPSNH2MDYCK8H6/test" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "wd_01M82XPRW4HAM7AFSQ0TR1GDCY",
"object": "webhook_delivery",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.668Z",
"endpoint_id": "we_01KXSATPMEQ0WPSNH2MDYCK8H6",
"event_id": "ev_01M82XPRW4ZY5255BSXTBGHA75",
"event_type": "ping",
"attempt": 1,
"status": "succeeded",
"response_status": 200,
"duration_ms": 108,
"request": {
"headers": {
"content-type": "application/json",
"user-agent": "ndStill-Webhooks/1.0",
"webhook-id": "ev_01M82XPRW4ZY5255BSXTBGHA75",
"webhook-timestamp": "1795394593",
"webhook-signature": "v1,pYKDsHuBM6pnXqm95MlLkjl5OtzP51XVcACz9HBxD2kU"
},
"body": "{\n \"id\": \"ev_01M82XPRW4ZY5255BSXTBGHA75\",\n \"type\": \"ping\",\n \"api_version\": \"2026-11-01\",\n \"created_at\": \"2026-11-23T00:43:13.668Z\",\n \"data\": {\n \"object\": {\n \"test\": true,\n \"livemode\": false,\n \"message\": \"Test event from the ndStill console\",\n \"sent_at\": \"2026-11-23T00:43:13.668Z\"\n }\n }\n}"
},
"response": {
"headers": {
"content-type": "application/json",
"x-request-id": "rq_0727edf37d"
},
"body": "{\"received\":true}"
},
"next_retry_at": null,
"url": "https://hooks.slack.example/services/T0/B1/ndstill",
"trigger": "test"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.