Credits
Check your remaining credits and usage
Credits
GET /api/v1/credits
Check your remaining API credits and usage statistics.
This endpoint is free and doesn't consume any credits.
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer or_live_xxxxx | Yes |
Example Request
curl "https://api.tessradar.com/api/v1/credits" \
-H "Authorization: Bearer or_live_xxxxx"Example Response
{
"success": true,
"data": {
"credits": {
"remaining": 4850,
"total": 5000,
"used": 150
},
"plan": {
"name": "Starter",
"rateLimit": "10 req/sec"
},
"usage": {
"today": 45,
"thisMonth": 150
}
}
}Response Fields
Credits Object
| Field | Type | Description |
|---|---|---|
remaining | number | Credits available to use |
total | number | Total credits in your plan |
used | number | Credits used this billing cycle |
Plan Object
| Field | Type | Description |
|---|---|---|
name | string | Your plan name (Free, Starter, Pro, Enterprise) |
rateLimit | string | Your rate limit |
Usage Object
| Field | Type | Description |
|---|---|---|
today | number | Credits used today |
thisMonth | number | Credits used this month |