OpenPermit Builder Docs
Integrate mandate-bound machine payments into buyer agents, paid APIs, and operational systems.
OpenPermit lets AI agents pay automatically, but only inside approved, auditable, revocable mandates.
These docs are for builders integrating OpenPermit into products: buyer agents that need to call paid resources, sellers that need to charge machines over HTTP, and platform teams that need receipts, audit trails, webhooks, and policy controls.
Buyer agents
Wrap outbound fetch calls, handle 402 challenges, authorize payments against mandates, and retry with payment credentials.
Sellers
Protect paid API routes with Fetch or Hono middleware, return payment challenges, and verify paid retries.
API reference
Browse generated OpenPermit API reference pages from the current OpenAPI document.
Integration paths
Configure createOpenPermitClient with your API base URL, service-account key, and optional organization context.
Use wrapFetch for buyer agents, seller middleware for paid resources, or direct API calls for control-plane workflows.
Use receipts, audit events, and webhooks to connect payment activity back to policy decisions and delivery status.
GridPlus is one supported authenticator and source reference. OpenPermit is the standalone platform identity.