Skip to main content
Use Python 3.10+ with Conto’s HTTP API. This starter requires no Python dependencies. It checks setup by default and executes only when you explicitly pass --execute in a CLI-created simulated sandbox.

Create a sandbox

Use Node.js 20.19+ for the setup CLI, then run the Python example from the same directory:
The CLI stores your agent key in .env.local. The Python script reads it without printing credentials. Your first run prints the agent name and scopes; it creates no payment.

Execute a simulated payment

The script creates one payment intent for 0.01, prints its request ID, and executes only if the policy decision is APPROVED. Success means Status: completed and Settlement mode: test. The test receipt records the workflow without transferring funds. Each invocation with --execute creates a new intent. After a timeout, inspect the original request instead of executing again:
Keep the request ID in your application’s durable job record before production execution. The example does not automatically retry writes or submit transactions with an external signer.

Next steps