Google Sheet Extension
PDF to Pass
Image to Pass
The Get Credits API allows you to retrieve the number of free and premium credits available to a user. The response reflects current credits availablity based on the user's API key.
All API requests must include your API key in the request headers:
"apikey": "your-api-key-here"
No query parameters are required.
curl -X GET 'https://api.addtowallet.co/api/getCredits' -H 'apikey: YOUR_API_KEY'
Upon successful request, the API returns:
{ "premiumCredits": 121, "freeCredits": 0 }The API may return the following error status codes:
| Status Code | Error | Description |
|---|---|---|
| 401 | Unauthorized | Missing or invalid API key |
| 500 | Internal Server Error | Unexpected server error. Please contact support |
Example error response:
{
"success": false
"error": "API Key not found",
}