# Mandate ## Docs - [REST API Endpoints for Agents](https://docs.usemandate.io/api/agents.md): Create and manage the AI agents that operate under your account. Each agent carries an identity that mandates and policy checks are scoped to. - [REST API Endpoints for the Audit Log](https://docs.usemandate.io/api/audit-log.md): Query the append-only audit log that records every significant action taken on agents, mandates, transactions, and API keys in your account. - [Authenticate with the Mandate API](https://docs.usemandate.io/api/authentication.md): Every request to the Mandate API requires a Bearer token. Learn how to create, use, and rotate API keys for sandbox and production environments. - [Mandate API Error Reference](https://docs.usemandate.io/api/errors.md): Reference for Mandate's HTTP status codes and machine-readable error codes — understand every failure mode so you can handle them precisely in your code. - [REST API Endpoints for Mandates](https://docs.usemandate.io/api/mandates.md): Create and manage spending mandates that define an agent's total budget, per-transaction limits, merchant allowlist, and expiration date. - [REST API Endpoints for Payments](https://docs.usemandate.io/api/payments.md): Generate sandbox payment proofs and verify them against a mandate to record a charge — the core of Mandate's payment authorization flow. - [Policy Evaluation and Agent Verification](https://docs.usemandate.io/api/policy.md): Evaluate proposed payments against your mandate's rules before funds move. Use POST /v1/verify-agent for read-only pre-flight checks without side effects. - [REST API Endpoints for Transactions](https://docs.usemandate.io/api/transactions.md): Query transaction records for every payment attempt across your agents — filter by agent, mandate, or status to track spend and debug denials. - [Agents: Registering Your AI Agent with Mandate](https://docs.usemandate.io/concepts/agents.md): Create and manage registered agent identities in Mandate so your AI systems can make payments on your behalf within defined spending policies. - [How Mandate Works: x402 Payment Flow](https://docs.usemandate.io/concepts/how-it-works.md): Understand the full x402 payment flow — from the initial 402 challenge to verified proof — and how Mandate sits between your agent and the seller. - [Mandates: Spending Policies for AI Agents](https://docs.usemandate.io/concepts/mandates.md): Define what your AI agent is allowed to spend, where it can spend it, and for how long — by attaching a mandate to a registered agent. - [Policy Engine: How Payments Are Approved](https://docs.usemandate.io/concepts/policy-engine.md): See how Mandate's policy engine evaluates every payment request against 9 sequential checks — and what reason code it returns when a check fails. - [Build an AI Agent That Pays for APIs](https://docs.usemandate.io/guides/agent-developer.md): Use the Mandate TypeScript SDK to make policy-checked, proof-signed API calls from your AI agent — with typed error handling for every denial reason. - [Protect Your API Endpoints with Mandate](https://docs.usemandate.io/guides/api-seller.md): Add Mandate payment-gating to any Hono or Express endpoint. Issue 402 challenges, verify proofs, and access paying agent context in five lines of code. - [Managing Agents and Mandates in the Dashboard](https://docs.usemandate.io/guides/dashboard.md): A tour of the Mandate web dashboard: register agents, create spending mandates, review transaction history, and generate API keys — no code required. - [Mandate: Trust Layer for AI Agent Payments](https://docs.usemandate.io/introduction.md): Mandate is the trust and policy enforcement layer for AI agent commerce — verifying agent identity and enforcing spending policy before any USDC moves. - [Get Started with Mandate](https://docs.usemandate.io/quickstart.md): Go from zero to a verified sandbox payment in five steps: create an account, install the SDK, register an agent, create a mandate, and call fetchWithPayment. - [Test Payments with the Mandate Sandbox](https://docs.usemandate.io/sandbox.md): Test end-to-end payment flows — agent registration, mandate enforcement, and proof verification — without spending real USDC on Base. - [Mandate Middleware for Hono and Express](https://docs.usemandate.io/sdk/middleware.md): Full reference for @mandate/middleware — add payment-gating to any Hono or Express route. The middleware issues 402 challenges and verifies proofs automatically. - [Mandate TypeScript SDK Reference](https://docs.usemandate.io/sdk/overview.md): Install @mandate/sdk to give your AI agent a single method — fetchWithPayment — that handles the full x402 payment flow automatically.