Skip to main content

Authentication

Create an API key in the flowda console. Keys use the format flw_<env>_<key_id>_<secret>.

Send your API key​

Use the Authorization header:

Authorization: Bearer flw_<env>_<key_id>_<secret>

The equivalent X-API-Key header is also accepted:

X-API-Key: flw_<env>_<key_id>_<secret>

When both headers are present, Authorization takes precedence.

An authenticated console session is also accepted through Authorization: Bearer <JWT> or the flowda_token cookie. Sessions act as the account owner and are not restricted by API key scopes.

Scopes​

API key scopes control which endpoints the key can call:

ScopeAllowed endpoints
extract/v1/extract, /v1/template, /v1/templates
search/v1/search
map/v1/map
watch/v1/watch/*

Any valid credential can call GET /v1/account to inspect the current identity, scopes, and quota. For session requests, scopes is empty and scope_enforced is false.

Authentication and authorization errors​

HTTPCodeMeaningWhat to do
40112001No credential was providedAdd an authentication header
40112002The session token is invalid or expiredSign in again
40112014The API key is invalid, revoked, or expiredCheck the key in the console
40312015The API key is valid but lacks the required scopeAdd the scope named in data.required_scope

A 403 with code 12015 means the key is valid and its permissions need to change. Call GET /v1/account to check the scopes assigned to it.

Keep your key secret

Treat an API key as an account credential. Never embed it in frontend code, mobile application bundles, or public repositories. Revoke an exposed key immediately and create a replacement in the console.