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:
| Scope | Allowed 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
| HTTP | Code | Meaning | What to do |
|---|---|---|---|
| 401 | 12001 | No credential was provided | Add an authentication header |
| 401 | 12002 | The session token is invalid or expired | Sign in again |
| 401 | 12014 | The API key is invalid, revoked, or expired | Check the key in the console |
| 403 | 12015 | The API key is valid but lacks the required scope | Add 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.
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.