Skip to main content
Use these endpoints when an integration needs to identify the active API key, check whether enough credits are available, show current pricing, or send a user to the configured payment checkout or a billing portal.

Endpoints

Full request and response schemas are in API reference.

Account identity

The response includes email, userId, and apiKeyId. Use it at startup to verify that an automation is running under the intended account.

Credits

The response includes availableBalance, upcoming renewal dates, top-up credit packages, and subscription renewal metadata.

Billing catalog

Use the catalog response to display current unit credits, allowed quantities, subscription pricing, top-up eligibility, and active subscription state. planQuantities lists every owned subscription quantity together with its provider; check enabled because maxed-out subscriptions remain in the list. planQuantity identifies the automatic target when the default provider or a sole eligible alternative can be increased. When no automatic target exists, its nullable fields distinguish a sole disabled owner from an unresolved owner. For eligible accounts, subscription.monthly.priceExperiment identifies the active price experiment, assigned variant, and effective unit price in cents. The field can be null or omitted when no experiment applies.

Checkout

For top-ups, pass "productType": "topup" and a positive quantity. Top-ups are available only while the account has an active subscription. Subscriptions also require cycle as monthly or yearly. Each new checkout uses the currently configured default payment provider. The response identifies it in provider and includes both checkoutId and the provider session identifier in sessionId.

Billing portal

When a manageable account is resolved, the returned provider portal URL is short-lived and should be opened by the account owner. With multiple manageable providers, the REST endpoint selects the most recently updated account. If no manageable account is available or resolution fails, it returns the Youka pricing URL instead.

What’s next

  • Projects - quote credits before creating a project
  • Exports - quote credits before rendering
  • Errors - handle authentication and billing errors