DocuBeaver Help

How Credits Work

Our credit system is designed to give you flexibility and control over your API usage. Here’s how it works:

Monitoring Your Usage

You can monitor your credit usage in real-time through your dashboard. This allows you to keep track of your API calls and plan accordingly.

Exceeding Free Tier Limits

If you exceed your monthly credit limit on the Free tier, you’ll need to upgrade to the Pro tier to continue making API calls. We’ll notify you when you’re approaching your limit.

PDF Generation Via Forms

Every template you create will have a form associated with it. You can use this form to generate PDFs by submitting the form data. This is useful for generating invoices, contracts, reports, and any other PDF documents. This is a free feature and does not consume any credits.

Making API Calls

You can call the API in the following way. You’ll need to provide your API key in the Authorization header of your request. You can create API keys in your dashboard.

$ curl -X POST
  https://api.docubeaver.com/v1/generate-pdf \\ 
  -H "Authorization: Bearer <YOUR_API_KEY>" \\
  -H "Content-Type: application/json" \\
  -d '{
    "templateId": "67827e7ea2d5597db6b8b51e",
    "data": {
      "invoice.number": "INV-001",
   "invoice.date": "2023-01-01",
      "invoice.due_date": "2023-01-31",
      "invoice.total": "$100.00",
      "customer.name": "Acme Corp",
      "customer.address": "123 Main St, Anytown, USA",
      "customer.email": "info@acme.com",
      "customer.phone": "555-123-4567",      
    }
 "webhookUrl": "https://example.com/webhook?userId=123",
 "password": "ilovedocubeaver"
  }'

Response

The API will return the following response if the PDF generation is successful:

{
  "success": true,
  "message": "PDF generated successfully",
  "payload":{
    "taskId": "578b7e7ea2d5d97d36b6b51e",
  }
}

On failure, the API will return the following response:

{
  "success": false,
  "message": "Failed to generate PDF",
  "error": {
    "code": "INVALID_TEMPLATE",
    "message": "Template not found"
  }
}

API Rate Limits

We have set API rate limits to prevent abuse. If you exceed the rate limit, you’ll receive an error message.

Back to Pricing