Skip to main content
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

string
required
User session token. Format: Bearer <user_session_token>.
string
required
Must be set to application/json

Request body

number
required
Credit amount to purchase, in account currency. Must be greater than 0.
string
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.