Credits API

This API allows you to retrieve the total number of credits available on your account, including credits linked to your subscription and additional credits.

Retrieve your credits

POST /api/account/credit

This endpoint allows you to obtain detailed information about your available credits.

Request Parameters

user_id
string
required

The unique user identifier (UUID) that you can retrieve from your Developer Space

Response

total
number

The total number of credits available on your account

subscription
number

The number of credits from your subscription

extra
number

The number of additional credits purchased separately

Request Example

curl --request POST \
--url 'https://iacrea.com/api/account/credit' \
--header x-api-key:API_KEY \
--header 'Content-Type: application/json' \
--data '{
  "user_id": "uuid"
}'

Response Example

{
  "total": 100,
  "subscription": 90,
  "extra": 10
}