Authentication
Agent credentials are hashed API keys with explicit scopes. Money-moving POSTs require Idempotency-Key.
Keys
- Agent:
bk_agent_live_…/bk_agent_test_… - Merchant (checkout-only legacy):
bk_live_… - Header:
X-Api-KeyorAuthorization: Bearer
Scopes
agent:pay— instant paymentsagent:balance:readagent:escrow:fund/agent:escrow:releaseagent:mandate/agent:readcheckout:write— create Buy with Bruce sessions
PIN vs policy
Interactive browser spends use a short-lived PIN grant. Agent keys are PIN-exempt and instead must satisfy the spend policy engine and session signer.
Idempotency
Required on POST /payments, escrow creates, x402 settle, and A2A payment-submitted. Replays with the same key and body return the stored response (KV + D1).