ToolPause
Docs Product Open Inbox

API reference

Contract for agents and gateways. Prefer the SDK when you can; use these routes for custom clients.

Base URL: your ToolPause server (for example http://127.0.0.1:8000).
Auth: Authorization: Bearer <token> or X-API-Key: <key> when required.


Lifecycle

POST /v1/evaluate
        │
        ├─ policy.decision = allow
        │     → execute tool
        │     → (optional) POST /v1/approvals/{id}/complete
        │
        ├─ policy.decision = deny
        │     → stop
        │
        └─ policy.decision = require_approval
              → poll GET /v1/approvals/{id}  (or wait on SDK)
              → human: POST .../decide
              → agent: POST .../complete  with expected_fingerprint

Evaluate

POST /v1/evaluate

{
  "tool_name": "refund.create",
  "arguments": { "order": "NW-8812", "amount": 189 },
  "risk": "high",
  "tags": ["payments"],
  "agent_id": "support-bot",
  "session_id": "optional",
  "project_id": "optional"
}
Field Meaning
policy.decision allow | require_approval | deny
policy.reason Why
approval Present when paused — includes id, bound_fingerprint, status

Approvals

Method Path Purpose
GET /v1/approvals?pending_only=true Inbox list
GET /v1/approvals/{id} Status / fingerprint
POST /v1/approvals/{id}/decide Approve / deny / respond
POST /v1/approvals/{id}/complete Mark executed (bound check)
POST /v1/approvals/{id}/extend Add timeout seconds
POST /v1/approvals/{id}/assign Route to assignee
POST /v1/approvals/batch-decide Multi-select decide

Decide

{
  "approved": true,
  "note": "ok under policy",
  "expected_fingerprint": "<from evaluate>",
  "edited_arguments": null
}

Complete

{
  "success": true,
  "result_summary": "Refunded $189",
  "expected_fingerprint": "<must match approval.bound_fingerprint>"
}

Mismatch → 409. Do not execute if decide was deny / timeout / respond.


Policy & MCP

Method Path Purpose
GET/PUT /v1/policy Risk map, lists, overrides, routing
POST /v1/policy/dry-run What-if without creating an approval
GET/PUT /v1/mcp/config MCP catalog / gate
POST /v1/mcp/tools/call MCP-style gated call

Audit & controls

Method Path Purpose
GET /v1/audit Filterable trail
GET /v1/audit/export?format=json\|csv Export
GET/POST /v1/kill-switch Block agent / session
GET /v1/notify/channels Channel status
PUT /v1/notify/config Save channel credentials (admin)
POST /v1/notify/digest Pending summary fan-out

Auth helpers

Method Path Purpose
GET /v1/auth/info Auth required? SSO available?
POST /v1/auth/signup Create user + workspace
POST /v1/auth/login Session token
GET /v1/auth/me Current user + API key meta
POST /v1/auth/rotate-api-key New personal agent key

Fingerprint rules

  1. Evaluate stores bound_fingerprint over tool_name + canonical args.
  2. Decide may update the bind when args are edited.
  3. Complete must send expected_fingerprint matching the approval.
  4. A different call (for example a different amount) gets a different fingerprint — approvals are not reusable.

See security.md.

ToolPause docs Marketing · Inbox