Agents API
Agent identities, their trees, funding access, effective policy and freeze state.
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 an agent#
/v2/agents- namestringrequired
- purposestring
- parent_agent_idId | null
- team_idId | null
- actor_kindstring enum
"unattended""human_tool""shared" - funding_source_idsstring[]
- default_funding_source_idId | null
- policy_template_idId | null
Start from a policy template.
- monthly_budgetMoney | null
An amount: integer minor units + asset.
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- labelsmap of string
- first_credentialAgentFirstCredential | null
The first standing credential to mint now. Omit (or null) when credentials are minted per payment.
AgentFirstCredential: 5 fields
- typestring enumrequired
"card""provider_key""wallet_permission" - funding_source_idIdrequired
- amount_limitMoneyrequired
Cap on the credential (card limit per month, key spend cap, wallet allowance).
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- merchantstring | null
Cards only: lock to one merchant.
- provider_refstring | null
Provider keys only: link a key that already exists at the provider (an Anthropic key id, apikey_…) instead of creating one. Providers that can't create keys by API need it.
- key_custodystring enum
Who holds the agent's signing (passport) key. Default ndstill_kms.
"customer""ndstill_kms" - public_key_xstring
Customer custody only: the Ed25519 public key, base64url (the JWK "x", 43 characters).
- idId
- object"agent"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- namestring
- purposestring
- statusAgentStatus
"active""frozen""retired" - actor_kindActorKind
"unattended""human_tool""shared" - parent_agent_idId | null
Parent in an agent tree; null for a root or a standalone agent.
- tree_root_idId
The tree's root (itself for a root or standalone agent).
- depthnumber
0 for a root.
- children_countnumber
- pathRef[]
Ancestors from the root down (for breadcrumbs).
Ref: 2 fields
- idId
- namestring
- teamRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- ownerRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- labelsmap of string
- railsRail[]
Rails this agent has used or may use.
"card""network_token""checkout_token""stablecoin""bank""ai""cloud" - default_funding_source_idId | null
- budgetAgentBudgetSummary | null
The budget that binds first (usually the agent's monthly).
AgentBudgetSummary: 5 fields
- budget_idId
- windowBudgetWindow
"day""week""month""quarter""total" - limitMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spentMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- reservedMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spend_todayMoney
Spend today (in the org's default asset).
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spend_mtdMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- held_countnumber
- last_payment_atTimestamp | null
- policy_idId | null
- passport_kidstring | null
- sourcestring enum
Created through an OAuth consent (personal agents) rather than the console.
"console""api""oauth_consent""platform" - oauth_appRef | nulloptional
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- frozen_byRef | nulloptional
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- frozen_atTimestamp | nulloptional
- first_credentialCredentialCreated | nulloptional
The new credential. `secret` is set only when the provider returned the value once.
CredentialCreated: 20 fields
- idId
- object"credential"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- agentRef
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- typeCredentialType
"card""network_token""provider_key""wallet_permission""spt""bank_instruction" - railRail
"card""network_token""checkout_token""stablecoin""bank""ai""cloud" - funding_sourceRef
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- connectionRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- scopeobject
5 fields
- counterpartystringoptional
- merchant_categorystringoptional
- amountMoneyoptional
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- expires_atTimestamp | nulloptional
- usesnumber | nulloptional
- statusstring enum
"active""revoked""expired""frozen""used" - displaystring
Display hint only, never a secret ("Visa ····4417", "sk-…a91f").
- provider_refstring
- minted_by_decision_idId | null
- intent_idId | nulloptional
The payment the minting decision was for (opens the payment drawer). Null for standing credentials.
- revoked_atTimestamp | null
- revoked_byobject | object | object | object | null
One of 4 shapes
- kind"user"
- idId
- namestring
- kind"agent"
- idId
- namestring
- kind"system"
- idIdoptional
- namestring
- kind"api_key"
- idId
- namestring
- secretCredentialSecret | nulloptional
A credential's value, returned exactly once when the provider shows it only once (an OpenAI service-account key). ndStill doesn't keep it: copy it when it's shown.
CredentialSecret: 2 fields
- valuestring
- shown_oncetrue
- 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/agents" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Docs research agent",
"purpose": "Buys datasets and API credits for research",
"actor_kind": "unattended",
"funding_source_ids": [
"fs_01KHHYDEME7D9A5AA3XYHBJD5E"
]
}'{
"id": "agt_01M82XPRN3Y0NE0T6T71JJXT4M",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.443Z",
"name": "Docs research agent",
"purpose": "Buys datasets and API credits for research",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": null,
"tree_root_id": "agt_01M82XPRN3Y0NE0T6T71JJXT4M",
"depth": 0,
"children_count": 0,
"path": [],
"team": null,
"owner": {
"id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
"name": "Dana Whitfield"
},
"labels": {},
"rails": [
"card",
"network_token"
],
"default_funding_source_id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"budget": {
"budget_id": "bud_01M82XPRN3RBZC415MXK8YQ8N2",
"window": "month",
"limit": {
"amount": 50000,
"asset": "USD"
},
"spent": {
"amount": 0,
"asset": "USD"
},
"reserved": {
"amount": 0,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 0,
"asset": "USD"
},
"held_count": 0,
"last_payment_at": null,
"policy_id": null,
"passport_kid": "acme-robotics-docs-research-agent-2fa828",
"source": "console",
"oauth_app": null
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List agents#
/v2/agents- status"active" | "frozen" | "retired" | AgentStatus[]
One status, or several (OR).
"active""frozen""retired" - team_idId
- parent_agent_idstring
- tree_root_idId
All agents in the tree rooted here.
- railstring enum
"card""network_token""checkout_token""stablecoin""bank""ai""cloud" - has_heldboolean
- 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"agent"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- namestring
- purposestring
- statusAgentStatus
"active""frozen""retired" - actor_kindActorKind
"unattended""human_tool""shared" - parent_agent_idId | null
Parent in an agent tree; null for a root or a standalone agent.
- tree_root_idId
The tree's root (itself for a root or standalone agent).
- depthnumber
0 for a root.
- children_countnumber
- pathRef[]
Ancestors from the root down (for breadcrumbs).
Ref: 2 fields
- idId
- namestring
- teamRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- ownerRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- labelsmap of string
- railsRail[]
Rails this agent has used or may use.
"card""network_token""checkout_token""stablecoin""bank""ai""cloud" - default_funding_source_idId | null
- budgetAgentBudgetSummary | null
The budget that binds first (usually the agent's monthly).
AgentBudgetSummary: 5 fields
- budget_idId
- windowBudgetWindow
"day""week""month""quarter""total" - limitMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spentMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- reservedMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spend_todayMoney
Spend today (in the org's default asset).
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spend_mtdMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- held_countnumber
- last_payment_atTimestamp | null
- policy_idId | null
- passport_kidstring | null
- sourcestring enum
Created through an OAuth consent (personal agents) rather than the console.
"console""api""oauth_consent""platform" - oauth_appRef | nulloptional
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- frozen_byRef | nulloptional
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- frozen_atTimestamp | nulloptional
- 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/agents?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "agt_01KW0P2WME52Y6RB8NQX9XBJ35",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-06-26T00:43:11.374Z",
"name": "Ad buyer",
"purpose": "Buys ads on Google, Meta and LinkedIn",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"tree_root_id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"depth": 1,
"children_count": 0,
"path": [
{
"id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"name": "Growth lead"
}
],
"team": {
"id": "team_01K9K129ME4AYMHG1X82H1CXCD",
"name": "Growth"
},
"owner": {
"id": "usr_01KETCX0MEA9RA05FCKG947HTQ",
"name": "Hana Sato"
},
"labels": {
"env": "staging",
"profile": "ads"
},
"rails": [
"card"
],
"default_funding_source_id": "fs_01KQ667RMECZZYAME5T23SR7EN",
"budget": {
"budget_id": "bud_01KQZY6YMEN4WQRT5EVFXA7VCH",
"window": "month",
"limit": {
"amount": 4000000,
"asset": "USD"
},
"spent": {
"amount": 2675461,
"asset": "USD"
},
"reserved": {
"amount": 42388,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 2717849,
"asset": "USD"
},
"held_count": 1,
"last_payment_at": "2026-11-22T18:53:43.171Z",
"policy_id": null,
"passport_kid": "acme-robotics-ad_buyer-4bc6a2",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
},
{
"id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-07-31T13:43:11.374Z",
"name": "Cloud cost guard",
"purpose": "Watches cloud spend and cuts runaway jobs",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": null,
"tree_root_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"depth": 0,
"children_count": 0,
"path": [],
"team": {
"id": "team_01K8HHWYMEW49G6SJBNWRTEJCX",
"name": "Platform"
},
"owner": {
"id": "usr_01KD1R56ME94CCHFNYQB1CC01H",
"name": "Aisha Bello"
},
"labels": {
"env": "production",
"profile": "cloud_guard"
},
"rails": [
"cloud",
"card"
],
"default_funding_source_id": "fs_01KZMHZ7MEWAF1941KT52ZRXK0",
"budget": {
"budget_id": "bud_01KQZY6YME7WQHES9NFH75E6KZ",
"window": "month",
"limit": {
"amount": 2500000,
"asset": "USD"
},
"spent": {
"amount": 2317562,
"asset": "USD"
},
"reserved": {
"amount": 7079,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 2324641,
"asset": "USD"
},
"held_count": 1,
"last_payment_at": "2026-11-22T23:06:11.374Z",
"policy_id": "pol_01KWG4F6ME9ZR9XNY1AVAY1JM2",
"passport_kid": "acme-robotics-cloud_cost_guard-663e0c",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 25
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve an agent#
/v2/agents/{id}- idIdrequired
A prefixed ID from this org.
The same Agent object as List agents.
- 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/agents/agt_01KYW6M8REDTGCTQ2ZK0CMDADJ" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-07-31T13:43:11.374Z",
"name": "Cloud cost guard",
"purpose": "Watches cloud spend and cuts runaway jobs",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": null,
"tree_root_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"depth": 0,
"children_count": 0,
"path": [],
"team": {
"id": "team_01K8HHWYMEW49G6SJBNWRTEJCX",
"name": "Platform"
},
"owner": {
"id": "usr_01KD1R56ME94CCHFNYQB1CC01H",
"name": "Aisha Bello"
},
"labels": {
"env": "production",
"profile": "cloud_guard"
},
"rails": [
"cloud",
"card"
],
"default_funding_source_id": "fs_01KZMHZ7MEWAF1941KT52ZRXK0",
"budget": {
"budget_id": "bud_01KQZY6YME7WQHES9NFH75E6KZ",
"window": "month",
"limit": {
"amount": 2500000,
"asset": "USD"
},
"spent": {
"amount": 2317562,
"asset": "USD"
},
"reserved": {
"amount": 7079,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 2324641,
"asset": "USD"
},
"held_count": 1,
"last_payment_at": "2026-11-22T23:06:11.374Z",
"policy_id": "pol_01KWG4F6ME9ZR9XNY1AVAY1JM2",
"passport_kid": "acme-robotics-cloud_cost_guard-663e0c",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Update an agent#
/v2/agents/{id}- idIdrequired
A prefixed ID from this org.
- namestring
- purposestring
- parent_agent_idId | null
- team_idId | null
- actor_kindstring enum
"unattended""human_tool""shared" - default_funding_source_idId | null
- monthly_budgetMoney | null
An amount: integer minor units + asset.
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- labelsmap of string
- statusstring enum
"active""retired"
The same Agent object as List agents.
- 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/agents/agt_01KYW6M8REDTGCTQ2ZK0CMDADJ" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-07-31T13:43:11.374Z",
"name": "Cloud cost guard",
"purpose": "Watches cloud spend and cuts runaway jobs",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": null,
"tree_root_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"depth": 0,
"children_count": 0,
"path": [],
"team": {
"id": "team_01K8HHWYMEW49G6SJBNWRTEJCX",
"name": "Platform"
},
"owner": {
"id": "usr_01KD1R56ME94CCHFNYQB1CC01H",
"name": "Aisha Bello"
},
"labels": {
"env": "production",
"profile": "cloud_guard"
},
"rails": [
"cloud",
"card"
],
"default_funding_source_id": "fs_01KZMHZ7MEWAF1941KT52ZRXK0",
"budget": {
"budget_id": "bud_01KQZY6YME7WQHES9NFH75E6KZ",
"window": "month",
"limit": {
"amount": 2500000,
"asset": "USD"
},
"spent": {
"amount": 2317562,
"asset": "USD"
},
"reserved": {
"amount": 7079,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 2324641,
"asset": "USD"
},
"held_count": 1,
"last_payment_at": "2026-11-22T23:06:11.374Z",
"policy_id": "pol_01KWG4F6ME9ZR9XNY1AVAY1JM2",
"passport_kid": "acme-robotics-cloud_cost_guard-663e0c",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null,
"updated_at": "2026-11-23T00:43:13.446Z"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Get an agent's effective policy#
/v2/agents/{id}/effective-policyEvery rule that applies to the agent, with the policy (org, team, tree or agent) it comes from.
- idIdrequired
A prefixed ID from this org.
- object"effective_policy"
- agent_idId
- rulesobject[]
4 fields
- pathstring
- labelstring
- valuestring
- sourceobject
4 fields
- kindPolicyScopeKind
"team""org""agent""tree" - idId
- namestring
- policy_idId
- 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/agents/agt_01KYW6M8REDTGCTQ2ZK0CMDADJ/effective-policy" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "effective_policy",
"agent_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"rules": [
{
"path": "budgets.month",
"label": "Monthly budget",
"value": "$25,000.00",
"source": {
"kind": "agent",
"id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"name": "Cloud cost guard",
"policy_id": "pol_01KWG4F6ME9ZR9XNY1AVAY1JM2"
}
},
{
"path": "limits.per_payment",
"label": "Per payment",
"value": "$6,000.00",
"source": {
"kind": "agent",
"id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"name": "Cloud cost guard",
"policy_id": "pol_01KWG4F6ME9ZR9XNY1AVAY1JM2"
}
},
{
"path": "approvals.above",
"label": "Approval above",
"value": "$3,000.00",
"source": {
"kind": "agent",
"id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"name": "Cloud cost guard",
"policy_id": "pol_01KWG4F6ME9ZR9XNY1AVAY1JM2"
}
}
]
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List an agent's funding access#
/v2/agents/{id}/funding-access- idIdrequired
A prefixed ID from this org.
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- object"funding_access"
- agent_idId
- funding_source_idId
- funding_sourceobject
4 fields
- idId
- namestring
- kindstring
- control_levelstring enum
null"authorize""issue""observe_stop"
- is_defaultboolean
- limits_overrideobject | null
2 fields
- per_paymentMoneyoptional
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- monthlyMoneyoptional
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- 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/agents/agt_01KYW6M8REDTGCTQ2ZK0CMDADJ/funding-access" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"object": "funding_access",
"agent_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"funding_source_id": "fs_01KZMHZ7MEWAF1941KT52ZRXK0",
"funding_source": {
"id": "fs_01KZMHZ7MEWAF1941KT52ZRXK0",
"name": "AWS (billing)",
"kind": "cloud",
"control_level": "observe_stop"
},
"is_default": true,
"limits_override": {
"per_payment": {
"amount": 600000,
"asset": "USD"
}
}
},
{
"object": "funding_access",
"agent_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"funding_source_id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"funding_source": {
"id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"name": "Agent spend (ndStill account)",
"kind": "ndstill_account",
"control_level": "authorize"
},
"is_default": false,
"limits_override": null
}
],
"has_more": false,
"next_cursor": null,
"total": 2
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List an agent's keys#
/v2/agents/{id}/keys- idIdrequired
A prefixed ID from this org.
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"agent_key"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- agent_idId
- kidstring
- alg"ed25519"
- custodystring enum
"customer""ndstill_kms" - statusstring enum
"active""revoked""rotating" - public_jwkobject
4 fields
- kty"OKP"
- crv"Ed25519"
- xstring
- kidstring
- rotated_atTimestamp | null
- last_used_atTimestamp | null
- 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/agents/agt_01KYW6M8REDTGCTQ2ZK0CMDADJ/keys" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "akey_01KYW6M8RE2EEQQMTAKHWTCQWF",
"object": "agent_key",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-07-31T13:43:11.374Z",
"agent_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"kid": "acme-robotics-cloud_cost_guard-663e0c",
"alg": "ed25519",
"custody": "ndstill_kms",
"status": "active",
"public_jwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "ZfXCwT53tAAAgX0Zdk8moSGriGu0pgNNX7UKuCSfOF1",
"kid": "acme-robotics-cloud_cost_guard-663e0c"
},
"rotated_at": null,
"last_used_at": "2026-11-22T23:33:11.374Z"
}
],
"has_more": false,
"next_cursor": null,
"total": 1
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Get an agent's overview#
/v2/agents/{id}/overview- idIdrequired
A prefixed ID from this org.
- object"agent_overview"
- agent_idId
- railsAgentRail[]
AgentRail: 14 fields
- object"agent_rail"
- railRail
"card""network_token""checkout_token""stablecoin""bank""ai""cloud" - connectionRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- provider_namestring
"Stripe Issuing", "OpenAI (proxy)", "ndStill card program".
- funding_sourceRef
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- control_levelstring enum
null"authorize""issue""observe_stop" - stopobject
Measured stop time from real freezes on this connection (null p90 = not measured yet).
3 fields
- p50_msnumber | null
- p90_msnumber | null
- samplesnumber
- freeze_actionstring
What a freeze does on this rail ("Cards frozen at Stripe"), and whether it can be undone.
- freeze_reversibleboolean
- freeze_notestring | nulloptional
Plain words when stopping or resuming needs explaining ("Stopping deletes the key; …").
- healthstring enum
null"healthy""degraded""down" - spend_mtdMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- payments_mtdnumber
- last_used_atTimestamp | null
- seriesobject[]
Settled or authorized spend per local day, oldest first (last 30 days).
3 fields
- datestring
- amountMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- paymentsnumber
- outcomes_30dobject
3 fields
- approvednumber
- heldnumber
- declinednumber
- top_counterpartiesobject[]
3 fields
- namestring
- amountMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- paymentsnumber
- limitsobject
The limits that bind this agent now (from the effective policy).
3 fields
- monthlyMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- per_paymentMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- approval_aboveMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- 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/agents/agt_01KYW6M8REDTGCTQ2ZK0CMDADJ/overview" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "agent_overview",
"agent_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"rails": [
{
"object": "agent_rail",
"rail": "cloud",
"connection": {
"id": "con_01KZMHZ7MEQ9KST6799SP0GF4G",
"name": "AWS billing"
},
"provider_name": "AWS billing",
"funding_source": {
"id": "fs_01KZMHZ7MEWAF1941KT52ZRXK0",
"name": "AWS (billing)"
},
"control_level": "observe_stop",
"stop": {
"p50_ms": null,
"p90_ms": null,
"samples": 0
},
"freeze_action": "Detach the agent's IAM role",
"freeze_reversible": false,
"freeze_note": null,
"health": "healthy",
"spend_mtd": {
"amount": 2045628,
"asset": "USD"
},
"payments_mtd": 23,
"last_used_at": "2026-11-22T12:58:57.622Z"
},
{
"object": "agent_rail",
"rail": "card",
"connection": {
"id": "con_01KMRYA6ME05ZXF7TQQQSF14VK",
"name": "ndStill card program"
},
"provider_name": "ndStill card program",
"funding_source": {
"id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"name": "Agent spend (ndStill account)"
},
"control_level": "authorize",
"stop": {
"p50_ms": 300,
"p90_ms": 500,
"samples": 128
},
"freeze_action": "Freeze ndStill cards",
"freeze_reversible": true,
"freeze_note": null,
"health": "healthy",
"spend_mtd": {
"amount": 279013,
"asset": "USD"
},
"payments_mtd": 7,
"last_used_at": "2026-11-22T23:06:11.374Z"
}
],
"series": [
{
"date": "2026-10-25",
"amount": {
"amount": 239000,
"asset": "USD"
},
"payments": 2
},
{
"date": "2026-10-26",
"amount": {
"amount": 0,
"asset": "USD"
},
"payments": 0
},
{
"date": "2026-10-27",
"amount": {
"amount": 37090,
"asset": "USD"
},
"payments": 1
}
],
"outcomes_30d": {
"approved": 36,
"held": 1,
"declined": 2
},
"top_counterparties": [
{
"name": "Amazon Web Services",
"amount": {
"amount": 2418982,
"asset": "USD"
},
"payments": 25
},
{
"name": "Google Cloud",
"amount": {
"amount": 419103,
"asset": "USD"
},
"payments": 10
}
],
"limits": {
"monthly": {
"amount": 2500000,
"asset": "USD"
},
"per_payment": {
"amount": 600000,
"asset": "USD"
},
"approval_above": {
"amount": 300000,
"asset": "USD"
}
}
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Get an agent's passport#
/v2/agents/{id}/passport- idIdrequired
A prefixed ID from this org.
- idId
- object"passport"
- agent_idId
- kidstring
- owner_verification_levelstring enum
"none""kyb""kyc""email" - reputationobject
4 fields
- scorenumber
- paymentsnumber
- disputesnumber
- sinceTimestamp
- directory_published_atTimestamp | null
- directory_urlstring
- statusstring enum
"suspended""published""unpublished"
- 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/agents/agt_01KYW6M8REDTGCTQ2ZK0CMDADJ/passport" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "pass_01KYW6M8REVDZFPVBWN10PVB3H",
"object": "passport",
"agent_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"kid": "acme-robotics-cloud_cost_guard-663e0c",
"owner_verification_level": "kyb",
"reputation": {
"score": 93,
"payments": 62,
"disputes": 0,
"since": "2026-07-31T13:43:11.374Z"
},
"directory_published_at": "2026-08-01T13:43:11.374Z",
"directory_url": "https://directory.ndstill.example/passports/acme-robotics-cloud_cost_guard-663e0c",
"status": "published"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Get an agent's tree#
/v2/agents/{id}/tree- idIdrequired
A prefixed ID from this org.
- agentAgent
Agent: 31 fields
- idId
- object"agent"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- namestring
- purposestring
- statusAgentStatus
"active""frozen""retired" - actor_kindActorKind
"unattended""human_tool""shared" - parent_agent_idId | null
Parent in an agent tree; null for a root or a standalone agent.
- tree_root_idId
The tree's root (itself for a root or standalone agent).
- depthnumber
0 for a root.
- children_countnumber
- pathRef[]
Ancestors from the root down (for breadcrumbs).
Ref: 2 fields
- idId
- namestring
- teamRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- ownerRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- labelsmap of string
- railsRail[]
Rails this agent has used or may use.
"card""network_token""checkout_token""stablecoin""bank""ai""cloud" - default_funding_source_idId | null
- budgetAgentBudgetSummary | null
The budget that binds first (usually the agent's monthly).
AgentBudgetSummary: 5 fields
- budget_idId
- windowBudgetWindow
"day""week""month""quarter""total" - limitMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spentMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- reservedMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spend_todayMoney
Spend today (in the org's default asset).
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spend_mtdMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- held_countnumber
- last_payment_atTimestamp | null
- policy_idId | null
- passport_kidstring | null
- sourcestring enum
Created through an OAuth consent (personal agents) rather than the console.
"console""api""oauth_consent""platform" - oauth_appRef | nulloptional
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- frozen_byRef | nulloptional
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- frozen_atTimestamp | nulloptional
- childrenAgentTreeNode[]
- rollup_spend_mtdMoney
Spend of the agent plus all descendants this month.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- rollup_held_countnumber
- rollup_spend_todayMoney
Spend of the agent plus all descendants today.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- rollup_budgetobject | null
The agent's monthly budget summed with its descendants' (each still binds on its own). Null when none has a budget.
3 fields
- limitMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spentMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- reservedMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- descendantsnumber
Children, grandchildren and so on.
- 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/agents/agt_01KYW6M8REDTGCTQ2ZK0CMDADJ/tree" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"agent": {
"id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-07-31T13:43:11.374Z",
"name": "Cloud cost guard",
"purpose": "Watches cloud spend and cuts runaway jobs",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": null,
"tree_root_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"depth": 0,
"children_count": 0,
"path": [],
"team": {
"id": "team_01K8HHWYMEW49G6SJBNWRTEJCX",
"name": "Platform"
},
"owner": {
"id": "usr_01KD1R56ME94CCHFNYQB1CC01H",
"name": "Aisha Bello"
},
"labels": {
"env": "production",
"profile": "cloud_guard"
},
"rails": [
"cloud",
"card"
],
"default_funding_source_id": "fs_01KZMHZ7MEWAF1941KT52ZRXK0",
"budget": {
"budget_id": "bud_01KQZY6YME7WQHES9NFH75E6KZ",
"window": "month",
"limit": {
"amount": 2500000,
"asset": "USD"
},
"spent": {
"amount": 2317562,
"asset": "USD"
},
"reserved": {
"amount": 7079,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 2324641,
"asset": "USD"
},
"held_count": 1,
"last_payment_at": "2026-11-22T23:06:11.374Z",
"policy_id": "pol_01KWG4F6ME9ZR9XNY1AVAY1JM2",
"passport_kid": "acme-robotics-cloud_cost_guard-663e0c",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
},
"children": [],
"rollup_spend_mtd": {
"amount": 2324641,
"asset": "USD"
},
"rollup_held_count": 1,
"rollup_spend_today": {
"amount": 0,
"asset": "USD"
},
"rollup_budget": {
"limit": {
"amount": 2500000,
"asset": "USD"
},
"spent": {
"amount": 2317562,
"asset": "USD"
},
"reserved": {
"amount": 7079,
"asset": "USD"
}
},
"descendants": 0
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List agent trees#
/v2/agents/trees- team_idId
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- agentAgent
Agent: 31 fields
- idId
- object"agent"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- namestring
- purposestring
- statusAgentStatus
"active""frozen""retired" - actor_kindActorKind
"unattended""human_tool""shared" - parent_agent_idId | null
Parent in an agent tree; null for a root or a standalone agent.
- tree_root_idId
The tree's root (itself for a root or standalone agent).
- depthnumber
0 for a root.
- children_countnumber
- pathRef[]
Ancestors from the root down (for breadcrumbs).
Ref: 2 fields
- idId
- namestring
- teamRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- ownerRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- labelsmap of string
- railsRail[]
Rails this agent has used or may use.
"card""network_token""checkout_token""stablecoin""bank""ai""cloud" - default_funding_source_idId | null
- budgetAgentBudgetSummary | null
The budget that binds first (usually the agent's monthly).
AgentBudgetSummary: 5 fields
- budget_idId
- windowBudgetWindow
"day""week""month""quarter""total" - limitMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spentMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- reservedMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spend_todayMoney
Spend today (in the org's default asset).
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spend_mtdMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- held_countnumber
- last_payment_atTimestamp | null
- policy_idId | null
- passport_kidstring | null
- sourcestring enum
Created through an OAuth consent (personal agents) rather than the console.
"console""api""oauth_consent""platform" - oauth_appRef | nulloptional
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- frozen_byRef | nulloptional
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- frozen_atTimestamp | nulloptional
- childrenAgentTreeNode[]
- rollup_spend_mtdMoney
Spend of the agent plus all descendants this month.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- rollup_held_countnumber
- rollup_spend_todayMoney
Spend of the agent plus all descendants today.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- rollup_budgetobject | null
The agent's monthly budget summed with its descendants' (each still binds on its own). Null when none has a budget.
3 fields
- limitMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spentMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- reservedMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- descendantsnumber
Children, grandchildren and so on.
- 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/agents/trees" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"agent": {
"id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-06-19T04:43:11.374Z",
"name": "Growth lead",
"purpose": "Runs campaigns and splits the ad budget",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": null,
"tree_root_id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"depth": 0,
"children_count": 3,
"path": [],
"team": {
"id": "team_01K9K129ME4AYMHG1X82H1CXCD",
"name": "Growth"
},
"owner": {
"id": "usr_01KETCX0MEA9RA05FCKG947HTQ",
"name": "Hana Sato"
},
"labels": {
"env": "production",
"profile": "growth_lead"
},
"rails": [
"card",
"ai"
],
"default_funding_source_id": "fs_01KQ667RMECZZYAME5T23SR7EN",
"budget": {
"budget_id": "bud_01KQZY6YMEAQ2AB9M3VFCSRTD5",
"window": "month",
"limit": {
"amount": 1500000,
"asset": "USD"
},
"spent": {
"amount": 336229,
"asset": "USD"
},
"reserved": {
"amount": 0,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 336229,
"asset": "USD"
},
"held_count": 0,
"last_payment_at": "2026-11-18T10:33:47.349Z",
"policy_id": null,
"passport_kid": "acme-robotics-growth_lead-161087",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
},
"children": [
{
"agent": {
"id": "agt_01KW0P2WME52Y6RB8NQX9XBJ35",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-06-26T00:43:11.374Z",
"name": "Ad buyer",
"purpose": "Buys ads on Google, Meta and LinkedIn",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"tree_root_id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"depth": 1,
"children_count": 0,
"path": [
{
"id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"name": "Growth lead"
}
],
"team": {
"id": "team_01K9K129ME4AYMHG1X82H1CXCD",
"name": "Growth"
},
"owner": {
"id": "usr_01KETCX0MEA9RA05FCKG947HTQ",
"name": "Hana Sato"
},
"labels": {
"env": "staging",
"profile": "ads"
},
"rails": [
"card"
],
"default_funding_source_id": "fs_01KQ667RMECZZYAME5T23SR7EN",
"budget": {
"budget_id": "bud_01KQZY6YMEN4WQRT5EVFXA7VCH",
"window": "month",
"limit": {
"amount": 4000000,
"asset": "USD"
},
"spent": {
"amount": 2675461,
"asset": "USD"
},
"reserved": {
"amount": 42388,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 2717849,
"asset": "USD"
},
"held_count": 1,
"last_payment_at": "2026-11-22T18:53:43.171Z",
"policy_id": null,
"passport_kid": "acme-robotics-ad_buyer-4bc6a2",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
},
"children": [],
"rollup_spend_mtd": {
"amount": 2717849,
"asset": "USD"
},
"rollup_held_count": 1,
"rollup_spend_today": {
"amount": 0,
"asset": "USD"
},
"rollup_budget": {
"limit": {
"amount": 4000000,
"asset": "USD"
},
"spent": {
"amount": 2675461,
"asset": "USD"
},
"reserved": {
"amount": 42388,
"asset": "USD"
}
},
"descendants": 0
},
{
"agent": {
"id": "agt_01KWEQTZGE7K1Y4XH61XNMMJ45",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-07-01T11:43:11.374Z",
"name": "Content writer",
"purpose": "Drafts posts and landing pages",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"tree_root_id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"depth": 1,
"children_count": 0,
"path": [
{
"id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"name": "Growth lead"
}
],
"team": {
"id": "team_01K9K129ME4AYMHG1X82H1CXCD",
"name": "Growth"
},
"owner": {
"id": "usr_01KETCX0MEA9RA05FCKG947HTQ",
"name": "Hana Sato"
},
"labels": {
"env": "production",
"profile": "content"
},
"rails": [
"ai",
"card"
],
"default_funding_source_id": "fs_01KSKE5AMEDK6KZAXEBQ3AVBVK",
"budget": {
"budget_id": "bud_01KQZY6YMEYY9JDSBE6DMZ5CDC",
"window": "month",
"limit": {
"amount": 450000,
"asset": "USD"
},
"spent": {
"amount": 290266,
"asset": "USD"
},
"reserved": {
"amount": 1549,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 291815,
"asset": "USD"
},
"held_count": 0,
"last_payment_at": "2026-11-22T19:03:40.106Z",
"policy_id": null,
"passport_kid": "acme-robotics-content_writer-bc75be",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
},
"children": [],
"rollup_spend_mtd": {
"amount": 291815,
"asset": "USD"
},
"rollup_held_count": 0,
"rollup_spend_today": {
"amount": 0,
"asset": "USD"
},
"rollup_budget": {
"limit": {
"amount": 450000,
"asset": "USD"
},
"spent": {
"amount": 290266,
"asset": "USD"
},
"reserved": {
"amount": 1549,
"asset": "USD"
}
},
"descendants": 0
},
{
"agent": {
"id": "agt_01KWY9N54EWVW2B9R5VCDZ7753",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-07-07T12:43:11.374Z",
"name": "Social scheduler",
"purpose": "Schedules and boosts social posts",
"status": "frozen",
"actor_kind": "unattended",
"parent_agent_id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"tree_root_id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"depth": 1,
"children_count": 0,
"path": [
{
"id": "agt_01KVF31A4EGD64QTXPG396XW3C",
"name": "Growth lead"
}
],
"team": {
"id": "team_01K9K129ME4AYMHG1X82H1CXCD",
"name": "Growth"
},
"owner": {
"id": "usr_01KETCX0MEA9RA05FCKG947HTQ",
"name": "Hana Sato"
},
"labels": {
"env": "production",
"profile": "social"
},
"rails": [
"card",
"ai"
],
"default_funding_source_id": "fs_01KQ667RMECZZYAME5T23SR7EN",
"budget": {
"budget_id": "bud_01KQZY6YME261VSN4H6GHJVV08",
"window": "month",
"limit": {
"amount": 600000,
"asset": "USD"
},
"spent": {
"amount": 849918,
"asset": "USD"
},
"reserved": {
"amount": 0,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 849918,
"asset": "USD"
},
"held_count": 0,
"last_payment_at": "2026-11-22T22:22:59.441Z",
"policy_id": null,
"passport_kid": "acme-robotics-social_scheduler-676696",
"source": "console",
"oauth_app": null,
"frozen_at": "2026-11-21T00:43:11.374Z",
"frozen_by": {
"id": "usr_01K8M49NMEY9DX1Y08XB7WT6RT",
"name": "Marcus Lee"
}
},
"children": [],
"rollup_spend_mtd": {
"amount": 849918,
"asset": "USD"
},
"rollup_held_count": 0,
"rollup_spend_today": {
"amount": 0,
"asset": "USD"
},
"rollup_budget": {
"limit": {
"amount": 600000,
"asset": "USD"
},
"spent": {
"amount": 849918,
"asset": "USD"
},
"reserved": {
"amount": 0,
"asset": "USD"
}
},
"descendants": 0
}
],
"rollup_spend_mtd": {
"amount": 4195811,
"asset": "USD"
},
"rollup_held_count": 1,
"rollup_spend_today": {
"amount": 0,
"asset": "USD"
},
"rollup_budget": {
"limit": {
"amount": 6550000,
"asset": "USD"
},
"spent": {
"amount": 4151874,
"asset": "USD"
},
"reserved": {
"amount": 43937,
"asset": "USD"
}
},
"descendants": 3
},
{
"agent": {
"id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-05-26T09:43:11.374Z",
"name": "Travel desk",
"purpose": "Plans team travel and delegates bookings",
"status": "active",
"actor_kind": "human_tool",
"parent_agent_id": null,
"tree_root_id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"depth": 0,
"children_count": 3,
"path": [],
"team": {
"id": "team_01K98QFDMEY82YFGH9FZ0NDM5Y",
"name": "Travel"
},
"owner": {
"id": "usr_01K9R5VQME4Q4FSCTVNGTV56C2",
"name": "Priya Raman"
},
"labels": {
"env": "staging",
"profile": "travel_lead"
},
"rails": [
"network_token",
"card"
],
"default_funding_source_id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"budget": {
"budget_id": "bud_01KQZY6YME29GFEKM5AG6Y163E",
"window": "month",
"limit": {
"amount": 1200000,
"asset": "USD"
},
"spent": {
"amount": 748567,
"asset": "USD"
},
"reserved": {
"amount": 0,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 748567,
"asset": "USD"
},
"held_count": 1,
"last_payment_at": "2026-11-21T17:14:49.335Z",
"policy_id": null,
"passport_kid": "acme-robotics-travel_desk-dca9d1",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
},
"children": [
{
"agent": {
"id": "agt_01KT2J81REP5PWFMXBR1QGDE4E",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-06-01T21:43:11.374Z",
"name": "Flight booker",
"purpose": "Books flights inside a signed mandate",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"tree_root_id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"depth": 1,
"children_count": 0,
"path": [
{
"id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"name": "Travel desk"
}
],
"team": {
"id": "team_01K98QFDMEY82YFGH9FZ0NDM5Y",
"name": "Travel"
},
"owner": {
"id": "usr_01K9R5VQME4Q4FSCTVNGTV56C2",
"name": "Priya Raman"
},
"labels": {
"env": "production",
"profile": "flights"
},
"rails": [
"network_token"
],
"default_funding_source_id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"budget": {
"budget_id": "bud_01KQZY6YMEPBWJMTMQZTZC6203",
"window": "month",
"limit": {
"amount": 2000000,
"asset": "USD"
},
"spent": {
"amount": 1077342,
"asset": "USD"
},
"reserved": {
"amount": 38000,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 1115342,
"asset": "USD"
},
"held_count": 0,
"last_payment_at": "2026-11-22T16:11:00.402Z",
"policy_id": null,
"passport_kid": "acme-robotics-flight_booker-4f1bb8",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
},
"children": [],
"rollup_spend_mtd": {
"amount": 1115342,
"asset": "USD"
},
"rollup_held_count": 0,
"rollup_spend_today": {
"amount": 0,
"asset": "USD"
},
"rollup_budget": {
"limit": {
"amount": 2000000,
"asset": "USD"
},
"spent": {
"amount": 1077342,
"asset": "USD"
},
"reserved": {
"amount": 38000,
"asset": "USD"
}
},
"descendants": 0
},
{
"agent": {
"id": "agt_01KTGQE08EZ4VT9QRAZH131H64",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-06-07T09:43:11.374Z",
"name": "Hotel booker",
"purpose": "Books hotels near the meeting venue",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"tree_root_id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"depth": 1,
"children_count": 0,
"path": [
{
"id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"name": "Travel desk"
}
],
"team": {
"id": "team_01K98QFDMEY82YFGH9FZ0NDM5Y",
"name": "Travel"
},
"owner": {
"id": "usr_01K9R5VQME4Q4FSCTVNGTV56C2",
"name": "Priya Raman"
},
"labels": {
"env": "production",
"profile": "hotels"
},
"rails": [
"network_token",
"card"
],
"default_funding_source_id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"budget": {
"budget_id": "bud_01KQZY6YME1J151ZWAEJV8SG3X",
"window": "month",
"limit": {
"amount": 1400000,
"asset": "USD"
},
"spent": {
"amount": 1155412,
"asset": "USD"
},
"reserved": {
"amount": 0,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 1155412,
"asset": "USD"
},
"held_count": 0,
"last_payment_at": "2026-11-21T16:24:46.587Z",
"policy_id": null,
"passport_kid": "acme-robotics-hotel_booker-2dc6d9",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
},
"children": [],
"rollup_spend_mtd": {
"amount": 1155412,
"asset": "USD"
},
"rollup_held_count": 0,
"rollup_spend_today": {
"amount": 0,
"asset": "USD"
},
"rollup_budget": {
"limit": {
"amount": 1400000,
"asset": "USD"
},
"spent": {
"amount": 1155412,
"asset": "USD"
},
"reserved": {
"amount": 0,
"asset": "USD"
}
},
"descendants": 0
},
{
"agent": {
"id": "agt_01KV02CEME1GNDVJ717S9GRP4C",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-06-13T08:43:11.374Z",
"name": "Ground transport",
"purpose": "Books rides to and from airports",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"tree_root_id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"depth": 1,
"children_count": 0,
"path": [
{
"id": "agt_01KSHTNC8EH0VEB4Q8NSK9WDTE",
"name": "Travel desk"
}
],
"team": {
"id": "team_01K98QFDMEY82YFGH9FZ0NDM5Y",
"name": "Travel"
},
"owner": {
"id": "usr_01K9R5VQME4Q4FSCTVNGTV56C2",
"name": "Priya Raman"
},
"labels": {
"env": "staging",
"profile": "ground"
},
"rails": [
"card"
],
"default_funding_source_id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"budget": {
"budget_id": "bud_01KQZY6YME0S5P69GEZKAKCZDG",
"window": "month",
"limit": {
"amount": 180000,
"asset": "USD"
},
"spent": {
"amount": 121969,
"asset": "USD"
},
"reserved": {
"amount": 5378,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 127347,
"asset": "USD"
},
"held_count": 1,
"last_payment_at": "2026-11-22T23:00:11.374Z",
"policy_id": null,
"passport_kid": "acme-robotics-ground_transport-6b59cb",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
},
"children": [],
"rollup_spend_mtd": {
"amount": 127347,
"asset": "USD"
},
"rollup_held_count": 1,
"rollup_spend_today": {
"amount": 0,
"asset": "USD"
},
"rollup_budget": {
"limit": {
"amount": 180000,
"asset": "USD"
},
"spent": {
"amount": 121969,
"asset": "USD"
},
"reserved": {
"amount": 5378,
"asset": "USD"
}
},
"descendants": 0
}
],
"rollup_spend_mtd": {
"amount": 3146668,
"asset": "USD"
},
"rollup_held_count": 2,
"rollup_spend_today": {
"amount": 0,
"asset": "USD"
},
"rollup_budget": {
"limit": {
"amount": 4780000,
"asset": "USD"
},
"spent": {
"amount": 3103290,
"asset": "USD"
},
"reserved": {
"amount": 43378,
"asset": "USD"
}
},
"descendants": 3
},
{
"agent": {
"id": "agt_01KXX2ZXGEHCQDDER8JPXBWH4F",
"object": "agent",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-07-19T11:43:11.374Z",
"name": "Invoice payer",
"purpose": "Pays approved contractor invoices by bank transfer",
"status": "active",
"actor_kind": "unattended",
"parent_agent_id": null,
"tree_root_id": "agt_01KXX2ZXGEHCQDDER8JPXBWH4F",
"depth": 0,
"children_count": 0,
"path": [],
"team": {
"id": "team_01K84NXBMEZ26BQK7002WHPVTB",
"name": "Finance"
},
"owner": {
"id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
"name": "Elena Petrova"
},
"labels": {
"env": "production",
"profile": "invoices"
},
"rails": [
"bank"
],
"default_funding_source_id": "fs_01KRCT6HME84HK143D3HYX1057",
"budget": {
"budget_id": "bud_01KQZY6YME1DHRD5PGCAAGD0SJ",
"window": "month",
"limit": {
"amount": 5000000,
"asset": "USD"
},
"spent": {
"amount": 2624982,
"asset": "USD"
},
"reserved": {
"amount": 407619,
"asset": "USD"
}
},
"spend_today": {
"amount": 0,
"asset": "USD"
},
"spend_mtd": {
"amount": 3032601,
"asset": "USD"
},
"held_count": 0,
"last_payment_at": "2026-11-22T19:32:32.457Z",
"policy_id": "pol_01KZFD5SME3BGSWC6JWES5MK4F",
"passport_kid": "acme-robotics-invoice_payer-600621",
"source": "console",
"oauth_app": null,
"frozen_at": null,
"frozen_by": null
},
"children": [],
"rollup_spend_mtd": {
"amount": 3032601,
"asset": "USD"
},
"rollup_held_count": 0,
"rollup_spend_today": {
"amount": 0,
"asset": "USD"
},
"rollup_budget": {
"limit": {
"amount": 5000000,
"asset": "USD"
},
"spent": {
"amount": 2624982,
"asset": "USD"
},
"reserved": {
"amount": 407619,
"asset": "USD"
}
},
"descendants": 0
}
],
"has_more": false,
"next_cursor": null,
"total": 15
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Freeze an agent#
/v2/agents/{id}/freezeFreeze the agent and everything under it on every rail. Returns the freeze with per-connector progress and measured stop times.
- idIdrequired
A prefixed ID from this org.
- reasonstring
- idId
- object"freeze"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- scopeScope
Scope: 3 fields
- kindScopeKind
"team""org""agent""credential""tree""funding_source" - idId
- namestring
- actionstring enum
"freeze""unfreeze" - statusstring enum
"failed""in_progress""done""partial" - enforced_in_ndstill_atTimestamp
Inside ndStill the freeze is enforced at once (< 1 s); connectors follow.
- requested_byActor
Who did something.
One of 4 shapes
- kind"user"
- idId
- namestring
- kind"agent"
- idId
- namestring
- kind"system"
- idIdoptional
- namestring
- kind"api_key"
- idId
- namestring
- reasonstring | null
- stepsFreezeStep[]
FreezeStep: 11 fields
- connectionRef
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- providerstring
- actionstring
"Freeze 4 cards", "Lock Ramp cards", "Revoke API key", "Pause API key", "Stop routing".
- done_labelstring
Past tense once done: "frozen", "locked", "key revoked", "key paused".
- reversibleboolean
- notestring | nulloptional
Plain words when stopping or resuming needs explaining ("Stopping deletes the key; …").
- statusFreezeStepStatus
"pending""failed""in_progress""done""not_applicable" - started_atTimestamp | null
- confirmed_atTimestamp | null
- msnumber | null
confirmed_at − started_at: the measured stop time for this connector.
- errorstring | nulloptional
- completed_atTimestamp | null
- reverses_freeze_idId | null
For an unfreeze: the freeze it reverses.
- agents_affectednumber
Agents affected.
- 400invalid_request
A field is missing or invalid; fields names each one.
- 400step_up_required
A person must confirm with a passkey first, when the org requires it.
- 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.
- 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/agents/agt_01KW0P2WME52Y6RB8NQX9XBJ35/freeze" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"reason": "Checking the kill switch from the docs"
}'{
"id": "frz_01M82XPRQCY9DYWQVM9BK8EE7X",
"object": "freeze",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.516Z",
"scope": {
"kind": "agent",
"id": "agt_01KW0P2WME52Y6RB8NQX9XBJ35",
"name": "Ad buyer"
},
"action": "freeze",
"status": "in_progress",
"enforced_in_ndstill_at": "2026-11-23T00:43:13.636Z",
"requested_by": {
"kind": "user",
"id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
"name": "Dana Whitfield"
},
"reason": "Checking the kill switch from the docs",
"steps": [
{
"connection": {
"id": "con_01KQ667RMEPRF87EQEW9XS3VQE",
"name": "Ramp"
},
"provider": "ramp",
"action": "Lock Ramp cards",
"done_label": "locked",
"reversible": true,
"note": null,
"error": null,
"status": "in_progress",
"started_at": "2026-11-23T00:43:13.576Z",
"confirmed_at": null,
"ms": null
}
],
"completed_at": null,
"reverses_freeze_id": null,
"agents_affected": 1
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Set an agent's funding access#
/v2/agents/{id}/funding-access- idIdrequired
A prefixed ID from this org.
- sourcesobject[]required
2 fields
- funding_source_idIdrequired
- limits_overrideobject | null
2 fields
- per_paymentMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- monthlyMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- default_funding_source_idIdrequired
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- object"funding_access"
- agent_idId
- funding_source_idId
- funding_sourceobject
4 fields
- idId
- namestring
- kindstring
- control_levelstring enum
null"authorize""issue""observe_stop"
- is_defaultboolean
- limits_overrideobject | null
2 fields
- per_paymentMoneyoptional
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- monthlyMoneyoptional
An amount: integer minor units + asset.
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.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X PUT "https://api.ndstill.com/v2/agents/agt_01KYW6M8REDTGCTQ2ZK0CMDADJ/funding-access" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Content-Type: application/json" \
-d '{
"sources": [
{
"funding_source_id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E"
}
],
"default_funding_source_id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E"
}'{
"object": "list",
"data": [
{
"object": "funding_access",
"agent_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"funding_source_id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"funding_source": {
"id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"name": "Agent spend (ndStill account)",
"kind": "ndstill_account",
"control_level": "authorize"
},
"is_default": true,
"limits_override": null
}
],
"has_more": false,
"next_cursor": null,
"total": 1
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Rotate an agent's key#
/v2/agents/{id}/keys/rotate- idIdrequired
A prefixed ID from this org.
- idId
- object"agent_key"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- agent_idId
- kidstring
- alg"ed25519"
- custodystring enum
"customer""ndstill_kms" - statusstring enum
"active""revoked""rotating" - public_jwkobject
4 fields
- kty"OKP"
- crv"Ed25519"
- xstring
- kidstring
- rotated_atTimestamp | null
- last_used_atTimestamp | null
- 400step_up_required
A person must confirm with a passkey first, when the org requires it.
- 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.
- 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/agents/agt_01KYW6M8REDTGCTQ2ZK0CMDADJ/keys/rotate" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)"{
"id": "akey_01M82XPRQGMG89QEPR7GN8X492",
"object": "agent_key",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.520Z",
"agent_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"kid": "acme-robotics-cloud_cost_guard-c255b9",
"alg": "ed25519",
"custody": "ndstill_kms",
"status": "active",
"public_jwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "1U8RX_hFfp5xOE8Fd17RbQiFwlbxbYcFwR4RlS1FtQI",
"kid": "acme-robotics-cloud_cost_guard-c255b9"
},
"rotated_at": null,
"last_used_at": null
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retire an agent#
/v2/agents/{id}/retire- idIdrequired
A prefixed ID from this org.
The same Agent object as List agents.
- 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.
- 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/agents/agt_01KYW6M8REDTGCTQ2ZK0CMDADJ/retire" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)"Runs against the in-browser mock with a test key. Nothing leaves your browser.
Unfreeze an agent#
/v2/agents/{id}/unfreezeReverse an agent freeze where each rail allows it. Writes evidence; never silent.
- idIdrequired
A prefixed ID from this org.
- reasonstring
The same Freeze object as Freeze an agent.
- 400invalid_request
A field is missing or invalid; fields names each one.
- 400step_up_required
A person must confirm with a passkey first, when the org requires it.
- 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.
- 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/agents/agt_01KW0P2WME52Y6RB8NQX9XBJ35/unfreeze" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "frz_01M82XPRQEHATJ5YH518ZY4Q19",
"object": "freeze",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.518Z",
"scope": {
"kind": "agent",
"id": "agt_01KW0P2WME52Y6RB8NQX9XBJ35",
"name": "Ad buyer"
},
"action": "unfreeze",
"status": "in_progress",
"enforced_in_ndstill_at": "2026-11-23T00:43:13.638Z",
"requested_by": {
"kind": "user",
"id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
"name": "Dana Whitfield"
},
"reason": null,
"steps": [
{
"connection": {
"id": "con_01KQ667RMEPRF87EQEW9XS3VQE",
"name": "Ramp"
},
"provider": "ramp",
"action": "Unlock Ramp cards",
"done_label": "unlocked",
"reversible": true,
"note": null,
"error": null,
"status": "in_progress",
"started_at": "2026-11-23T00:43:13.578Z",
"confirmed_at": null,
"ms": null
}
],
"completed_at": null,
"reverses_freeze_id": "frz_01M82XPRQCY9DYWQVM9BK8EE7X",
"agents_affected": 1
}Runs against the in-browser mock with a test key. Nothing leaves your browser.