GET https://api.cryptohopper.com/v1/ai/credits

Returns your purchased AI credit balance and the free AI credits you have left for the current day.

The handler checks no OAuth scope. free_credits is 0 when your account has no subscription. When you never had an AI credit balance, one is created and ai_credits is 0.

Example request

curl "https://api.cryptohopper.com/v1/ai/credits" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Response

Example response (illustrative values)

{
    "data": {
        "ai_credits": "125.50",
        "free_credits": "3.00"
    }
}

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.