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

Teams API

Teams for showback and policy scope, nested under parents.

5 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 team#

POST/v2/teams
Request body TeamCreate
  • namestringrequired
  • parent_team_idId | null
  • approver_user_idsstring[]
Response Team
  • idId
  • object"team"
  • org_idId
  • created_atTimestamp
  • updated_atTimestampoptional
  • test_modebooleanoptional

    True for test-mode objects (simulations, sandbox).

  • namestring
  • parent_team_idId | null
  • member_countnumber
  • agent_countnumber
  • approver_user_idsstring[]
  • budget_idId | null
  • policy_idId | null
  • spend_mtdMoney

    Month-to-date spend across the team's agents.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
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/teams" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Docs team"
  }'
Response 200
{
  "id": "team_01M82XPRMV7FAXRQNBFMFJDGRF",
  "object": "team",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-11-23T00:43:13.435Z",
  "name": "Docs team",
  "parent_team_id": null,
  "member_count": 0,
  "agent_count": 0,
  "approver_user_ids": [],
  "budget_id": null,
  "policy_id": null,
  "spend_mtd": {
    "amount": 0,
    "asset": "USD"
  }
}
Try it

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

List teams#

GET/v2/teams
Query parameters all optional
  • parent_team_idstring
  • 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 Team

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 Team object as Create a team.

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/teams?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "object": "list",
  "data": [
    {
      "id": "team_01K9GENJMEVBEKC6VV943H2JMP",
      "object": "team",
      "org_id": "org_A99F918124609C9DAAACB209D8",
      "created_at": "2025-11-07T00:43:11.374Z",
      "name": "Engineering",
      "parent_team_id": null,
      "member_count": 2,
      "agent_count": 10,
      "approver_user_ids": [
        "usr_01K8M49NMEY9DX1Y08XB7WT6RT",
        "usr_01KB6H0NMEJW981TCPQXMYEASB"
      ],
      "budget_id": "bud_01KQZY6YME0CEA2MS1TKYGCMR2",
      "policy_id": "pol_01KZ2H66MEAZED81BW1S9F69WE",
      "spend_mtd": {
        "amount": 6412683,
        "asset": "USD"
      }
    },
    {
      "id": "team_01K84NXBMEZ26BQK7002WHPVTB",
      "object": "team",
      "org_id": "org_A99F918124609C9DAAACB209D8",
      "created_at": "2025-11-07T00:43:11.374Z",
      "name": "Finance",
      "parent_team_id": null,
      "member_count": 3,
      "agent_count": 2,
      "approver_user_ids": [
        "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
        "usr_01K8M49NMEY9DX1Y08XB7WT6RT"
      ],
      "budget_id": "bud_01KQZY6YMEM293FEB5MSY7H51A",
      "policy_id": null,
      "spend_mtd": {
        "amount": 4030815,
        "asset": "USD"
      }
    }
  ],
  "has_more": true,
  "next_cursor": "Mg==",
  "total": 8
}
Try it

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

Retrieve a team#

GET/v2/teams/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response Team

The same Team object as Create a team.

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/teams/team_01K9GENJMEVBEKC6VV943H2JMP" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "id": "team_01K9GENJMEVBEKC6VV943H2JMP",
  "object": "team",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2025-11-07T00:43:11.374Z",
  "name": "Engineering",
  "parent_team_id": null,
  "member_count": 2,
  "agent_count": 10,
  "approver_user_ids": [
    "usr_01K8M49NMEY9DX1Y08XB7WT6RT",
    "usr_01KB6H0NMEJW981TCPQXMYEASB"
  ],
  "budget_id": "bud_01KQZY6YME0CEA2MS1TKYGCMR2",
  "policy_id": "pol_01KZ2H66MEAZED81BW1S9F69WE",
  "spend_mtd": {
    "amount": 6412683,
    "asset": "USD"
  }
}
Try it

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

Update a team#

PATCH/v2/teams/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Request body JSON
  • namestring
  • parent_team_idId | null
  • approver_user_idsstring[]
Response Team

The same Team object as Create a team.

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.

  • 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 PATCH "https://api.ndstill.com/v2/teams/team_01M82XPRMV7FAXRQNBFMFJDGRF" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Content-Type: application/json" \
  -d '{}'
Response 200
{
  "id": "team_01M82XPRMV7FAXRQNBFMFJDGRF",
  "object": "team",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-11-23T00:43:13.435Z",
  "name": "Docs team",
  "parent_team_id": null,
  "member_count": 0,
  "agent_count": 0,
  "approver_user_ids": [],
  "budget_id": null,
  "policy_id": null,
  "spend_mtd": {
    "amount": 0,
    "asset": "USD"
  },
  "updated_at": "2026-11-23T00:43:13.436Z"
}
Try it

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

Delete a team#

DEL/v2/teams/{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 request only (not run: it changes the org for good)
Request
curl -X DELETE "https://api.ndstill.com/v2/teams/team_01M82XPRMV7FAXRQNBFMFJDGRF" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Try it

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