Skip to content
lynxby

Tools and integrations

The REST API and tokens

Call assistants, tasks and triggers from your backend, with scoped tokens, idempotency keys, streaming and an OpenAPI contract.

The interface is not the only way in. The product API under /api/v1 runs assistants, tasks and triggers from a backend, and every call is subject to the same permissions and the same ledger.

Tokens

A token looks like lynx_ followed by forty random characters. Only a SHA-256 hash and an eight-character prefix are stored, so a database dump contains no working token. The value appears once, in the response that creates or rotates it, and no route returns it again.

A token belongs to one person or one service account and one organisation, carries a fixed set of scopes, and can expire or be revoked. Revocation takes effect on the next call because nothing is cached in a session. A scope is a ceiling: the route must allow it and the owner's group permission must allow it too.

EU-only is a flag on a token. A call with such a token skips any route step whose provider sits outside the EU, and a route with no EU step is refused rather than served from somewhere else. Set it for a client whose data may not leave the EU.

Calling

GET /api/v1/me is the probe. Then list assistants, send a message plain or streamed, list tasks and their forms, run one, or start a trigger now. A task run refuses exactly the fields the form marks required, so the schema and the run agree.

Idempotency keys make a retry safe: a repeated request with the same key returns the stored result instead of doing the work twice. The streaming contract is in the reference the SDK is generated from, so the SDK cannot describe an endpoint that is not there.

The OpenAPI contract

The public API page links the reference and the generated SDK. The same document is the source for the examples, which is why a sample does not drift from the route it describes.

Where it stops

A token authenticates only the routes that name it; every other route still wants a signed-in session. A token from another organisation answers 404, not 403, because a 403 would confirm it exists. And the API is not a bulk export: the ledger and the documents have their own exports with their own permissions.

Related: service accounts, MCP, the audit ledger.

Want to see this on your own documents?

Contact us

Search all guides