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.
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.pdfDocumentation map
| Area | Use it for | First page |
|---|---|---|
| Build | API keys, your first request, errors, limits, SDKs and webhooks | /docs/getting-started |
| Documents | Documents and versions, secure links, the viewer, analytics, forms and automations | /docs/document-operations |
| Operations | Every live v2 operation with its scopes | /docs/developer-api/operations |
| Trust | Security, support and policy summaries | /docs/security |
Choose a starting point
| Goal | Start here | Then read |
|---|---|---|
| Process a file | /docs/getting-started | /docs/developer-api/jobs-and-downloads |
| Store documents and versions | /docs/document-operations | /docs/document-operations/uploads |
| Share a document securely | /docs/secure-links | /docs/viewer-and-embeds |
| Collect answers or review comments | /docs/annotations-and-forms | /docs/annotations-and-forms/forms |
| Automate several steps | /docs/automations | /docs/automations/definitions |
| Use an SDK or the CLI | /docs/sdk-cli | /docs/sdk-cli/typescript |
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.