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 (orx-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 ascursor.nullis the last page. - code
- Failures carry a stable
code, a sentence and therequestIdthat every response echoes inX-Request-Id.
The whole reference is also an OpenAPI 3.1 document, generated from the same registry as these pages.
Areas
DocumentsUpload, list, inspect and manage documents. Processing is asynchronous: poll a document, listen on the event stream, or subscribe a webhook.ReviewApprove, reject, edit fields, recapture regions and ask questions of a document.ExtractionOne call in, structured data out.Search & viewsGlobal search and saved Documents views.EventsLive server-sent events for the caller's workspace.QueuesDocument families: automation, workload and assignment.Schemas & rulesVersioned extraction schemas and validation rules.Learning & evaluationsLearnings distilled from reviewer corrections, and extraction evaluations against a golden set.ConnectionsMicrosoft 365 accounts connected through Nango (connected in the app; browsed and imported from here).SourcesAuto-pull watchers on drive folders, mailboxes and Teams channels.AutomationsWorkflow 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.DestinationsWhere approved data goes: drive folders, email, or a signed webhook.WebhooksSigned JSON POSTs when documents change state. See the webhooks section for payloads.Reference dataData sets used by lookups, dataset-match rules and enrichment.ExportsBulk and scheduled exports. Files are only readable through the authenticated download endpoint.WorkspaceSettings, API keys, audit log, analytics and usage.Members & accessMembers, invitations, roles and teams. Governance needs a signed-in person: API keys can never call these.AccountThe signed-in user and the workspaces they belong to.PlatformBuilding 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.MetaThis document and inbound integration callbacks.
Signed-in only
These act for the person using the app. They take a browser session and refuse API keys.