GET
/
api
/
v1
/
credits
curl --request GET \
  --url https://api.agenttoolkit.ai/api/v1/credits \
  --header 'Authorization: Bearer <token>'
{
  "total_credits": 123,
  "used_credits": 123,
  "remaining_credits": 123,
  "free_credits": 123,
  "purchased_credits": 0,
  "period": "<string>",
  "reset_date": "<string>",
  "days_until_reset": 123,
  "plan_tier": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Cookies

auth_token
string | null

Response

200
application/json
Successful Response

Schema for the credit usage response.

total_credits
integer
required
used_credits
integer
required
remaining_credits
integer
required
free_credits
integer
required
period
string
required
reset_date
string
required
days_until_reset
integer
required
purchased_credits
integer
default:0
plan_tier
string | null