Teams API
Teams for showback and policy scope, nested under parents.
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#
/v2/teams- namestringrequired
- parent_team_idId | null
- approver_user_idsstring[]
- 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"
- 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/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"
}'{
"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"
}
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List teams#
/v2/teams- 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).
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.
- 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/teams?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"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
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve a team#
/v2/teams/{id}- idIdrequired
A prefixed ID from this org.
The same Team object as Create a team.
- 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/teams/team_01K9GENJMEVBEKC6VV943H2JMP" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"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"
}
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Update a team#
/v2/teams/{id}- idIdrequired
A prefixed ID from this org.
- namestring
- parent_team_idId | null
- approver_user_idsstring[]
The same Team object as Create a team.
- 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.
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 '{}'{
"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"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Delete a team#
/v2/teams/{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/teams/team_01M82XPRMV7FAXRQNBFMFJDGRF" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"Runs against the in-browser mock with a test key. Nothing leaves your browser.