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

Freezes API

The kill switch: freeze an agent, tree, team, org, credential or funding source on every rail.

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 freeze#

POST/v2/freezes

Freeze a scope (agent, tree, team, org, credential or funding source). Org-wide freezes need step-up confirmation.

Request body FreezeCreate
  • scopeobjectrequired
    2 fields
    • kindScopeKindrequired
      "team""org""agent""credential""tree""funding_source"
    • idIdrequired
  • actionstring enum
    "freeze""unfreeze"
  • reasonstring
  • confirm_textstring

    Required for org-wide scope: the org slug typed by the person.

  • step_upstring

    Step-up assertion for org-wide (demo: any string).

Response Freeze
  • 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.

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

  • 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/freezes" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "kind": "agent",
      "id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ"
    },
    "reason": "Checking the kill switch from the docs"
  }'
Response 200
{
  "id": "frz_01M82XPRNPAKKJYPV8A58YQEYP",
  "object": "freeze",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-11-23T00:43:13.462Z",
  "scope": {
    "kind": "agent",
    "id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
    "name": "Cloud cost guard"
  },
  "action": "freeze",
  "status": "in_progress",
  "enforced_in_ndstill_at": "2026-11-23T00:43:13.582Z",
  "requested_by": {
    "kind": "user",
    "id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
    "name": "Dana Whitfield"
  },
  "reason": "Checking the kill switch from the docs",
  "steps": [
    {
      "connection": {
        "id": "con_01KMRYA6ME05ZXF7TQQQSF14VK",
        "name": "ndStill card program"
      },
      "provider": "ndstill",
      "action": "Freeze 1 card",
      "done_label": "frozen",
      "reversible": true,
      "note": null,
      "error": null,
      "status": "in_progress",
      "started_at": "2026-11-23T00:43:13.522Z",
      "confirmed_at": null,
      "ms": null
    },
    {
      "connection": {
        "id": "con_01KZMHZ7MEQ9KST6799SP0GF4G",
        "name": "AWS billing"
      },
      "provider": "aws",
      "action": "Detach the agent's IAM role",
      "done_label": "access cut",
      "reversible": false,
      "note": null,
      "error": null,
      "status": "in_progress",
      "started_at": "2026-11-23T00:43:13.522Z",
      "confirmed_at": null,
      "ms": null
    }
  ],
  "completed_at": null,
  "reverses_freeze_id": null,
  "agents_affected": 1
}
Try it

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

List freezes#

GET/v2/freezes
Query parameters all optional
  • statusstring enum
    "failed""in_progress""done""partial"
  • scope_kindstring enum
    "team""org""agent""credential""tree""funding_source"
  • activeboolean
  • 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 Freeze

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 Freeze object as Create a freeze.

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/freezes?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "object": "list",
  "data": [
    {
      "id": "frz_01M7XRX8ME12A0YVDP1A8FDSPE",
      "object": "freeze",
      "org_id": "org_A99F918124609C9DAAACB209D8",
      "created_at": "2026-11-21T00:43:11.374Z",
      "scope": {
        "kind": "agent",
        "id": "agt_01KZT4G44EFC85Y12AEE7YAPF3",
        "name": "Eval runner"
      },
      "action": "freeze",
      "status": "done",
      "enforced_in_ndstill_at": "2026-11-21T00:43:11.494Z",
      "requested_by": {
        "kind": "user",
        "id": "usr_01K8M49NMEY9DX1Y08XB7WT6RT",
        "name": "Marcus Lee"
      },
      "reason": "Unusual spend pattern",
      "steps": [
        {
          "connection": {
            "id": "con_01KRCT6HMETPT7ANTR7YQXBQTJ",
            "name": "Mercury"
          },
          "provider": "mercury",
          "action": "Cancel pending payment orders",
          "done_label": "orders canceled",
          "reversible": true,
          "note": null,
          "error": null,
          "status": "done",
          "started_at": "2026-11-21T00:43:11.434Z",
          "confirmed_at": "2026-11-21T00:43:14.380Z",
          "ms": 3006
        },
        {
          "connection": {
            "id": "con_01KTT243MEGREAESCG9HKZZ1R3",
            "name": "OpenAI"
          },
          "provider": "openai",
          "action": "Delete API key",
          "done_label": "key deleted",
          "reversible": false,
          "note": "Stopping deletes the key; resuming means issuing a new one, which OpenAI shows once.",
          "error": null,
          "status": "done",
          "started_at": "2026-11-21T00:43:11.434Z",
          "confirmed_at": "2026-11-21T00:43:13.920Z",
          "ms": 2546
        },
        {
          "connection": {
            "id": "con_01KW0P2WMEQNDEC441S2F7SYQZ",
            "name": "Anthropic"
          },
          "provider": "anthropic",
          "action": "Pause API key",
          "done_label": "key paused",
          "reversible": true,
          "note": null,
          "error": null,
          "status": "done",
          "started_at": "2026-11-21T00:43:11.434Z",
          "confirmed_at": "2026-11-21T00:43:13.642Z",
          "ms": 2268
        }
      ],
      "completed_at": "2026-11-21T00:43:14.380Z",
      "reverses_freeze_id": null,
      "agents_affected": 1
    },
    {
      "id": "frz_01M7XRX8MEREXQ9BKNYB3S64YH",
      "object": "freeze",
      "org_id": "org_A99F918124609C9DAAACB209D8",
      "created_at": "2026-11-21T00:43:11.374Z",
      "scope": {
        "kind": "agent",
        "id": "agt_01KWY9N54EWVW2B9R5VCDZ7753",
        "name": "Social scheduler"
      },
      "action": "freeze",
      "status": "done",
      "enforced_in_ndstill_at": "2026-11-21T00:43:11.494Z",
      "requested_by": {
        "kind": "user",
        "id": "usr_01K8M49NMEY9DX1Y08XB7WT6RT",
        "name": "Marcus Lee"
      },
      "reason": "Unusual spend pattern",
      "steps": [
        {
          "connection": {
            "id": "con_01KQ667RMEPRF87EQEW9XS3VQE",
            "name": "Ramp"
          },
          "provider": "ramp",
          "action": "Lock Ramp cards",
          "done_label": "locked",
          "reversible": true,
          "note": null,
          "error": null,
          "status": "done",
          "started_at": "2026-11-21T00:43:11.434Z",
          "confirmed_at": "2026-11-21T00:43:15.715Z",
          "ms": 4341
        },
        {
          "connection": {
            "id": "con_01KSKE5AMEDKHDMEJSN0JM9SFZ",
            "name": "OpenAI"
          },
          "provider": "openai",
          "action": "Stop routing",
          "done_label": "routing stopped",
          "reversible": true,
          "note": null,
          "error": null,
          "status": "done",
          "started_at": "2026-11-21T00:43:11.434Z",
          "confirmed_at": "2026-11-21T00:43:11.697Z",
          "ms": 323
        }
      ],
      "completed_at": "2026-11-21T00:43:15.715Z",
      "reverses_freeze_id": null,
      "agents_affected": 1
    }
  ],
  "has_more": true,
  "next_cursor": "Mg==",
  "total": 4
}
Try it

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

Retrieve a freeze#

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

    A prefixed ID from this org.

Response Freeze

The same Freeze object as Create a freeze.

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/freezes/frz_01M7XRX8ME12A0YVDP1A8FDSPE" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "id": "frz_01M7XRX8ME12A0YVDP1A8FDSPE",
  "object": "freeze",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-11-21T00:43:11.374Z",
  "scope": {
    "kind": "agent",
    "id": "agt_01KZT4G44EFC85Y12AEE7YAPF3",
    "name": "Eval runner"
  },
  "action": "freeze",
  "status": "done",
  "enforced_in_ndstill_at": "2026-11-21T00:43:11.494Z",
  "requested_by": {
    "kind": "user",
    "id": "usr_01K8M49NMEY9DX1Y08XB7WT6RT",
    "name": "Marcus Lee"
  },
  "reason": "Unusual spend pattern",
  "steps": [
    {
      "connection": {
        "id": "con_01KRCT6HMETPT7ANTR7YQXBQTJ",
        "name": "Mercury"
      },
      "provider": "mercury",
      "action": "Cancel pending payment orders",
      "done_label": "orders canceled",
      "reversible": true,
      "note": null,
      "error": null,
      "status": "done",
      "started_at": "2026-11-21T00:43:11.434Z",
      "confirmed_at": "2026-11-21T00:43:14.380Z",
      "ms": 3006
    },
    {
      "connection": {
        "id": "con_01KTT243MEGREAESCG9HKZZ1R3",
        "name": "OpenAI"
      },
      "provider": "openai",
      "action": "Delete API key",
      "done_label": "key deleted",
      "reversible": false,
      "note": "Stopping deletes the key; resuming means issuing a new one, which OpenAI shows once.",
      "error": null,
      "status": "done",
      "started_at": "2026-11-21T00:43:11.434Z",
      "confirmed_at": "2026-11-21T00:43:13.920Z",
      "ms": 2546
    },
    {
      "connection": {
        "id": "con_01KW0P2WMEQNDEC441S2F7SYQZ",
        "name": "Anthropic"
      },
      "provider": "anthropic",
      "action": "Pause API key",
      "done_label": "key paused",
      "reversible": true,
      "note": null,
      "error": null,
      "status": "done",
      "started_at": "2026-11-21T00:43:11.434Z",
      "confirmed_at": "2026-11-21T00:43:13.642Z",
      "ms": 2268
    }
  ],
  "completed_at": "2026-11-21T00:43:14.380Z",
  "reverses_freeze_id": null,
  "agents_affected": 1
}
Try it

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

Lift a freeze#

POST/v2/freezes/{id}/unfreeze
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Request body JSON
  • reasonstring
  • confirm_textstring
  • step_upstring
Response Freeze

The same Freeze object as Create a freeze.

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

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/freezes/frz_01M82XPRNPAKKJYPV8A58YQEYP/unfreeze" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
Response 200
{
  "id": "frz_01M82XPRQA2820XE7YYCHEJA72",
  "object": "freeze",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-11-23T00:43:13.514Z",
  "scope": {
    "kind": "agent",
    "id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
    "name": "Cloud cost guard"
  },
  "action": "unfreeze",
  "status": "in_progress",
  "enforced_in_ndstill_at": "2026-11-23T00:43:13.634Z",
  "requested_by": {
    "kind": "user",
    "id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
    "name": "Dana Whitfield"
  },
  "reason": null,
  "steps": [
    {
      "connection": {
        "id": "con_01KMRYA6ME05ZXF7TQQQSF14VK",
        "name": "ndStill card program"
      },
      "provider": "ndstill",
      "action": "Unfreeze 1 card",
      "done_label": "unfrozen",
      "reversible": true,
      "note": null,
      "error": null,
      "status": "in_progress",
      "started_at": "2026-11-23T00:43:13.574Z",
      "confirmed_at": null,
      "ms": null
    },
    {
      "connection": {
        "id": "con_01KZMHZ7MEQ9KST6799SP0GF4G",
        "name": "AWS billing"
      },
      "provider": "aws",
      "action": "Re-attach requires a new role",
      "done_label": "new role needed",
      "reversible": false,
      "note": null,
      "error": "access cut can't be undone. Re-attach requires a new role to restore access.",
      "status": "not_applicable",
      "started_at": null,
      "confirmed_at": null,
      "ms": null
    }
  ],
  "completed_at": null,
  "reverses_freeze_id": "frz_01M82XPRNPAKKJYPV8A58YQEYP",
  "agents_affected": 1
}
Try it

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

Preview a freeze#

POST/v2/freezes/preview

What a freeze would touch, per connector, before you run it.

Request body FreezeCreate
  • scopeobjectrequired
    2 fields
    • kindScopeKindrequired
      "team""org""agent""credential""tree""funding_source"
    • idIdrequired
  • actionstring enum
    "freeze""unfreeze"
  • reasonstring
  • confirm_textstring

    Required for org-wide scope: the org slug typed by the person.

  • step_upstring

    Step-up assertion for org-wide (demo: any string).

Response FreezePreview
  • object"freeze_preview"
  • scopeScope
    Scope: 3 fields
    • kindScopeKind
      "team""org""agent""credential""tree""funding_source"
    • idId
    • namestring
  • agents_affectednumber
  • credentials_affectednumber
  • stepsobject[]
    7 fields
    • connectionRef

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

      Ref: 2 fields
      • idId
      • namestring
    • errorstring | nulloptional
    • providerstring
    • notestring | nulloptional

      Plain words when stopping or resuming needs explaining ("Stopping deletes the key; …").

    • 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
  • irreversiblestring[]
Errors
  • 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.

  • 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/freezes/preview" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "kind": "agent",
      "id": "agt_01M0BGNZCE0WXNVXXAV8BF3DEZ"
    },
    "reason": "Preview from the docs"
  }'
Response 200
{
  "object": "freeze_preview",
  "scope": {
    "kind": "agent",
    "id": "agt_01M0BGNZCE0WXNVXXAV8BF3DEZ",
    "name": "Code reviewer"
  },
  "agents_affected": 1,
  "credentials_affected": 3,
  "steps": [
    {
      "connection": {
        "id": "con_01KMRYA6ME05ZXF7TQQQSF14VK",
        "name": "ndStill card program"
      },
      "provider": "ndstill",
      "action": "Freeze 3 cards",
      "done_label": "frozen",
      "reversible": true,
      "note": null,
      "error": null
    },
    {
      "connection": {
        "id": "con_01KSKE5AMEDKHDMEJSN0JM9SFZ",
        "name": "OpenAI"
      },
      "provider": "openai",
      "action": "Stop routing",
      "done_label": "routing stopped",
      "reversible": true,
      "note": null,
      "error": null
    },
    {
      "connection": {
        "id": "con_01KW0P2WMEQNDEC441S2F7SYQZ",
        "name": "Anthropic"
      },
      "provider": "anthropic",
      "action": "Pause API key",
      "done_label": "key paused",
      "reversible": true,
      "note": null,
      "error": null
    }
  ],
  "irreversible": []
}
Try it

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