API v1
The v1 API lets your systems read a tab and run it, then read the result. You need an API key: see API Keys.
Authenticate#
Send the key in the x-api-key header. A missing, invalid, disabled or expired key gets a 401, and going over 60 requests a minute on one key gets a 429.
Endpoints#
| Method | Path | What it does |
|---|---|---|
| GET | /api/v1/capabilities |
Searches the node catalog (query, jurisdiction, category, limit) |
| GET | /api/v1/capabilities/{key} |
Describes one node type: ports, properties, sources and cost |
| GET | /api/v1/dashboards/{id}/tabs/{tabId} |
Reads a tab as a compact graph, with each node's last status |
| POST | /api/v1/dashboards/{id}/tabs/{tabId}/runs |
Runs every node of the tab now and answers when it finishes |
| GET | /api/v1/runs/{id} |
Reads a past run: status, duration and each node's status and error |
The interactive reference (Scalar) opens at /api/docs for admin accounts only, and anyone else is refused, so this table is the version for everyone else.
Example: run a tab#
- Create a key in API Keys and copy it.
- Open the tab and copy the two ids from its address,
/app/dashboards/<dashboardId>/tabs/<tabId>. - Send the request:
curl -X POST "https://noctiluz.com/api/v1/dashboards/DASHBOARD_ID/tabs/TAB_ID/runs" \
-H "x-api-key: nk_live_…example"
- Read the answer, JSON with
runId,status(success,partialorerror),durationMsandnodes. Each node has itshandle,status,errorandoutputs. A tab that is not yours, or does not exist, gets a 404.
To check the run later, call GET /api/v1/runs/RUN_ID. It has no outputs.