DokuBrain

Quickstart

Process your first document with DokuBrain in under 5 minutes.

Quickstart

Get up and running with DokuBrain in three steps: create an account, get an API key, and process your first document.

Step 1: Create an account

Sign up at dokubrain.com/register. No credit card required — the free plan includes 50 documents per month.

Step 2: Get your API key

  1. Log in to the DokuBrain dashboard
  2. Go to Settings → Integrations
  3. Click Create API Key
  4. Copy the key — you won't be able to see it again

Step 3: Upload a document

Upload a document with a single API call. No project assignment is required — documents can be organized into projects later.

Upload a document
curl -X POST https://api.dokubrain.com/api/v1/ingestion \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@invoice.pdf"

The response includes the document ID and processing status:

Response
{
  "success": true,
  "data": {
    "id": "doc_abc123",
    "filename": "invoice.pdf",
    "status": "processing",
    "mimeType": "application/pdf",
    "createdAt": "2026-03-15T10:30:00Z"
  }
}

DokuBrain automatically parses, classifies, extracts fields, and generates embeddings for your document.

You can optionally assign the document to a project at upload time:

Upload to a specific project
curl -X POST https://api.dokubrain.com/api/v1/ingestion \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@invoice.pdf" \
  -F "project_id=proj_abc123"

Step 4: Extract structured fields

Once processing completes, extract structured data using a template:

Extract fields from a document
curl -X POST https://api.dokubrain.com/api/v1/documents/doc_abc123/extract \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "invoice"
  }'
Extracted fields
{
  "success": true,
  "data": {
    "vendor_name": "Acme Corp",
    "invoice_number": "INV-2026-0042",
    "invoice_date": "2026-03-10",
    "total_amount": 1250.00,
    "currency": "USD",
    "line_items": [
      {
        "description": "Consulting services",
        "quantity": 10,
        "unit_price": 125.00,
        "amount": 1250.00
      }
    ]
  }
}

What's next?

On this page