DokuBrain
Guides

Integrations

Connect DokuBrain to Google Sheets, QuickBooks, Xero, and your own systems.

Integrations

DokuBrain integrates with external systems to sync extracted data, trigger workflows, and receive documents.

Google Sheets

Export extracted document data directly to Google Sheets:

  1. Go to Settings → Integrations → Google Sheets
  2. Click Connect Google Account and authorize access
  3. Select a spreadsheet or create a new one
  4. Map extracted fields to sheet columns

Once connected, you can configure workflows to auto-export to Sheets after extraction.

Webhooks

Receive real-time notifications when events occur in DokuBrain:

Create a webhook
curl -X POST https://api.dokubrain.com/api/v1/webhooks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-app.com/webhooks/dokubrain",
    "events": [
      "document.processed",
      "document.classified",
      "workflow.completed"
    ],
    "secret": "whsec_your_signing_secret"
  }'

Webhook events

EventDescription
document.uploadedA document was uploaded
document.processedDocument processing completed
document.classifiedDocument type was classified
document.extractedFields were extracted
workflow.startedA workflow run started
workflow.completedA workflow run completed
workflow.failedA workflow run failed

Verifying webhook signatures

All webhook payloads include a signature in the X-DokuBrain-Signature header. Verify it using HMAC-SHA256:

Verify webhook signature (Node.js)
const crypto = require('crypto');
 
function verifyWebhook(payload, signature, secret) {
  const expected = crypto
    .createHmac('sha256', secret)
    .update(payload)
    .digest('hex');
  return crypto.timingSafeEqual(
    Buffer.from(signature),
    Buffer.from(expected)
  );
}

Email ingestion

DokuBrain can process documents received via email. Configure a dedicated email address and any documents attached to incoming emails will be automatically uploaded and processed.

API keys

Manage API keys programmatically:

List API keys
curl https://api.dokubrain.com/api/v1/api-keys \
  -H "Authorization: Bearer YOUR_API_KEY"

See the Authentication guide for details on API key management.

On this page