REST API
The Goni REST API: auth modes, headers, error envelope, rate-limit classes, and the endpoint catalog by resource.
What this page does
This is the reference for the Goni REST API, the public HTTP surface you use to build against your Goni workspace: query dashboards, run metrics, manage connections and pipelines, mint embed tokens, send alerts, drive CI, and hook up MCP-aware AI clients.
The Goni web app uses the same API. Every UI action has a corresponding endpoint.
On this page
- Auth modes (session cookie, JWT, PAT, embed token, MCP)
- How to mint a Personal Access Token
- Request headers you send and response headers you read
- The error envelope and the status codes to expect
- Rate-limit classes and how to detect them client-side
- Endpoint catalog grouped by resource
Base URL
Every request is rooted at your workspace hostname, for example:
https://your-workspace.goni.app/api
Self-hosted Goni installs replace the hostname. The paths are identical.
Health and observability endpoints live outside /api:
GET /api/healthliveness, unauthenticated, rate-limit exemptGET /api/readyreadiness (warehouse plus control plane), unauthenticatedGET /metricsPrometheus scrape, unauthenticated, rate-limit exempt
The MCP JSON-RPC endpoint is at /mcp/v1. See MCP server.
Auth modes
Goni accepts five identity carriers. Pick the one that fits your integration.
| Mode | Header | Use it for |
|---|---|---|
| Session cookie | goni_session cookie | The Goni web app in a browser |
| JWT bearer | Authorization: Bearer <jwt> | Short-lived service-to-service calls, refresh flow |
| Personal Access Token (PAT) | Authorization: Bearer <pat> | CI runners, scripts, long-lived server integrations |
| Embed token | Authorization: Bearer <embed> | Signed, scoped tokens for embedding dashboards or charts in your app. See Embedded analytics |
| MCP token | JSON-RPC initialize handshake with a JWT or PAT | AI clients like Claude Desktop connecting to /mcp/v1 |
A PAT is the correct choice for almost every programmatic integration. It carries the permissions of the user who minted it, and those permissions are re-resolved on every request, so removing a user from your policy YAML immediately invalidates every PAT they hold.
An embed token’s user is a label chosen by whoever minted the token, not a signed-in person. Routes that read or change a person’s own data therefore answer 403 to an embed token. The tables below say so for each of these routes.
Obtaining a Personal Access Token
- Sign in to your workspace.
- Open Settings, then Personal Access Tokens (
/settings/tokens). - Click New token, give it a label (for example
ci-runner), and pick a TTL. Default is 90 days, maximum is 365. - Click Create. The full token is displayed once. Copy it into your secret store before closing the dialog.
Tokens are listed by label, jti, and expiry. You can revoke any token from the same screen; the next request that carries a revoked token is rejected with 401.
To rotate every outstanding token at once, ask a workspace admin to rotate the embed signing secret.
Standard headers
Requests you send:
| Header | Value | Notes |
|---|---|---|
Authorization | Bearer <token> | Required for every non-public endpoint |
Content-Type | application/json | Required for POST, PUT, PATCH with a body |
Accept | application/json | Default; specific endpoints support text/csv or application/vnd.ms-excel for exports |
If-Match | ETag from a prior GET | Optimistic concurrency on artifact PUT |
Responses you read:
| Header | Meaning |
|---|---|
X-Trace-Id | Correlates your request with server logs for support tickets |
X-RateLimit-Class | Which limit class ran, heavy, cheap, or auth |
Retry-After | Seconds to wait after a 429 before retrying |
X-Goni-Limit-Adjusted | Present on metric queries when Goni raised your requested LIMIT to a workspace floor. Format <requested>-><applied> |
ETag | Version tag for artifact GET responses |
Error envelope
Every non-2xx JSON response uses one shape:
{ "error": "human-readable message" }
Common status codes:
| Code | Meaning |
|---|---|
400 | Invalid JSON body, missing path parameter, or a semantic-layer compile error. Message names the field |
401 | Missing, malformed, or expired token. "access token expired" means refresh and retry |
403 | Authenticated, but your policy does not grant the required permission. The permission name appears in the message, for example "requires allow_admin_policies" |
404 | The artifact id does not exist, or your policy does not include it in your allow-list |
409 | If-Match mismatch on an artifact PUT. Re-GET, merge, retry |
429 | Rate limit exceeded. Read Retry-After and X-RateLimit-Class |
500 | Server-side failure. Include X-Trace-Id in the support ticket |
503 | Warehouse or control plane temporarily unavailable. Safe to retry with backoff |
Rate limiting
Goni runs three independent limiter classes per user (or per client IP for pre-auth calls):
| Class | Applies to |
|---|---|
auth | /api/auth/* endpoints; low burst because each call may involve an identity-provider round-trip |
heavy | Warehouse-touching endpoints: SQL runs, metric queries, pipeline runs, connection schema fetch, AI Q&A, exports, and anything ending in /run or /test |
cheap | Everything else: list, get, health-adjacent metadata |
When you hit a limit, you get 429 with X-RateLimit-Class and Retry-After. Back off for the number of seconds shown, then retry. A well-behaved client caches list responses and batches writes to stay under cheap, and paginates over long-tail reads to stay under heavy.
Rate-limit classes (heavy, cheap, auth) are configured at deployment time via GONI_RATE_LIMIT_HEAVY_RPS, GONI_RATE_LIMIT_CHEAP_RPS, and GONI_RATE_LIMIT_AUTH_RPS (plus the matching _BURST variables).
Permissions
Every endpoint that touches user data checks one or more permissions on your identity. Your workspace admin assigns these in the policy YAML.
| Permission | Grants |
|---|---|
allow_save | Create and edit user-owned artifacts: queries, charts, dashboards, notebooks, alerts, reports, glossary; run adhoc SQL through /api/query; resolve pipeline dead-letter events |
allow_admin_policies | Read and edit the policy YAML, list users, mint embed tokens, call SCIM /scim/v2/Users |
allow_delete | Delete artifacts you own |
| Per-id allow-lists | allow_dashboards, allow_charts, allow_queries, allow_notebooks, allow_metrics, allow_models, allow_connections, allow_pipelines gate reads on specific artifact ids. An empty allow-list denies everything. A new role must include at least - "*" on each list, or the user sees an empty workspace |
| Row filters, column masks | Applied inside metric compilation, keyed by target table |
If you get a 403, the message names the missing permission so your admin can add it in one line of the policy YAML.
Endpoint catalog
Endpoints are grouped by resource. All paths are rooted at /api unless noted.
Auth
| Method | Path | Purpose |
|---|---|---|
| POST | /auth/refresh | Exchange a refresh cookie for a new access JWT |
| POST | /auth/magic-link/request | Send a sign-in email |
| POST | /auth/magic-link/verify | Verify the magic-link token (see body + response below) |
| GET | /auth/oidc/login, /auth/oidc/callback | SSO round-trip |
| GET | /auth/me | The current session identity; embed tokens get 403 |
| POST | /auth/logout | End the CURRENT session only - clears the cookie + revokes the presented refresh token |
| POST | /auth/sessions/end | End EVERY session for the current user across every device - revokes all outstanding refresh tokens; embed tokens get 403 |
| POST | /auth/switch | Switch the active tenant on the current session. Body {tenant_id}. Caller must be a member of the target tenant |
POST /api/auth/magic-link/verify request body: { "token": "<the token from the sign-in email>" }.
Successful response (200):
{
"access_token": "<15-min JWT>",
"refresh_token": "<30-day rotating opaque>",
"user": { "id": "<uuid>", "email": "you@example.com" },
"tenant": { "id": "<uuid>", "slug": "acme", "name": "Acme workspace" }
}
Error responses: 400 (invalid token), 410 (expired or already used), 403 (account disabled), 429 (rate-limited). The SPA maps these to fixed user-safe strings; the raw server body is never rendered.
Sign-out semantics differ deliberately:
POST /api/auth/logoutclears the current browser’s session cookie and revokes the refresh token you present in the body. Other devices where the same account is signed in remain signed in.POST /api/auth/sessions/endrevokes every outstanding refresh token for the caller and invalidates every session cookie. Use this after losing a device or leaving a shared browser.
Personal access tokens
| Method | Path | Purpose | Permission |
|---|---|---|---|
| POST | /access_tokens | Mint a PAT for the caller (max 25 active per user, TTL 1-365 days). Returns the raw JWT exactly once. | authenticated, except embed tokens |
| GET | /access_tokens | List your own PATs (metadata only, never the raw JWT) | authenticated, except embed tokens; self-scoped |
| DELETE | /access_tokens/{jti} | Revoke one of your PATs. Returns 404 when the jti belongs to another caller | authenticated, except embed tokens; owner of jti |
| GET | /users/{email}/access_tokens | List another user’s PATs (same tenant) | allow_admin_policies |
| DELETE | /users/{email}/access_tokens/{jti} | Admin-side revoke; ?reason=<free-text> stamps the audit row | allow_admin_policies |
Use as Authorization: Bearer <token> from a CLI, CI job, or MCP client. PATs are scoped to the tenant they were minted from and inherit the owner’s live roles - revoking the owner or changing their roles takes effect on the next request.
Account lifecycle (GDPR)
See Deleting your account for the full user-facing flow and retention windows.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| DELETE | /me | Self-service account delete. Body: {"confirm":"<your email>"}. Answers 409 when you are the only owner of a workspace that has other members; hand over ownership first. Cascade, in order: sessions revoked, PATs purged, favorites and snippets purged, query history erased in every workspace, uploads stored under your email address erased, policy disabled. Uploads made with a PAT are stored under your email address. Response summarises which steps succeeded. Goni deletes the profile 30 days later; the response gives that date as purge_after. | authenticated, except embed tokens |
| POST | /admin/users/{email}/purge | Admin-initiated purge of a user in the caller’s workspace. Same cascade as DELETE /me, except that query history is erased only in the caller’s workspace and uploads stored under the user’s email address are kept. It does not delete the profile. | allow_admin_policies |
Dashboards
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /dashboards | List dashboards you can read | id in allow_dashboards |
| GET | /dashboards/{id} | Read a dashboard | id in allow_dashboards |
| PUT | /dashboards/{id} | Create or update | allow_save |
| DELETE | /dashboards/{id} | Delete | allow_delete |
| POST | /dashboards/{id}/fork | Duplicate | allow_save |
| POST | /dashboards/{id}/summary | Auto-generated executive summary (accepts ?window_days=N) | id in allow_dashboards |
| GET | /dashboards/{id}/export.zip | Export bundle | id in allow_dashboards |
| POST | /dashboards/import | Import a bundle | allow_save |
| GET | /dashboards/{id}/history, /dashboards/{id}/at/{sha} | Version history | id in allow_dashboards |
Charts
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET / PUT / DELETE | /charts, /charts/{id} | CRUD | id in allow_charts, allow_save, allow_delete |
| GET | /charts/{id}/compiled-sql | Compiled SQL that renders the chart | id in allow_charts |
| GET | /charts/{id}/history, /charts/{id}/at/{sha} | Version history | id in allow_charts |
Queries and SQL
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET / PUT / DELETE | /queries, /queries/{id} | Saved queries | id in allow_queries, allow_save, allow_delete |
| POST | /query | Run adhoc SQL | allow_save |
| POST | /sql/validate | Parse and validate without running | any authenticated |
| GET | /query_history | Your recent runs | any authenticated, except embed tokens |
| GET | /warehouse/schema, /warehouse/columns/{database}/{table} | Warehouse introspection | any authenticated |
Metrics and models (semantic layer)
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /metrics | Metric catalog | name in allow_metrics |
| PUT / DELETE | /metrics/{name} | Upsert or remove a user-layer metric | allow_save, allow_delete |
| POST | /metric/{name}/query | Run a metric | name in allow_metrics |
| GET | /metric/{name}/trust, /metric/{name}/blame | Quality and provenance | name in allow_metrics |
| GET | /models, /models/{name}, /sources, /lineage, /catalog | Model, source, lineage graph | any authenticated |
Alerts
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET / PUT / DELETE | /alerts, /alerts/{id} | CRUD | allow_save, allow_delete |
| POST | /alerts/{id}/run | Evaluate now | allow_save |
| POST | /alerts/{id}/mute | Silence | allow_save |
| GET | /alerts/{id}/history | Fire history | allow_save |
Reports
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET / PUT / DELETE | /reports, /reports/{id} | CRUD | allow_save, allow_delete |
| POST | /reports/{id}/run | Send now | allow_save |
| POST | /reports/{id}/preview | Dry-run: return the first 20 rows and the rendered HTML summary without dispatching | allow_save |
| POST | /reports/{id}/test-send?recipient=<name> | Dispatch a live send to one named recipient of the report (or of the unsaved draft in the body, {"report": {...}}) for verification. Throttled per recipient and per workspace (429), and subject to the workspace’s delivery limits | allow_save |
| GET | /reports/{id}/history | Send history | allow_save |
| GET | /reports/{id}/runs/{run_id}/output.csv | Rendered CSV | allow_save |
| DELETE | /reports/{id}/runs/{run_id}/output.csv | Right-to-erasure on one stored CSV | allow_delete |
Connections
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /connector/kinds | Supported connector types | any authenticated |
| GET / POST / PUT / DELETE | /connections, /connections/{id} | CRUD | allow_save, allow_delete |
| POST | /connections/{id}/test, /connections/test-draft | Verify credentials | allow_save |
| GET | /connections/{id}/schema, /connections/{id}/schema/columns | Introspect source | allow_save |
| GET | /connections/{id}/health | Freshness signal | allow_save |
Pipelines
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET / POST / PUT / DELETE | /pipelines, /pipelines/{id} | CRUD | allow_save, allow_delete |
| POST | /pipelines/{id}/run | Trigger a run | allow_save |
| POST | /pipelines/{id}/runs/{run_id}/rerun | Rerun a prior run | allow_save |
| POST | /pipelines/{id}/runs/{run_id}/cancel | Cancel a running run | allow_save |
| POST | /pipelines/{id}/restore | Restore a soft-deleted pipeline | allow_save |
| DELETE | /pipelines/{id}/purge | Permanently purge a soft-deleted pipeline | allow_delete |
| POST | /pipelines/{id}/rebuild-target | Rebuild the target table from source | allow_save |
| GET | /pipelines/{id}/runs, /pipeline_runs | Run listings | allow_save |
| GET | /pipelines/{id}/runs/{run_id}/log | Run log | allow_save |
| GET | /pipelines/health | Rollup status | any authenticated |
| GET | /schedule/preview | Preview a cron expression (accepts ?schedule=...&count=N) | any authenticated |
Workspaces
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /workspaces | List workspaces the caller is a member of | any authenticated |
| GET | /workspaces/{id} | Read a workspace (name, description, members). Returns an ETag header the caller can echo on the next PUT | member of {id} (404 otherwise so the id stays opaque) |
| PUT | /workspaces/{id} | Create or update a workspace. Both create and update take the caller-chosen id in the path (no dedicated POST /workspaces endpoint); the tenant scope is stamped by the server from the caller’s session. If-Match is honoured but optional: a mismatch returns 412, an absent header keeps the legacy last-write-wins contract | allow_admin_policies |
| DELETE | /workspaces/{id} | Delete a workspace. Returns 409 when artifacts are still pinned; use POST /workspaces/{id}/repin?to=<target> to bulk-move them first, then retry | allow_admin_policies |
| POST | /workspaces/{id}/repin | Bulk-move every artifact pinned to {id} onto the workspace named in ?to=<workspace-id> (use personal or the empty string to move them to the implicit personal bin). Powers the “clear the 409, then delete” flow | allow_admin_policies plus write access on the target workspace |
| GET | /workspaces/{id}/history | Version history for the workspace record | member of {id} (404 otherwise) |
| GET | /workspaces/{id}/at/{sha} | Fetch a past revision | member of {id} (404 otherwise) |
Workspace-scoped artifact endpoints (/dashboards, /charts, /queries, /notebooks, /glossary) all run canAccessWorkspace on the caller before their per-id ACL, so non-members see 404 on read and cannot target the artifact on write. See Access control - Workspaces and membership for the definitive definition, tenant scoping rules, and the embed-token workspace binding.
Notebooks
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /notebooks | List notebooks the caller can read | id in allow_notebooks |
| GET | /notebooks/{id} | Read a notebook (cells, metadata). Returns an ETag header | id in allow_notebooks |
| PUT | /notebooks/{id} | Create or update. Honours If-Match when present | allow_save |
| DELETE | /notebooks/{id} | Delete | allow_delete |
| GET | /notebooks/{id}/history, /notebooks/{id}/at/{sha} | Version history | id in allow_notebooks |
Tenant members and invites
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /tenants/{id}/members | List active members of the tenant | member of {id}, except embed tokens |
| POST | /tenants/{id}/members | Invite a user. Creates a pending membership row and emails a magic-link; the invitee only appears as a member after they accept | owner or admin, except embed tokens |
| PATCH | /tenants/{id}/members/{email} | Change a member’s role. Demotions revoke that user’s sessions in this tenant immediately | owner or admin (owner required to grant owner), except embed tokens |
| DELETE | /tenants/{id}/members/{email} | Remove a member. Revokes their sessions in this tenant immediately so their existing refresh token cannot outlive the removal | owner or admin, except embed tokens |
| GET | /auth/invites | Pending invites for the caller | any authenticated, except embed tokens |
| POST | /auth/invites/accept | Accept a pending invite. Body {tenant_id}. An invitation’s magic link accepts only that invitation; any other magic link accepts none | any authenticated, except embed tokens |
Invitations expire 30 days after they are sent. An expired invitation is no longer listed or accepted (POST /auth/invites/accept answers 410), and inviting the person again sends a new one.
Embed
| Method | Path | Purpose | Permission |
|---|---|---|---|
| POST | /embed/token | Mint a signed embed token scoped to a dashboard, filters, and TTL. Response body carries the jti needed for revoke | allow_admin_policies |
| GET | /embed/decode | Decode a token you hold, via ?token=... (debug). Returns the full claim payload including row filters and the salted password hash - every call is audited | allow_admin_policies |
| POST | /embed/{jti}/revoke | Revoke a live embed token by its jti. Idempotent; TTL matches the signer’s max-age so the entry evicts naturally. Requires the control-plane Redis - returns 503 if unavailable | allow_admin_policies |
See Embedded analytics for the mint / iframe / revoke walkthrough and security caveats.
Audit and lineage
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /audit | Query the audit log with filters | allow_admin_policies |
| GET | /lineage | Column-level lineage graph | any authenticated |
SCIM 2.0 (identity discovery)
Rooted at /scim/v2, not /api. Read-only surface: only GET is exposed.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /scim/v2/ServiceProviderConfig | SCIM discovery document (auth schemes, supported filters) | any authenticated |
| GET | /scim/v2/Users | List users from the policy store as SCIM Resources, scoped to the caller’s tenant | allow_admin_policies |
| GET | /scim/v2/Users/{id} | Fetch a single user by SCIM id | allow_admin_policies |
Glossary
Business terms, their owners and state machine, and the assignment layer that hangs terms off any lineage node. See Business glossary for the concepts.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /glossary/terms | List terms; optional ?domain=, ?status=, ?q= filters and ?limit=&cursor= pagination | any authenticated (workspace-filtered) |
| GET | /glossary/terms/{id} | Fetch one term. Response carries an ETag header the client echoes in If-Match on the next PUT | any authenticated (workspace-gated) |
| PUT | /glossary/terms/{id} | Create or update. Enforces the status state machine. Send X-Expect-Create: true on create to receive 409 Conflict if the slug is already taken (prevents silent overwrite). Honours If-Match for optimistic concurrency (412 Precondition Failed on stale) | allow_save |
| DELETE | /glossary/terms/{id} | Remove a term | allow_delete |
| GET | /glossary/terms/{id}/history | Git-backed change log | any authenticated (workspace-gated) |
| GET | /glossary/terms/{id}/at/{sha} | Term as-of a specific commit | any authenticated (workspace-gated) |
| GET | /glossary/terms/{id}/usages | Reverse lookup: which assets carry this term | any authenticated (workspace-gated) |
| GET | /glossary/assignments/{kind}/{id} | Terms attached to an asset (fans across workspaces the caller can see) | any authenticated |
| PUT | /glossary/assignments/{kind}/{id} | Replace the term-id list attached to an asset | allow_save |
| POST | /glossary/assignments/batch | Bulk lookup for many (kind, id) pairs | any authenticated |
| GET | /glossary/suggest/column/{database}/{table}/{column} | Fuzzy-ranked term suggestions for a column drawer | any authenticated |
{kind} is validated against the closed allow-list: column, table, model, metric, chart, dashboard, notebook. Id format per kind is documented in Business glossary - Assignment model.
Notifications and collaboration
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /notifications | Your inbox | any authenticated, except embed tokens |
| POST | /notifications/{id}/read | Mark one notification read | any authenticated (owner of the row), except embed tokens |
| POST | /notifications/read-all | Mark every notification in your inbox read | any authenticated, except embed tokens |
| GET / POST | /comments | Threaded comments on artifacts; list via ?target_kind=<dashboard|chart|query|metric>&target_id=<id> | allow_save for writes; embed tokens cannot write |
| GET / POST / DELETE | /favorites, /favorites/{kind}/{id}, /snippets, /snippets/{id} | Personal state | any authenticated, except embed tokens |
| GET / POST | /views, /trending, /feedback | Workspace signals | any authenticated |
AI
| Method | Path | Purpose | Permission |
|---|---|---|---|
| POST | /ask | Natural-language question to a grounded chart | any authenticated |
| GET | /ask/catalog | The grounding surface the planner sees for this caller | any authenticated |
| POST | /ask/eval | Regression harness (faithfulness + hallucination refusal) | allow_admin_policies |
| POST | /ai/chat | Threaded persona-scoped assistant | any authenticated |
| GET | /ai/conversations/history | Every conversation of yours that the server still holds, newest first. Optional ?since=<RFC 3339 time> | any authenticated, except embed tokens |
| DELETE | /ai/conversations | Delete all your conversations | any authenticated, except embed tokens |
| DELETE | /ai/conversations/{id} | Delete one of your conversations | any authenticated, except embed tokens |
| GET | /ai/budget | Per-tenant hourly token headroom | any authenticated |
AI proposals
Reviewable AI writes: an assistant drafts a mutation, a human previews and applies. See AI proposals.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /ai/proposals | List open proposals for the tenant | any authenticated |
| GET | /ai/proposals/{id} | Read one proposal | any authenticated |
| POST | /ai/proposals/{id}/apply | Apply the proposed mutation (routes through the same PUT handlers a human would use) | permission on the target artifact (allow_save for creates and edits) |
| POST | /ai/proposals/{id}/reject | Reject a proposal | allow_save |
AI scheduled tasks
Recurring persona runs with delivery. See Scheduled tasks.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /ai/tasks | List scheduled AI tasks | any authenticated |
| POST | /ai/tasks | Create a scheduled task | allow_save |
| GET | /ai/tasks/{id} | Read one task | any authenticated |
| PUT | /ai/tasks/{id} | Update a task | allow_save |
| DELETE | /ai/tasks/{id} | Delete a task | allow_delete |
| POST | /ai/tasks/{id}/run-now | Trigger a one-off run | allow_save |
AI provider (BYOK)
Per-tenant LLM provider configuration. See Ask - LLM providers and BYOK.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /settings/ai | Read the tenant’s provider config (never returns the API key) | allow_admin_policies |
| PATCH | /settings/ai | Set or update the provider, model, endpoint, and encrypted API key | allow_admin_policies |
| DELETE | /settings/ai | Clear provider config; falls back to the rules-only planner | allow_admin_policies |
Warehouse settings (BYOW)
Bring-your-own-warehouse credentials. Attaching your own ClickHouse through PATCH needs an
active paid subscription on the workspace; on a trial it returns 403.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /settings/warehouse | Read the tenant’s warehouse config (credentials redacted) | any authenticated |
| PATCH | /settings/warehouse | Update host, port, credentials, database | allow_save |
| DELETE | /settings/warehouse | Revert to platform-provided warehouse | allow_save |
Streaming subscriptions
Kafka / Kinesis / CDC subscriptions and their dead-letter queue. See Streaming subscriptions.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /streaming/subscriptions | List subscriptions | any authenticated |
| POST | /streaming/subscriptions | Create a subscription | allow_save |
| GET | /streaming/subscriptions/{id} | Read one subscription | any authenticated |
| PUT | /streaming/subscriptions/{id} | Update | allow_save |
| DELETE | /streaming/subscriptions/{id} | Delete | allow_delete |
| POST | /streaming/subscriptions/{id}/pause | Pause | allow_save |
| POST | /streaming/subscriptions/{id}/resume | Resume | allow_save |
| POST | /streaming/subscriptions/{id}/reset-offset | Reset consumer offset | allow_save |
| GET | /streaming/subscriptions/{id}/dlq | List dead-letter events | allow_save |
| POST | /streaming/subscriptions/{id}/dlq/{event_id}/redrive | Redrive one DLQ event | allow_save |
| POST | /streaming/subscriptions/{id}/dlq/{event_id}/resolve | Mark a DLQ event resolved | allow_save |
Data quality
See Data quality governance for the full RBAC and audit contract.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /data_quality | Tenant-wide roll-up of latest outcomes | any authenticated |
| GET | /data_quality/tests | List authored tests | any authenticated |
| PUT | /data_quality/tests/{id} | Create or update a test (kind: custom_sql requires allow_admin_policies) | allow_save |
| DELETE | /data_quality/tests/{id} | Delete a custom test | allow_save |
| GET | /data_quality/results | Recent-runs feed | any authenticated |
| GET | /data_quality/{table} | Per-table roll-up | any authenticated |
| POST | /data_quality/{table}/run | Run every test for one table | allow_save |
| POST | /data_quality/run_all | Full-tenant sweep | allow_save |
| GET | /data_quality/profile/{table} | Column profile for one table | allow_save |
Tags
See Tags and Audit and tags API reference.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /tags | List tags in use across the tenant | any authenticated |
Files and datasets
Upload paths for the file connector.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| POST | /files/upload | Upload a CSV / Parquet / JSON / Excel blob; returns the stored path | allow_save |
| POST | /files/preview | Preview the first rows and inferred schema of an uploaded blob | allow_save |
| GET | /datasets | List uploaded datasets | any authenticated |
| POST | /datasets/upload | Persist an uploaded blob as a first-class dataset | allow_save |
POST /datasets/upload accepts a CSV file, a JSON array of objects or newline-delimited JSON. Limits:
- up to 32 MiB per file;
- up to 200 columns and 100,000 rows;
- up to 4,000,000 cells (rows times columns);
- up to 512 KiB per CSV row.
JSON columns are the keys of the first 500 objects. An upload outside these limits is refused with 400 and a message naming the limit. Two uploads are processed at a time: a third answers 429 with Retry-After.
Exports
| Method | Path | Purpose | Permission |
|---|---|---|---|
| POST | /export/xlsx | Render a chart or dashboard as an XLSX workbook | allow_save |
| POST | /export/pptx | Render a dashboard as a PPTX deck | allow_save |
Git
Git-backed store operations (semantic project and store repo).
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /git/status | Working-tree status of the semantic and store repos | allow_admin_policies |
| POST | /git/push | Push pending commits to the configured remote | allow_admin_policies |
Cache
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /cache/stats | Query-result cache hit rate and size | allow_admin_policies |
| POST | /cache/purge | Invalidate the query-result cache for the tenant | allow_admin_policies |
Policies
RBAC policy read/write. See Access control.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /policies | Current effective policy YAML | allow_admin_policies |
| PUT | /policies | Replace the policy YAML | allow_admin_policies |
| GET | /policies/history | Commit history of the policy | allow_admin_policies |
| GET | /policies/at/{sha} | Policy YAML at a past commit | allow_admin_policies |
| GET | /policies/resolve | Resolve the caller’s effective role and gates | any authenticated |
AI proposals
Every AI-authored write lands here first as a pending proposal. A human reviewer applies or rejects it before any artifact changes. See Proposals for the full flow.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /ai/proposals | List pending proposals for the tenant | allow_save |
| GET | /ai/proposals/{id} | Fetch one proposal with its stored payload and preview | allow_save |
| POST | /ai/proposals/{id}/apply | Re-run the preview and commit the write. 422 with the proposal is returned if the target now conflicts | allow_save plus target RBAC |
| POST | /ai/proposals/{id}/reject | Mark the proposal rejected with an optional reason | allow_save |
Scheduled AI tasks
Recurring “ask” runs on the same cron and interval grammar the pipelines and alerts subsystems use. See Scheduled AI tasks.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /ai/tasks | List scheduled tasks | allow_save |
| GET | /ai/tasks/{id} | Fetch one task | allow_save |
| POST | /ai/tasks | Create a scheduled task | allow_save |
| PUT | /ai/tasks/{id} | Update a task | allow_save |
| DELETE | /ai/tasks/{id} | Delete a task | allow_save |
| POST | /ai/tasks/{id}/run-now | Dispatch a task immediately | allow_save |
Playbooks
The registry of persona playbooks the Ask and MCP surfaces consume. Metadata only, never bodies. See Persona playbooks.
| Method | Path | Purpose | Permission |
|---|---|---|---|
| GET | /playbooks | List available playbooks and their metadata plus a default_id | any authenticated |
| GET | /playbooks/{id} | Fetch one playbook’s metadata | any authenticated |
Related
- Environment variables - every knob that changes API behaviour
- Architecture - the two-planes split every endpoint respects
- Access control - the policy YAML behind every
allow_*gate - Embedded analytics - minting and using tokens for
/embed/* - MCP server - JSON-RPC surface for AI clients
- Audit and lineage - the trail every write leaves behind
Last updated