Documentation

Build document processing, sharing, viewing, analytics, forms and workflows into your product with the Wellfriend API.

What you can build

The Wellfriend API at https://wellfriend.dev/api/v2 stores each document as immutable versions, runs processing tools on an exact version, and adds secure links, analytics, forms, annotations, workflows, connectors and signed webhooks.

  • Upload a document once and point every later action at an exact version.
  • Keep data separate by organisation, workspace and test or live environment.
  • Rely on explicit operation states, idempotency keys, request-unit metering and stable error codes.

Start with the API

Create an API key in the dashboard, store it in your server's secret store, and send it as a bearer header from your server. Never put it in browser or mobile code.

Upload a document
curl --fail-with-body -X POST https://wellfriend.dev/api/v2/documents \
  -H "Authorization: Bearer $WELLFRIEND_API_KEY" \
  -H "Content-Type: application/pdf" \
  -H "X-Wellfriend-Filename: input.pdf" \
  -H "Idempotency-Key: document-1842" \
  --data-binary @./input.pdf

Documentation map

AreaUse it forFirst page
BuildAPI keys, your first request, errors, limits, SDKs and webhooks/docs/getting-started
DocumentsDocuments and versions, secure links, the viewer, analytics, forms and automations/docs/document-operations
OperationsEvery live v2 operation with its scopes/docs/developer-api/operations
TrustSecurity, support and policy summaries/docs/security

Choose a starting point

API and website addresses

Send API requests to https://wellfriend.dev/api/v2. Product pages, documentation and the dashboard are on https://wellfriend.dev outside /api.

Never expose the API key to code that runs in a browser. Your backend holds the key, decides which files a user may send, handles retries, stores IDs and delivers results to your users.

Production essentials

  • Check that your user may send a file before you forward it.
  • Give each key only the scopes its service calls, and keep keys in a secret manager.
  • Store Wellfriend IDs with your own records, with one idempotency key per create or update.
  • Handle every operation state: queued, running, cancelling, completed, failed and cancelled.
  • Set timeouts and a retry limit, wait for Retry-After, and never retry validation or permission errors unchanged.
  • Check each output before it replaces or goes out in place of the original document.

Complete operation reference

Every live operation is listed in the API operations index with its method, path, scopes and outcome, and in the OpenAPI document. GET /api/v2/capabilities returns the same list.

  • Open /docs/developer-api/operations to browse every live operation.
  • Open /docs/api/openapi.json for the OpenAPI 3.1 document.
  • An operation that is not in the index is not part of the API, even if the dashboard has a similar feature.