SDK Examples
Use these examples as starting points. For setup, start with Installation. For copy-paste operational snippets, use Recipes.One-call payment
Usepayments.pay() when the agent has an executable wallet and you want Conto to request policy
authorization and execute in one call.
Approval-aware payment
Userequest -> execute when your app needs to handle denied or review-required outcomes before
execution.
Agent tool helper
Most framework integrations wrap the same helper in an OpenAI, Anthropic, LangChain, or custom tool definition.Setup check
CallGET /api/sdk/setup on agent startup when you need a customer-facing summary of the agent,
available wallets, spending controls, and granted scopes.
More examples
Connecting agents
OpenAI, Anthropic, LangChain, and Python wiring
Recipes
Curl snippets for setup, payments, policies, x402, MPP, approvals, and monitoring
Payments API
Full payment method behavior and response shape
Webhooks
Receive approval and payment events