Console views API
Aggregates the console reads: overview, saved views, search and notifications.
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 saved view#
/v2/saved-views- page"activity"required
- namestringrequired
- querystringrequired
- sharedboolean
- idId
- object"saved_view"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- page"activity"
- namestring
- querystring
- created_byRef
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- sharedboolean
Everyone in the org sees it (otherwise only its creator).
- 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/saved-views" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"page": "activity",
"name": "Docs example",
"query": "example"
}'{
"id": "sv_F9092BA029475C5F82794D4211",
"object": "saved_view",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.463Z",
"page": "activity",
"name": "Docs example",
"query": "example",
"created_by": {
"id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
"name": "Dana Whitfield"
},
"shared": false
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List notifications#
/v2/notifications- unreadboolean
- 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"notification"
- kindstring enum
"freeze""approval""system""budget""dispute""connector""recon" - titlestring
- bodystring | null
- hrefstring | null
- readboolean
- created_atTimestamp
- 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/notifications?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"kind": "connector",
"title": "Ramp is syncing late",
"body": "Transactions are syncing 40 minutes behind.",
"href": "/money/connections/con_01KQ667RMEPRF87EQEW9XS3VQE",
"read": false,
"created_at": "2026-11-23T00:02:11.374Z",
"id": "ntf_01M82VBM9HWNEM37TZ6N3XAZMF",
"object": "notification"
},
{
"kind": "approval",
"title": "Ground transport needs approval",
"body": "$45.12 to Uber. Policy requires a person to approve this payment.",
"href": "/operate/approvals?approval=apr_01M82QT3HYAYSVA6YRYFQASMH5",
"read": false,
"created_at": "2026-11-22T23:00:11.454Z",
"id": "ntf_01M82QT3HYPX7CVV11400V1SQC",
"object": "notification"
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 10
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List saved views#
/v2/saved-views- page"activity"
- 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 SavedView object as Create a saved view.
- 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/saved-views?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [],
"has_more": false,
"next_cursor": null,
"total": 0
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Delete a saved view#
/v2/saved-views/{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/saved-views/sv_F9092BA029475C5F82794D4211" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "deleted",
"id": "sv_F9092BA029475C5F82794D4211"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Get the operate overview#
/v2/operate/overview- daysnumber
- object"operate_overview"
- daysnumber
- fromTimestamp
- toTimestamp
- metricsobject
7 fields
- spendMoney
Money that moved or is moving (approved, authorized, settled, disputed).
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spend_previousMoney
Same, for the previous period of equal length.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- paymentsnumber
- allowednumber
Allowed by policy without a person.
- held_nownumber
Waiting for a person right now (any age).
- declinednumber
Declined by policy, a person or a freeze in the period.
- decision_ms_p50number | null
Median decision time in the period (measured).
- spend_by_dayobject[]
3 fields
- dateDateOnly
- spendMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- countnumber
- outcomes_by_dayobject[]
Per day: allowed by policy, held for a person, declined.
4 fields
- dateDateOnly
- approvednumber
- heldnumber
- declinednumber
- top_agentsobject[]
3 fields
- agentRef
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- spendMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- countnumber
- gate_stopsobject[]
The 11 stages in pipeline order: payments waiting (held) or stopped there.
3 fields
- stageStageId
"freeze""approval""policy""mandate""authenticate""entitlement""funding""counterparty""risk""budget""record" - heldnumber
- stoppednumber
- gate_totalnumber
- 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/operate/overview" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "operate_overview",
"days": 14,
"from": "2026-11-10T00:00:00.000Z",
"to": "2026-11-23T00:43:13.397Z",
"metrics": {
"spend": {
"amount": 12683315,
"asset": "USD"
},
"spend_previous": {
"amount": 10776285,
"asset": "USD"
},
"payments": 509,
"allowed": 446,
"held_now": 8,
"declined": 37,
"decision_ms_p50": 58
},
"spend_by_day": [
{
"date": "2026-11-10",
"spend": {
"amount": 906110,
"asset": "USD"
},
"count": 32
},
{
"date": "2026-11-11",
"spend": {
"amount": 678483,
"asset": "USD"
},
"count": 32
},
{
"date": "2026-11-12",
"spend": {
"amount": 1400706,
"asset": "USD"
},
"count": 33
}
],
"outcomes_by_day": [
{
"date": "2026-11-10",
"approved": 30,
"held": 3,
"declined": 1
},
{
"date": "2026-11-11",
"approved": 32,
"held": 3,
"declined": 2
},
{
"date": "2026-11-12",
"approved": 32,
"held": 2,
"declined": 2
}
],
"top_agents": [
{
"agent": {
"id": "agt_01KXX2ZXGEHCQDDER8JPXBWH4F",
"name": "Invoice payer"
},
"spend": {
"amount": 2435617,
"asset": "USD"
},
"count": 15
},
{
"agent": {
"id": "agt_01KW0P2WME52Y6RB8NQX9XBJ35",
"name": "Ad buyer"
},
"spend": {
"amount": 1663977,
"asset": "USD"
},
"count": 25
},
{
"agent": {
"id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"name": "Cloud cost guard"
},
"spend": {
"amount": 1546645,
"asset": "USD"
},
"count": 19
}
],
"gate_stops": [
{
"stage": "authenticate",
"held": 0,
"stopped": 0
},
{
"stage": "entitlement",
"held": 0,
"stopped": 0
},
{
"stage": "freeze",
"held": 0,
"stopped": 11
}
],
"gate_total": 509
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Search everything#
/v2/search- qstringrequired
- limitnumber
- object"search_result"
- querystring
- agentsobject[]
4 fields
- idId
- namestring
- statusstring
- teamstring | null
- paymentsobject[]
6 fields
- idId
- agentstring
- counterpartystring
- amountMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- statusstring
- created_atTimestamp
- counterpartiesobject[]
3 fields
- idId
- namestring
- categorystring
- policiesobject[]
2 fields
- idId
- namestring
- connectionsobject[]
2 fields
- idId
- namestring
- 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/search?q=travel" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "search_result",
"query": "travel",
"agents": [
{
"id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"name": "Travel desk",
"status": "active",
"team": "Travel"
}
],
"payments": [],
"counterparties": [],
"policies": [
{
"id": "pol_01M1Z7G2MEXN2TGM54ESC3V468",
"name": "Travel desk tree policy"
},
{
"id": "pol_01M1T2PMMEF1VTATE4BK3T60T3",
"name": "Travel agent"
}
],
"connections": []
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Mark notifications read#
/v2/notifications/read- idsstring[]
- allboolean
- object"notifications_read"
- updatednumber
- 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/notifications/read" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'{
"object": "notifications_read",
"updated": 0
}Runs against the in-browser mock with a test key. Nothing leaves your browser.