DokuBrain
Guides

Reports

Generate automated reports from your document corpus.

Reports

DokuBrain can generate reports that aggregate and analyze data across your documents. Define report templates, schedule recurring runs, and export results.

Creating a report

Create a report
curl -X POST https://api.dokubrain.com/api/v1/reports \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Monthly Invoice Summary",
    "corpusId": "corp_abc123",
    "type": "summary",
    "config": {
      "documentType": "invoice",
      "groupBy": "vendor",
      "metrics": ["count", "total_amount", "average_amount"]
    }
  }'

Running a report

Execute a report
curl -X POST https://api.dokubrain.com/api/v1/reports/rpt_abc123/execute \
  -H "Authorization: Bearer YOUR_API_KEY"

Report types

TypeDescription
summaryAggregate metrics across documents
comparisonCompare document sets over time
complianceGovernance and compliance status
extractionExport extracted fields as structured data

Scheduling reports

Set up recurring report generation:

Schedule a weekly report
curl -X PATCH https://api.dokubrain.com/api/v1/reports/rpt_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "schedule": {
      "frequency": "weekly",
      "dayOfWeek": "monday",
      "time": "09:00",
      "timezone": "America/New_York"
    }
  }'

Export formats

Reports can be exported as JSON, CSV, PDF, or sent directly to integrations like Google Sheets.

On this page