Skip to main content

Step 1: Get Your API Key

  1. Go to Dashboard → API Keys
  2. Click “Create API Key”
  3. Copy your key (starts with diro_)
Keep your API key secret. Never expose it in client-side code.

Step 2: Create a Template

  1. Go to Dashboard → Reports
  2. Click “New Report” or use a preset
  3. Add blocks: headers, text, charts, tables
  4. Define fields (e.g., name, score, date)
  5. Save and copy the Template ID

Step 3: Generate a Document

Step 4: Download the PDF

The response includes a pdfUrl you can use directly, or use the download endpoint:

Next Steps

API Reference

Explore all available endpoints

Authentication

Learn about API authentication