Developer API

Developer API request units

Which v2 operations are metered, how included and purchased units combine, and how to read usage.

Included units

TierIncluded request units
Free API mode100 request units
D1500 request units
D21000 request units
D31500 request units

Metered operations

Each operation's cost is published as x-wellfriend-metering-units in /docs/api/openapi.json. Units are reserved when the API accepts the call, before any work runs. Operations not listed here are free.

MethodPathRequest units
POST/api/v2/documents1
POST/api/v2/uploads1
GET/api/v2/documents/{documentId}1
POST/api/v2/document-operations1
POST/api/v2/secure-links1
POST/api/v2/workflows/{workflowId}/runs1
POST/api/v2/workflow-runs/{runId}/replay1
POST/api/v2/connector-imports1
POST/api/v2/connector-sends1
POST/api/v2/connector-exports1
POST/api/v2/generic-http-triggers/{accountId}1
GET/api/v2/documents/{documentId}/versions/{versionId}/content1
GET/api/v2/documents/{documentId}/versions/{versionId}/pages/{page}/render1
POST/api/v2/esign/envelopes1
POST/api/v2/esign/validate1

Price a run before you send it

POST /api/v2/quote answers what one tool (toolId and parameters) or a chain (steps, in the same shape as POST /api/v2/document-chains) would cost for a file with the pages and size you give: the request units, the credits, each step's share, and the upload and download the run needs. It is free: it needs no key, reserves nothing and is not counted as usage. The snippet builder's price calculator calls it.

  • Each step uses 1 request unit, whatever its page count. OCR steps also use credits: 5 credits for up to 15 pages, then 3.5 credits per additional page, rounded up per job.
  • Uploading the file uses 1 request unit and downloading the result 1 request unit.
  • Request units never depend on the page count; only OCR credits do. A quote marks each step flat or pages accordingly.
  • A step after the first can carry its own pages (for example after a split); OCR is charged for the pages it actually reads.

Purchased and granted units

Request-unit packs can be bought on Developer D1 or higher. Purchased and granted units join your account's API balance once the pack is paid or the units are granted; an unpaid pack adds nothing.

Included units are used first; purchased units cover the rest.

Consumption and logs

  • Authentication and scope failures are rejected before any units are reserved.
  • A metered call that the balance cannot cover returns 429 API_REQUEST_UNITS_EXHAUSTED and reserves nothing.
  • GET /api/v2/usage (scope usage.read) reports usage for the calling key over a from/to range in RFC 3339 (default the last month, at most 366 days).
  • GET /api/v2/logs (scope logs.read) lists recent calls with their operation, status, error code, duration and request reference. Developer API → Usage shows the same records in the dashboard.