Events API
Every event ndStill emits, with the type catalogue.
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.
List events#
/v2/events- typestring
- related_idId
- afterId
- 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"event"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- typestring
- dataobject
1 field
- objectmap of unknown
- relatedobject | null
2 fields
- objectstring
- idId
- delivered_tonumber
- 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/events?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "ev_01M82XN0XPVF68X9QVVY776FMP",
"object": "event",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:42:16.374Z",
"type": "receipt.created",
"data": {
"object": {
"id": "rcpt_01M82VJYNEJFCMY9VHY5PS5W12",
"object": "receipt",
"intent_id": "pi_01M82VJYNEJFCMY9VHY5PS5W12"
}
},
"related": {
"object": "receipt",
"id": "rcpt_01M82VJYNEJFCMY9VHY5PS5W12"
},
"delivered_to": 1
},
{
"id": "ev_01M82XN0XP3P0PVX2NWRXS6N8G",
"object": "event",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:42:16.374Z",
"type": "receipt.created",
"data": {
"object": {
"id": "rcpt_01M82SXVEENJ34VTC3VGPS95F2",
"object": "receipt",
"intent_id": "pi_01M82SXVEENJ34VTC3VGPS95F2"
}
},
"related": {
"object": "receipt",
"id": "rcpt_01M82SXVEENJ34VTC3VGPS95F2"
},
"delivered_to": 1
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 437
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve an event#
/v2/events/{id}- idIdrequired
A prefixed ID from this org.
The same Event object as List events.
- 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/events/ev_01M82XN0XPVF68X9QVVY776FMP" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "ev_01M82XN0XPVF68X9QVVY776FMP",
"object": "event",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:42:16.374Z",
"type": "receipt.created",
"data": {
"object": {
"id": "rcpt_01M82VJYNEJFCMY9VHY5PS5W12",
"object": "receipt",
"intent_id": "pi_01M82VJYNEJFCMY9VHY5PS5W12"
}
},
"related": {
"object": "receipt",
"id": "rcpt_01M82VJYNEJFCMY9VHY5PS5W12"
},
"delivered_to": 1
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List event types#
/v2/events/typesThe event catalogue: every type a webhook endpoint can subscribe to.
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- object"event_type"
- typestring
- groupstring
- descriptionstring
- 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/events/types" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"object": "event_type",
"type": "payment_intent.created",
"group": "Payments",
"description": "An agent asked to pay."
},
{
"object": "event_type",
"type": "payment_intent.updated",
"group": "Payments",
"description": "A payment changed status."
},
{
"object": "event_type",
"type": "decision.created",
"group": "Payments",
"description": "The pipeline approved, held or declined a payment."
}
],
"has_more": false,
"next_cursor": null,
"total": 21
}Runs against the in-browser mock with a test key. Nothing leaves your browser.