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 codeDescription
401 - UnauthorizedNo valid API key provided.
429 - Too Many RequestsToo many requests hit the API too quickly.
5xx - Server ErrorsSomething went wrong on our end.