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

Request logs API

Every API request made with your keys, with status and latency.

2 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.

List request logs#

GET/v2/request-logs
Query parameters all optional
  • api_key_idId
  • agent_idId
  • statusnumber
  • methodstring
  • status_classstring
  • pathstring
  • 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 RequestLog

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"request_log"
  • atTimestamp
  • methodstring enum
    "GET""POST""PATCH""PUT""DELETE"
  • pathstring
  • statusnumber
  • duration_msnumber
  • api_keyRef | null

    Small reference used for denormalized names in lists (no N+1 lookups in tables).

    Ref: 2 fields
    • idId
    • namestring
  • agentRef | null

    Small reference used for denormalized names in lists (no N+1 lookups in tables).

    Ref: 2 fields
    • idId
    • namestring
  • ipstring
  • request_idstring
  • idempotency_keystring | null
  • user_agentstringoptional

    Detail (GET /request-logs/{id}); lists may leave these out.

  • api_versionstringoptional
  • error_codestring | nulloptional

    Machine error code for 4xx/5xx.

  • requestobjectoptional
    2 fields
    • headersmap of string
    • bodystring | null
  • responseobjectoptional
    2 fields
    • headersmap of string
    • bodystring | null
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/request-logs?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "object": "list",
  "data": [
    {
      "id": "req_be9d48297efdde958620a0",
      "object": "request_log",
      "at": "2026-11-23T00:29:31.374Z",
      "method": "GET",
      "path": "/v2/agents/agt_01KSHTNC8EH0VEB4Q8NSK9WDTE/budget",
      "status": 200,
      "duration_ms": 84,
      "api_key": {
        "id": "key_01M6CVBKMENJA5BND123KN6BTK",
        "name": "Production backend"
      },
      "agent": {
        "id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
        "name": "Travel desk"
      },
      "ip": "203.0.113.143",
      "request_id": "req_15985ce281ee995d75",
      "idempotency_key": null,
      "user_agent": "ndstill-python/2.3.0",
      "api_version": "2026-11-01",
      "error_code": null
    },
    {
      "id": "req_bd9d46967453df35efdcd5",
      "object": "request_log",
      "at": "2026-11-23T00:17:37.374Z",
      "method": "POST",
      "path": "/v2/payment-intents",
      "status": 200,
      "duration_ms": 204,
      "api_key": {
        "id": "key_01M29H2YMERJ0DK6DREJNJM53Y",
        "name": "Research orchestrator runtime"
      },
      "agent": {
        "id": "agt_01KQ667RMEP9Y30VHM3RCA9HZN",
        "name": "Research orchestrator"
      },
      "ip": "203.0.113.84",
      "request_id": "req_16985e75e8b8a87510",
      "idempotency_key": "idem_d762f1749d63bd09",
      "user_agent": "ndstill-node/2.4.1",
      "api_version": "2026-11-01",
      "error_code": null
    }
  ],
  "has_more": true,
  "next_cursor": "Mg==",
  "total": 220
}
Try it

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

Retrieve a request log#

GET/v2/request-logs/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response RequestLog

The same RequestLog object as List request logs.

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 GET "https://api.ndstill.com/v2/request-logs/req_be9d48297efdde958620a0" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "id": "req_be9d48297efdde958620a0",
  "object": "request_log",
  "at": "2026-11-23T00:29:31.374Z",
  "method": "GET",
  "path": "/v2/agents/agt_01KSHTNC8EH0VEB4Q8NSK9WDTE/budget",
  "status": 200,
  "duration_ms": 84,
  "api_key": {
    "id": "key_01M6CVBKMENJA5BND123KN6BTK",
    "name": "Production backend"
  },
  "agent": {
    "id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
    "name": "Travel desk"
  },
  "ip": "203.0.113.143",
  "request_id": "req_15985ce281ee995d75",
  "idempotency_key": null,
  "user_agent": "ndstill-python/2.3.0",
  "api_version": "2026-11-01",
  "error_code": null,
  "request": {
    "headers": {
      "authorization": "Bearer nds_live_935b…",
      "ndstill-version": "2026-11-01",
      "user-agent": "ndstill-python/2.3.0"
    },
    "body": null
  },
  "response": {
    "headers": {
      "content-type": "application/json",
      "request-id": "req_15985ce281ee995d75",
      "ndstill-version": "2026-11-01"
    },
    "body": "{\n  \"object\": \"budget_summary\",\n  \"agent_id\": \"agt_01KSHTNC8EH0VEB4Q8NSK9WDTE\",\n  \"remaining\": {\n    \"amount\": 38450,\n    \"asset\": \"USD\"\n  },\n  \"window\": \"month\"\n}"
  }
}
Try it

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