Skip to main content

Installation

First, install Monzoh using your preferred package manager:

Authentication Setup

Before using Monzoh, you’ll need to set up OAuth2 authentication with Monzo.

1. Create a Monzo Developer Account

  1. Visit the Monzo Developer Portal
  2. Sign up or log in with your Monzo account
  3. Create a new OAuth2 application

2. Configure Your Credentials

Create a .env file in your project root:

3. Initial Authentication

Run the authentication command to complete the OAuth2 flow:
This will:
  1. Open your browser to the Monzo authorization page
  2. Start a local server to handle the OAuth2 callback
  3. Save your access tokens securely
Access tokens are automatically saved to your system’s cache directory and will be reused for future requests.

Your First API Call

Now you’re ready to make your first API call:

Basic Operations

Get Account Balance

List Recent Transactions

Manage Pots

Error Handling

Monzoh provides specific exception types for different error conditions:

Mock Mode for Testing

You can use mock mode for testing without making real API calls:

Next Steps

Authentication Guide

Learn about OAuth2 setup and token management

API Reference

Explore all available endpoints and methods

Error Handling

Handle API errors gracefully in your application

Mock Mode

Test your application without real API calls
You’re now ready to build amazing applications with the Monzo API! Check out the API Reference for detailed documentation on all available methods.