Everything lives under https://flux.nasterra.com. Authenticate with an
API key as Authorization: Bearer <key> (or the
browser session cookie). Requests and responses are JSON. Errors are
{"detail": "…"} with 401 (not signed in), 403 (role too low), 404, 409 (conflicts with
the current state), 422 (invalid input) or 429 (throttled or over a quota).
The interactive OpenAPI description is at /api/docs (/api/openapi.json).
Config kinds: pipeline, connection, schedule, trigger, calendar,
compute-profile, connector-catalog and quotas.
| Endpoint |
Role |
|
GET /api/health |
— |
Liveness and version |
| Endpoint |
Role |
|
POST /api/auth/login |
— |
Sign in with {email, password}; sets the flux_session cookie |
POST /api/auth/logout |
— |
Clear the session cookie |
GET /api/auth/me |
viewer |
Who you are: {subject, role, kind} |
POST /api/auth/password |
viewer |
Change your password: {current, new} |
POST /api/auth/password/forgot |
— |
Email a reset link: {email} (same answer for unknown addresses) |
POST /api/auth/password/set |
— |
Use an invite or reset link: {token, password} |
GET /api/auth/revocations |
service token |
Token versions and refused API keys, for flux-dataset |
| Endpoint |
Role |
|
GET /api/keys |
viewer |
Your API keys (?all=true for admins: everyone’s) |
POST /api/keys |
editor |
Create a key: {name, role, datasets?, expires_days?}; the token is in the response once |
DELETE /api/keys/{key_id} |
owner or admin |
Revoke a key (its owner or an admin) |
GET /api/users |
admin |
All users |
POST /api/users |
admin |
Invite: {email, role, name?} |
PATCH /api/users/{user_id} |
admin |
Change role, active or name |
POST /api/users/{user_id}/reset |
admin |
Email a new invite or reset link |
| Endpoint |
Role |
|
GET /api/config |
viewer |
Config kinds |
GET /api/config/{kind} |
viewer |
Items of a kind; search |
POST /api/config/{kind} |
editor |
Create an item: {key, body, name?, description?, labels?, message?} |
DELETE /api/config/{kind}/{key} |
editor |
Delete an item (history is kept) |
GET /api/config/{kind}/{key} |
viewer |
An item with its latest and active versions |
PATCH /api/config/{kind}/{key} |
editor |
Change name, description or labels |
POST /api/config/{kind}/{key}/activate |
editor |
Make a version active: {version} |
GET /api/config/{kind}/{key}/diff |
viewer |
Differences between versions from (default active) and to (default latest) |
GET /api/config/{kind}/{key}/history |
viewer |
Activations and rollbacks |
POST /api/config/{kind}/{key}/rollback |
editor |
Re-activate the previous version, or {version} |
GET /api/config/{kind}/{key}/versions |
viewer |
All versions |
POST /api/config/{kind}/{key}/versions |
editor |
Save a version: {body, message?, activate?} |
GET /api/config/{kind}/{key}/versions/{ref} |
viewer |
One version: a number, latest or active |
| Endpoint |
Role |
|
GET /api/connection-types |
viewer |
Connection types and their fields |
GET /api/connection-types/{name} |
viewer |
One connection type |
POST /api/connections/draft/{op} |
editor |
test, discover, schema or sample an unsaved connection |
POST /api/connections/{key}/{op} |
editor |
test, discover, schema or sample a saved connection |
| Endpoint |
Role |
|
GET /api/pipelines/functions |
viewer |
Formula functions |
POST /api/pipelines/preview |
editor |
Sample rows at a node: {pipeline, node, port?, limit?} |
GET /api/pipelines/schema |
viewer |
The pipeline JSON Schema |
POST /api/pipelines/schemas |
editor |
Output schema of every node |
POST /api/pipelines/validate |
viewer |
Validate a pipeline document |
| Endpoint |
Role |
|
GET /api/compute-profiles |
viewer |
Compute sizes |
POST /api/pipelines/{key}/runs |
editor |
Start a run of the active version (or {version}) |
GET /api/runs |
viewer |
Runs; filters pipeline, status, limit |
GET /api/runs/{run_id} |
viewer |
A run with its shards |
POST /api/runs/{run_id}/cancel |
editor |
Cancel a queued or running run |
| Endpoint |
Role |
|
GET /api/calendars/{key}/dates |
viewer |
A calendar’s dates |
POST /api/calendars/{key}/refresh |
admin |
Re-fetch a calendar’s ICS feed now |
GET /api/firings |
viewer |
Runs started by schedules and triggers |
POST /api/schedules/preview |
viewer |
Next fire times for a schedule body |
GET /api/schedules/state |
viewer |
Next and last fire times of every schedule |
| Endpoint |
Role |
|
GET /api/events |
viewer |
Stored events, newest first; filters type, run_id, dataset, before, limit |
POST /api/events/external/{name} |
editor |
Post an external event (a JSON object) for trigger rules |
GET /api/events/streams |
viewer |
Event stream status |
WS /ws |
viewer |
Live events: subscribe to runs, run:<id>, datasets, dataset:<name>, … |
| Endpoint |
Role |
|
GET /api/forge/artifacts/{name}/{version}/{platform} |
viewer |
An artifact: manifest, files, signature, build |
POST /api/forge/artifacts/{name}/{version}/{platform}/revoke |
admin |
Revoke an artifact: {reason} |
GET /api/forge/events |
viewer |
Publishes and revocations |
GET /api/forge/keys |
viewer |
Trusted signing keys |
GET /api/forge/packages |
viewer |
Connector packages |
GET /api/forge/packages/{name} |
viewer |
A package’s versions and history |
| Endpoint |
Role |
|
GET /api/audit |
admin |
Audit log; filters actor, action (prefix), target, since, before_id, limit |
GET /api/mail/status |
admin |
Whether email is configured |
GET /api/notifications |
viewer |
Run notification deliveries; filters run_id, status |
GET /api/quotas |
viewer |
Limits, defaults and current usage |
Served by the dataset server (the same tokens work). See
Read and write datasets.
| Endpoint |
Role |
|
GET /api/datasets |
viewer |
Datasets with key, rows, files and snapshot |
GET /api/datasets/{name} |
viewer |
Schema, stats and write status; snapshot= |
GET /api/datasets/{name}/get |
viewer |
Rows by key, e.g. ?id=42; columns=, snapshot=, after= |
GET /api/datasets/{name}/range |
viewer |
Key range from ≤ key < to, in order; column=, limit= (≤ 10,000) |
GET /api/datasets/{name}/sample |
viewer |
First rows; limit= |
POST /api/datasets/query |
viewer |
Read-only SQL: {sql, limit?, after?} |
POST /api/datasets/{name}/rows |
policy’s writer role |
Put rows and delete keys: {put, delete} (write-enabled datasets) |
POST /api/datasets/{name}/flush |
policy’s writer role |
Fold pending writes into a snapshot now |
GET /api/datasets/{name}/writes |
viewer |
Write policy and pending writes |
PUT /api/datasets/{name}/writes |
admin |
Set the write policy: {enabled, writer_role?, flush_rows?, flush_interval_s?, discard_pending?} |