Reference

API Reference

234 endpoints across 21 areas. Each area page documents every parameter, every response, and the permission a key needs.

Everything in common

Base URLhttps://docuflow.pendral.io/api/v2
Authorization: Bearer
A dfk_ key (or x-api-key: dfk_…), bound to one workspace. The app itself calls the same endpoints with its session.
module:action
Each endpoint names the permission it needs. A key holds its creator's permissions narrowed to its scopes; queue-scoped endpoints check the permission on the queue they touch.
Content-Type: application/json
Required on anything with a JSON body. Uploads are multipart/form-data.
cursor, nextCursor
Lists return nextCursor; pass it back as cursor. null is the last page.
code
Failures carry a stable code, a sentence and the requestId that every response echoes in X-Request-Id.

The whole reference is also an OpenAPI 3.1 document, generated from the same registry as these pages.

Areas

20
DocumentsUpload, list, inspect and manage documents. Processing is asynchronous: poll a document, listen on the event stream, or subscribe a webhook.16 endpointsReviewApprove, reject, edit fields, recapture regions and ask questions of a document.17 endpointsExtractionOne call in, structured data out.1 endpointSearch & viewsGlobal search and saved Documents views.8 endpointsEventsLive server-sent events for the caller's workspace.1 endpoint · read-onlyQueuesDocument families: automation, workload and assignment.10 endpointsSchemas & rulesVersioned extraction schemas and validation rules.12 endpointsLearning & evaluationsLearnings distilled from reviewer corrections, and extraction evaluations against a golden set.14 endpointsConnectionsMicrosoft 365 accounts connected through Nango (connected in the app; browsed and imported from here).16 endpointsSourcesAuto-pull watchers on drive folders, mailboxes and Teams channels.10 endpointsAutomationsWorkflow rules: when a document reaches a trigger, if its conditions hold, do a list of actions. Ordered per workspace; a rule with no queue reaches every queue.11 endpointsDestinationsWhere approved data goes: drive folders, email, or a signed webhook.9 endpointsWebhooksSigned JSON POSTs when documents change state. See the webhooks section for payloads.10 endpointsReference dataData sets used by lookups, dataset-match rules and enrichment.14 endpointsExportsBulk and scheduled exports. Files are only readable through the authenticated download endpoint.12 endpointsWorkspaceSettings, API keys, audit log, analytics and usage.20 endpointsMembers & accessMembers, invitations, roles and teams. Governance needs a signed-in person: API keys can never call these.26 endpointsAccountThe signed-in user and the workspaces they belong to.12 endpointsPlatformBuilding a workflow on top of DocuFlow. whoami says what a credential can do, /events/log is the webhook feed as something you poll, /batch collapses several calls into one round trip, and /logs shows what your integration actually sent.7 endpointsMetaThis document and inbound integration callbacks.3 endpoints · read-only

Signed-in only

1

These act for the person using the app. They take a browser session and refuse API keys.

Walkthroughs