Skip to content
ndStill is in development. These docs describe the v2 API as designed; the SDKs and the hosted MCP server are previews and not generally available.
Docs

Console views API

Aggregates the console reads: overview, saved views, search and notifications.

7 endpointsGenerated from the typed registry

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#

POST/v2/saved-views
Request body SavedViewCreate
  • page"activity"required
  • namestringrequired
  • querystringrequired
  • sharedboolean
Response SavedView
  • 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).

Errors
  • 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.

Example from the mock backend
Request
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"
  }'
Response 200
{
  "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
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

List notifications#

GET/v2/notifications
Query parameters all optional
  • 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).

Response list of Notification

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
Errors
  • 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.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/notifications?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "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
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

List saved views#

GET/v2/saved-views
Query parameters all optional
  • 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).

Response list of SavedView

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.

Errors
  • 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.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/saved-views?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "object": "list",
  "data": [],
  "has_more": false,
  "next_cursor": null,
  "total": 0
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Delete a saved view#

DEL/v2/saved-views/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response the deleted object

Returns the object as it was, with deleted: true.

Errors
  • 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.

Example from the mock backend
Request
curl -X DELETE "https://api.ndstill.com/v2/saved-views/sv_F9092BA029475C5F82794D4211" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "object": "deleted",
  "id": "sv_F9092BA029475C5F82794D4211"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Get the operate overview#

GET/v2/operate/overview
Query parameters all optional
  • daysnumber
Response OperateOverview
  • 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
Errors
  • 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.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/operate/overview" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "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
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Mark notifications read#

POST/v2/notifications/read
Request body MarkNotificationsReadBody
  • idsstring[]
  • allboolean
Response JSON
  • object"notifications_read"
  • updatednumber
Errors
  • 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.

Example from the mock backend
Request
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 '{}'
Response 200
{
  "object": "notifications_read",
  "updated": 0
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.