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

Approvals

Holds, routing, assurance levels, passkey signatures and what happens on approve.

When the pipeline holds a payment, a person decides. Approvals happen outside the agent's own conversation, on a person's device, and the strongest ones are signed with a passkey over exactly what's being approved. The agent never approves its own payments, and approving never skips the other checks.

Why a payment is held#

Any of these stages can hold a payment, and a held payment reports every reason at once:

Hold reasons by stage
StageTypical reasons
Mandate matchNo mandate, or the payment doesn't fit it (mandate_amount_mismatch, mandate_counterparty_mismatch)
Policy rulesOver the per-payment limit, a first payment to a new seller, outside the time window, a CEL condition
RiskUnusual pace (velocity), an unusual amount (spend_spike), a loop, off-hours, price drift, a stolen-key signal
BudgetThe payment leaves too little room (budget_nearly_exhausted)
Approval thresholdAbove the approval line, a seller that always needs approval, or a policy rule

The agent gets status held and an approval_id straight away. Over MCP it also gets progress notifications; with the SDK it can wait, or listen for the approval.decided webhook.

Routing#

The policy's approvals block decides who is asked, how and for how long:

YAML
approvals:
  above: { amount: 50000, asset: USD } # $500.00
  new_counterparty: true
  route:
    team_id: team_01JC…
    channels: [push, slack, email]
  assurance: passkey
  timeout_minutes: 240
  on_timeout: escalate
  • Channels. Mobile push with Face ID or a passkey, Slack and Teams messages, email, the console, and, where the client supports MCP elicitation, the agent's own person in their client.
  • Who. A team's approvers, named people, or the agent's owner. Delegates cover people who are away.
  • Timeout. After timeout_minutes, escalate asks the next approver; reject rejects it and tells the agent.

Assurance levels#

Assurance levels
`assurance`What it takesUse it for
anyAny approver, any channel (a Slack button counts)Small, routine purchases
passkeyA WebAuthn signature over the decision hashAnything material; the default above an amount
dualTwo different approvers, each with a passkeyLarge or unusual payments

With passkey and dual, the approver sees exactly what they're signing before the prompt: amount, agent, counterparty, funding source, the mandate (as a diff, when there is one) and every reason it was held. The signature goes into the evidence record. Approvals made through Slack or email are recorded with that lower assurance, and policy can require a passkey above an amount.

Approving is two steps#

In every ndStill surface, approve is deliberate: the first action shows an inline confirmation (amount, agent → recipient, source), and only the second confirms. Reject always asks for a reason, which the agent receives.

Over the API, people (never agents) call:

curl -X POST https://api.ndstill.com/v2/approvals/apr_01JD…/approve \
  -H "Authorization: Bearer $NDSTILL_USER_TOKEN" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{ "passkey_assertion": "<WebAuthn assertion over the decision hash>", "note": "Booked for the offsite" }'

The approvals:write scope is people-only: it's never granted to an agent's key or token.

What happens on approve#

  1. The pipeline runs again from the top. If the agent was frozen, a budget filled up or the policy changed while the payment waited, the new decision reflects that.
  2. A conditional transition (pending → approved, once) makes double execution impossible, even if two people approve at the same moment.
  3. Budgets are reserved and a scoped credential is minted. The agent's payment continues.
  4. The approval, with its signatures, is written to evidence.
  • Passed
  • Held here
  • Declined here
  • Not on this rail
  • Not reached
First decision: held at the approval threshold. After a passkey approval, the pipeline runs again and every stage passes.

Agents asking for approval#

An agent can ask for a decision before it tries to pay, for example to check a large purchase with its person. The MCP request_approval tool uses elicitation where the client supports it, so the question appears in the person's own client. The person still answers on their device; the agent only learns the outcome. See Approvals API and the MCP tools.