GET
/
v1
/
credits
Retrieve credit balance
curl --request GET \
  --url https://supertoneapi.com/v1/credits \
  --header 'Authorization: Bearer <token>' \
  --header 'x-sup-api-key: <x-sup-api-key>'
{
  "balance": 123
}
Since Supertone Play and API use the same credit system, credits charged in Play apply directly to the API as well.

Request Method

GET /v1/credits
x-sup-api-key: [YOUR_API_KEY]

Response Example

{
  "balance": 146
}
This means 146 credits are currently available.

Reference Information

  • Credits are charged on a per-second basis.
  • Credits are shared between Play and API.
  • Basic trial credits may be provided upon new registration.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-sup-api-key
string
required

The API key to authenticate and authorize access to the service. This key is required for every request.

Response

200
application/json

Credit balance of the user.

The response is of type object.