Account API
Purchase Credits
Purchase credits to top up your account balance
POST
Purchase Credits
Purchase credits to top up your account balance. The transaction is charged to the saved payment method.This endpoint is part of the Account API and is authenticated with a user session token.
Endpoint
Request headers
User session token. Format:
Bearer <user_session_token>.Must be set to
application/jsonRequest body
Credit amount to purchase, in account currency. Must be greater than
0.Optional payment method ID. If omitted, the default payment method is charged.
Examples
Response
Error responses
402 — Payment Failed
Notes
- For automated, recurring top-ups, use Auto Topup with an environment token instead.