Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.usemandate.io/llms.txt

Use this file to discover all available pages before exploring further.

Mandate is the trust and authorization layer for autonomous agent commerce. When your AI agent encounters a paid API, Mandate verifies the agent’s identity, checks its spending policy, and either approves the payment or blocks it — in real time, before any USDC leaves the account.

Quick Start

Create your first agent and mandate in under 5 minutes.

How It Works

Understand the full x402 payment flow from challenge to proof.

Agent Developer SDK

Add the @mandate/sdk to your agent and handle 402 payments automatically.

API Seller Middleware

Protect your API endpoints with requireKyaPayment() in 5 lines.

What Mandate does

Every autonomous agent that makes purchases needs two things: an identity that sellers can trust, and a spending policy that its owner controls. Mandate provides both.
  • Agent registry — Register your AI agent and get a stable agent_id that sellers can verify
  • Mandates — Set per-transaction limits, total budgets, allowed merchants, and expiration dates
  • Policy engine — Every payment attempt runs through 9 real-time checks before approval
  • x402 support — Native support for the HTTP 402 payment protocol with USDC on Base
  • Audit log — Tamper-evident record of every policy decision and transaction

Core Concepts

Learn about agents, mandates, and the policy engine.

API Reference

Full reference for all REST endpoints.

Sandbox Testing

Test your integration end-to-end without real payments.

Dashboard Guide

Manage agents, mandates, and transactions from the UI.

Who uses Mandate

You’re building an AI agent that needs to call paid APIs — data providers, compute services, tools that charge per request. Install @mandate/sdk, create an agent, attach a mandate, and your agent handles payments automatically without storing credentials.Start here: Agent Developer Guide