Quota
GET https://api.visualpdf.com/v1/quota
Retrieves the amount of credits you currently have for your subscription plan and prepaid packages.
Example
Request (NodeJS)
// Getting the amount of credits remaining on my account
const quotaResponse = await fetch(
'https://api.visualpdf.com/v1/quota',
{
method: 'GET',
headers: { Authorization: `Bearer ${my_API_key}` },
},
);
Response
{
subscription: 882,
packages: 0,
}
Errors
HTTP code | Description |
---|---|
401 - Unauthorized | No valid API key provided. |
429 - Too Many Requests | Too many requests hit the API too quickly. |
5xx - Server Errors | Something went wrong on our end. |