Integration

API and published queries

Integrate authenticated and published queries into external systems.

Updated: November 2026

Personal API tokens

Tokens expire after 30 days by default and are persisted only as hashes. They apply only to authorized saved queries and never bypass datasource, workspace or resource permissions.

Request format

Authorization: Bearer <token>
GET /api/v1/saved-queries/{id}/execute?format=csv

Publications

A publication pins one SQL version for each saved query. The GET endpoint always executes that version, while POST without a publication parameter uses the current version.

Withdrawing a publication only disables the published GET variant. Anonymous sharing is not enabled.

OpenAPI

When the NexFlow backend is running, it exposes interactive OpenAPI documentation at /docs with the valid endpoints and schemas for that installation.