Overview
The Monzoh API reference provides comprehensive documentation for all classes, methods, and models in the Monzoh Python library. This section covers every aspect of the library’s API surface.Main Client
TheMonzoClient
is the primary entry point for interacting with the Monzo API:
Client Properties
Property | Type | Description |
---|---|---|
accounts | AccountsAPI | Access to accounts and balance operations |
transactions | TransactionsAPI | Transaction listing and management |
pots | PotsAPI | Savings pots operations |
attachments | AttachmentsAPI | File attachment management |
receipts | ReceiptsAPI | Receipt creation and management |
webhooks | WebhooksAPI | Webhook registration and management |
feed | FeedAPI | Custom feed item creation |
API Endpoints
Accounts & Balance
- List all accounts
- Get account balance information
- Access current account and savings account data
Transactions
- List transactions with filtering options
- Get individual transaction details
- Add notes and metadata to transactions
Pots (Savings)
- List all savings pots
- Deposit and withdraw from pots
- Create and manage pot goals
Attachments
- Upload files to transactions
- Manage image and document attachments
- Remove attachments from transactions
Receipts
- Add detailed receipt information to transactions
- Include itemized purchase details
- Manage receipt data and taxes
Webhooks
- Register webhook endpoints
- Manage webhook subscriptions
- Handle webhook events and callbacks
Feed Items
- Create custom feed entries
- Add rich content to account feeds
- Manage feed item styling and actions
Authentication
Monzoh handles OAuth2 authentication automatically:Error Handling
Monzoh provides specific exception types for different error conditions:Data Models
All API responses are returned as Pydantic models with full type safety:Core Models
Account
: Bank account informationBalance
: Account balance and spending dataTransaction
: Transaction details and metadataPot
: Savings pot informationAttachment
: File attachment dataReceipt
: Detailed receipt informationWebhook
: Webhook configuration and status
Authentication Models
OAuthToken
: OAuth2 token dataWhoAmI
: Authentication status information