Skip to main content
Bitwage supports two authentication methods. Choose the one that fits your integration:

API Key authentication

API key authentication is the simplest way to get started. It is ideal for server-side integrations where your application acts on behalf of a single business account.

Get your API key

  1. Go to Settings > API in your Bitwage Business Account.
  2. Register a new Authentication App (if you haven’t already).
  3. Click Self Auth beside the “Authorized Authentication Apps” header.
  4. Click on your app — your API key is the Access Token field.

Use your API key

Include the API key in the Authorization header:
For write operations (POST, PATCH, DELETE) with API key auth, include an Idempotency-Key header to prevent duplicate processing. See the Idempotency guide for details.

OAuth 2.0 authentication

OAuth 2.0 uses the Authorization Code flow. This lets your application act on behalf of a Bitwage user after they grant permission.

Step 1: Configure your application

After creating your Authentication App, note your Client ID and Client Secret from the app widget under “My Authentication Apps”. Keep your Client Secret secure.

Step 2: Request an authorization code

Redirect the user to the Bitwage authorization endpoint:
After the user authorizes your app, they are redirected to:

Step 3: Exchange the code for an access token

Exchange the authorization code for an access token:
The response includes your access token along with the user and company IDs:

Step 4: Use the access token

Include the access token in subsequent requests:

OAuth scopes

When registering your app, select the scopes your integration needs: