Included units
| Tier | Included request units |
|---|---|
| Free API mode | 100 request units |
| D1 | 500 request units |
| D2 | 1000 request units |
| D3 | 1500 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.
| Method | Path | Request units |
|---|---|---|
| POST | /api/v2/documents | 1 |
| POST | /api/v2/uploads | 1 |
| GET | /api/v2/documents/{documentId} | 1 |
| POST | /api/v2/document-operations | 1 |
| POST | /api/v2/secure-links | 1 |
| POST | /api/v2/workflows/{workflowId}/runs | 1 |
| POST | /api/v2/workflow-runs/{runId}/replay | 1 |
| POST | /api/v2/connector-imports | 1 |
| POST | /api/v2/connector-sends | 1 |
| POST | /api/v2/connector-exports | 1 |
| POST | /api/v2/generic-http-triggers/{accountId} | 1 |
| GET | /api/v2/documents/{documentId}/versions/{versionId}/content | 1 |
| GET | /api/v2/documents/{documentId}/versions/{versionId}/pages/{page}/render | 1 |
| POST | /api/v2/esign/envelopes | 1 |
| POST | /api/v2/esign/validate | 1 |
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_EXHAUSTEDand 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.