Skip to main content
The Agency API lets your own code do what you do in the Agency Dashboard: create customers, give them plans and add-ons, suspend and restore them, and manage your webhooks. It is included when your whitelabel plan includes the Partner API.

Create a key

1

Open the API page

In the Agency Dashboard, open API and click New key.
2

Name it

Give the key a Name that says where it is used, such as “CRM integration”, and click Create.
3

Copy it now

The key is shown once. Copy it into your secret manager straight away.
The API page with the base URL and two keys
The page lists each key by name, with the start of the key, when it was created and when it was last used. Revoke stops a key at once. Create one key per system, so you can revoke one without stopping the others.

Make a request

Use the Base URL shown on the API page. It is on your own domain once your domain is connected, for example https://app.youragency.com/api/agency/v1. Send the key as a Bearer token, or in the X-API-KEY header:
Every request acts for your agency only. A key reaches your own customers and plans, never another agency’s, and never your own workspace. Requests and responses are JSON. Each key may make 120 requests a minute.

Endpoints

Paths are relative to the base URL. {workspace} is a sub-account’s uuid.

Plans

Sub-accounts

A sub-account looks like this:
status is active or suspended. plan is null when the customer has no plan.

Plans and add-ons of a sub-account

Assigning a plan or an add-on here works like the dashboard: no payment goes through Stripe. See Manage customers.

Webhooks

The events and the delivery format are described in Integrations and webhooks.

Errors

Errors answer with a JSON message: