Stophy

Credits

Return the current credit balance for the authenticated API key.

Return the current credit balance for the authenticated API key.

Authorization

bearerAuth
AuthorizationBearer <token>

API key from your dashboard. Prefix with Bearer in the Authorization header.

In: header

Response Body

application/json

application/json

GET
/v1/credits
curl -X GET "https://example.com/v1/credits"
{  "success": true,  "requestId": "string",  "cacheState": "hit | miss",  "creditsUsed": "number",  "creditsRemaining": "number",  "data": {    "credits": "number"  }}
{  "success": false,  "code": "UNAUTHORIZED",  "error": "string",  "details": null}