Wellfriend DocumentsDevelopers

Getting Started

From API key to your first result.

Create an API key, upload a document from your server, process it and download the result.

Overview

What you get.

Start on your server. Create a test key in the dashboard, keep it out of source control, and use a sample file you know well.

Processing requests return 202 Accepted straight away and finish in the background. Save the document, version and job IDs, then check the job's status or receive a signed webhook when it completes.

Step by step

Up and running in four steps.

  1. 01

    Create a key

    Choose only the scopes your service needs and store the key in a secret manager. It is shown once.

  2. 02

    Upload a document

    Send the file to POST /api/v2/documents with your key, its name, type and an idempotency key.

  3. 03

    Process it

    Run a tool on the returned version and handle each job status your app may see.

  4. 04

    Download the result

    Download the output with the same key, check it, and keep the IDs for support.

Built in

Keep keys on the server

Never put an API key in a browser, a mobile app or a log.

Retry safely

Reuse an idempotency key only when you retry the same request. Use a new one for new work.

Test with real files

Try good and bad files before you launch, and check the output each time.

Packages

Install from your package registry.

TypeScript

1.0.0 on npm
wellfriend-document-sdk
npm install wellfriend-document-sdk@latest
npm package page

Python

1.0.0 on PyPI
wellfriend-document-sdk
pip install -U wellfriend-document-sdk
PyPI package page

Go

v1.0.1 on pkg.go.dev
wellfriend.dev/go/wellfriend
go get wellfriend.dev/go/wellfriend@latest
pkg.go.dev package page

Rust

1.0.0 on crates.io
wellfriend-document-sdk
cargo add wellfriend-document-sdk
crates.io package page

CLI

1.0.0 on npm
wellfriend (in wellfriend-document-sdk)
npm install -g wellfriend-document-sdk@latest
npm package page