Quickstart
The Payman SDK makes it ridiculously easy to automate financial workflows with AI agents. Get started in 3 steps:- TypeScript SDK
- Python SDK
That’s it — no API orchestration, no complex setup. The .ask() method handles everything.
What Payman SDK Does
The Payman SDK lets you:- Authenticate using client credentials, or authorization code.
- Automate payments, send money, manage payees, and more
- Use
.ask()to issue natural language instructions - Attach metadata, stream real-time updates, and manage sessions
Installation
- TypeScript SDK
- Python SDK
Environment Setup
Before using the SDK, create a .env file and add:Initialize the SDK
The SDK supports 3 authentication methods:- TypeScript SDK
- Python SDK
- Using Client Credentials (recommended)
- Using OAuth Authorization Code (for OAuth flow):
- Using an Existing Access Token (when you already have a token):
Making a Request
- TypeScript SDK
- Python SDK
Adding Metadata
Attach contextual data to requests.- TypeScript SDK
- Python SDK
Session & Token Management
- Sessions persist across requests.
- Use newSession: true to force a reset.
- The SDK auto-refreshes tokens before expiry.
- You can manually check or get access tokens:
- TypeScript SDK
- Python SDK
Error Handling
The SDK uses Axios internally. Catch errors like this:- TypeScript SDK
- Python SDK
Need help? Reach out to [email protected]

