Billing API

Use the Billing API to discover plans, inspect a team’s subscription, manage adjustable product quantities, change plans, and inspect wallet activity.

Base URL

https://app.resemble.ai/billing/api/v1

The Billing API has its own base URL. Do not prefix its routes with the main API’s /api/v2 path.

Authentication and access

The plan list and plan detail endpoints are public. Every team-specific endpoint requires a standard Resemble API key:

$export RESEMBLE_API_KEY="your_api_key"
$
$curl 'https://app.resemble.ai/billing/api/v1/subscription' \
> -H "Authorization: Bearer $RESEMBLE_API_KEY"

For protected requests:

  • The API key must belong to an administrator of the current team.
  • Customers on custom billing arrangements may not have access to team-specific Billing API endpoints.

Billing API keys are secrets intended for server-to-server integrations. Never put an API key in frontend JavaScript, a mobile app, or another environment where customers can extract it.

Resources

ResourceWhat you can do
PlansDiscover active self-serve plans, products, prices, and quantity rules.
SubscriptionInspect subscription items, adjust supported product quantities, and change plans.
WalletRead balances and transactions, export CSV, and configure auto-reload.

Money and quantities

Monetary fields ending in _cents are expressed in the smallest US-dollar unit. For example, 5000 cents is $50.00. Some responses also include a corresponding _dollars field for display.

Product quantities are absolute totals. For example, sending new_quantity: 5 sets the product’s subscription quantity to five; it does not add five to the existing quantity.

Common responses

StatusMeaning
400 Bad RequestThe request could not be parsed or a required parameter is malformed.
401 UnauthorizedThe Bearer token is missing or invalid.
402 Payment RequiredThe customer must complete additional payment authentication.
403 ForbiddenThe key owner is not a team administrator, the Billing API is unavailable for the customer’s billing arrangement, or the operation is unavailable for the subscription.
404 Not FoundThe plan or team-owned billing resource was not found.
422 Unprocessable EntityThe request violates a billing or quantity rule.

Customers on custom billing arrangements may receive:

1{
2 "error": "Billing API is not available for this team.",
3 "error_code": "billing_api_not_available"
4}

An invalid explicit Bearer token is authoritative: the API returns 401 Unauthorized rather than falling back to a browser session.

Next steps