Reference

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/health liveness, unauthenticated, rate-limit exempt
  • GET /api/ready readiness (warehouse plus control plane), unauthenticated
  • GET /metrics Prometheus 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.

ModeHeaderUse it for
Session cookiegoni_session cookieThe Goni web app in a browser
JWT bearerAuthorization: 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 tokenAuthorization: Bearer <embed>Signed, scoped tokens for embedding dashboards or charts in your app. See Embedded analytics
MCP tokenJSON-RPC initialize handshake with a JWT or PATAI 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

  1. Sign in to your workspace.
  2. Open Settings, then Personal Access Tokens (/settings/tokens).
  3. Click New token, give it a label (for example ci-runner), and pick a TTL. Default is 90 days, maximum is 365.
  4. 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:

HeaderValueNotes
AuthorizationBearer <token>Required for every non-public endpoint
Content-Typeapplication/jsonRequired for POST, PUT, PATCH with a body
Acceptapplication/jsonDefault; specific endpoints support text/csv or application/vnd.ms-excel for exports
If-MatchETag from a prior GETOptimistic concurrency on artifact PUT

Responses you read:

HeaderMeaning
X-Trace-IdCorrelates your request with server logs for support tickets
X-RateLimit-ClassWhich limit class ran, heavy, cheap, or auth
Retry-AfterSeconds to wait after a 429 before retrying
X-Goni-Limit-AdjustedPresent on metric queries when Goni raised your requested LIMIT to a workspace floor. Format <requested>-><applied>
ETagVersion tag for artifact GET responses

Error envelope

Every non-2xx JSON response uses one shape:

{ "error": "human-readable message" }

Common status codes:

CodeMeaning
400Invalid JSON body, missing path parameter, or a semantic-layer compile error. Message names the field
401Missing, malformed, or expired token. "access token expired" means refresh and retry
403Authenticated, but your policy does not grant the required permission. The permission name appears in the message, for example "requires allow_admin_policies"
404The artifact id does not exist, or your policy does not include it in your allow-list
409If-Match mismatch on an artifact PUT. Re-GET, merge, retry
429Rate limit exceeded. Read Retry-After and X-RateLimit-Class
500Server-side failure. Include X-Trace-Id in the support ticket
503Warehouse 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):

ClassApplies to
auth/api/auth/* endpoints; low burst because each call may involve an identity-provider round-trip
heavyWarehouse-touching endpoints: SQL runs, metric queries, pipeline runs, connection schema fetch, AI Q&A, exports, and anything ending in /run or /test
cheapEverything 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.

PermissionGrants
allow_saveCreate 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_policiesRead and edit the policy YAML, list users, mint embed tokens, call SCIM /scim/v2/Users
allow_deleteDelete artifacts you own
Per-id allow-listsallow_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 masksApplied 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

MethodPathPurpose
POST/auth/refreshExchange a refresh cookie for a new access JWT
POST/auth/magic-link/requestSend a sign-in email
POST/auth/magic-link/verifyVerify the magic-link token (see body + response below)
GET/auth/oidc/login, /auth/oidc/callbackSSO round-trip
GET/auth/meThe current session identity; embed tokens get 403
POST/auth/logoutEnd the CURRENT session only - clears the cookie + revokes the presented refresh token
POST/auth/sessions/endEnd EVERY session for the current user across every device - revokes all outstanding refresh tokens; embed tokens get 403
POST/auth/switchSwitch 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/logout clears 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/end revokes 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

MethodPathPurposePermission
POST/access_tokensMint 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_tokensList 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 callerauthenticated, except embed tokens; owner of jti
GET/users/{email}/access_tokensList another user’s PATs (same tenant)allow_admin_policies
DELETE/users/{email}/access_tokens/{jti}Admin-side revoke; ?reason=<free-text> stamps the audit rowallow_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.

MethodPathPurposePermission
DELETE/meSelf-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}/purgeAdmin-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

MethodPathPurposePermission
GET/dashboardsList dashboards you can readid in allow_dashboards
GET/dashboards/{id}Read a dashboardid in allow_dashboards
PUT/dashboards/{id}Create or updateallow_save
DELETE/dashboards/{id}Deleteallow_delete
POST/dashboards/{id}/forkDuplicateallow_save
POST/dashboards/{id}/summaryAuto-generated executive summary (accepts ?window_days=N)id in allow_dashboards
GET/dashboards/{id}/export.zipExport bundleid in allow_dashboards
POST/dashboards/importImport a bundleallow_save
GET/dashboards/{id}/history, /dashboards/{id}/at/{sha}Version historyid in allow_dashboards

Charts

MethodPathPurposePermission
GET / PUT / DELETE/charts, /charts/{id}CRUDid in allow_charts, allow_save, allow_delete
GET/charts/{id}/compiled-sqlCompiled SQL that renders the chartid in allow_charts
GET/charts/{id}/history, /charts/{id}/at/{sha}Version historyid in allow_charts

Queries and SQL

MethodPathPurposePermission
GET / PUT / DELETE/queries, /queries/{id}Saved queriesid in allow_queries, allow_save, allow_delete
POST/queryRun adhoc SQLallow_save
POST/sql/validateParse and validate without runningany authenticated
GET/query_historyYour recent runsany authenticated, except embed tokens
GET/warehouse/schema, /warehouse/columns/{database}/{table}Warehouse introspectionany authenticated

Metrics and models (semantic layer)

MethodPathPurposePermission
GET/metricsMetric catalogname in allow_metrics
PUT / DELETE/metrics/{name}Upsert or remove a user-layer metricallow_save, allow_delete
POST/metric/{name}/queryRun a metricname in allow_metrics
GET/metric/{name}/trust, /metric/{name}/blameQuality and provenancename in allow_metrics
GET/models, /models/{name}, /sources, /lineage, /catalogModel, source, lineage graphany authenticated

Alerts

MethodPathPurposePermission
GET / PUT / DELETE/alerts, /alerts/{id}CRUDallow_save, allow_delete
POST/alerts/{id}/runEvaluate nowallow_save
POST/alerts/{id}/muteSilenceallow_save
GET/alerts/{id}/historyFire historyallow_save

Reports

MethodPathPurposePermission
GET / PUT / DELETE/reports, /reports/{id}CRUDallow_save, allow_delete
POST/reports/{id}/runSend nowallow_save
POST/reports/{id}/previewDry-run: return the first 20 rows and the rendered HTML summary without dispatchingallow_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 limitsallow_save
GET/reports/{id}/historySend historyallow_save
GET/reports/{id}/runs/{run_id}/output.csvRendered CSVallow_save
DELETE/reports/{id}/runs/{run_id}/output.csvRight-to-erasure on one stored CSVallow_delete

Connections

MethodPathPurposePermission
GET/connector/kindsSupported connector typesany authenticated
GET / POST / PUT / DELETE/connections, /connections/{id}CRUDallow_save, allow_delete
POST/connections/{id}/test, /connections/test-draftVerify credentialsallow_save
GET/connections/{id}/schema, /connections/{id}/schema/columnsIntrospect sourceallow_save
GET/connections/{id}/healthFreshness signalallow_save

Pipelines

MethodPathPurposePermission
GET / POST / PUT / DELETE/pipelines, /pipelines/{id}CRUDallow_save, allow_delete
POST/pipelines/{id}/runTrigger a runallow_save
POST/pipelines/{id}/runs/{run_id}/rerunRerun a prior runallow_save
POST/pipelines/{id}/runs/{run_id}/cancelCancel a running runallow_save
POST/pipelines/{id}/restoreRestore a soft-deleted pipelineallow_save
DELETE/pipelines/{id}/purgePermanently purge a soft-deleted pipelineallow_delete
POST/pipelines/{id}/rebuild-targetRebuild the target table from sourceallow_save
GET/pipelines/{id}/runs, /pipeline_runsRun listingsallow_save
GET/pipelines/{id}/runs/{run_id}/logRun logallow_save
GET/pipelines/healthRollup statusany authenticated
GET/schedule/previewPreview a cron expression (accepts ?schedule=...&count=N)any authenticated

Workspaces

MethodPathPurposePermission
GET/workspacesList workspaces the caller is a member ofany authenticated
GET/workspaces/{id}Read a workspace (name, description, members). Returns an ETag header the caller can echo on the next PUTmember 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 contractallow_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 retryallow_admin_policies
POST/workspaces/{id}/repinBulk-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” flowallow_admin_policies plus write access on the target workspace
GET/workspaces/{id}/historyVersion history for the workspace recordmember of {id} (404 otherwise)
GET/workspaces/{id}/at/{sha}Fetch a past revisionmember 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

MethodPathPurposePermission
GET/notebooksList notebooks the caller can readid in allow_notebooks
GET/notebooks/{id}Read a notebook (cells, metadata). Returns an ETag headerid in allow_notebooks
PUT/notebooks/{id}Create or update. Honours If-Match when presentallow_save
DELETE/notebooks/{id}Deleteallow_delete
GET/notebooks/{id}/history, /notebooks/{id}/at/{sha}Version historyid in allow_notebooks

Tenant members and invites

MethodPathPurposePermission
GET/tenants/{id}/membersList active members of the tenantmember of {id}, except embed tokens
POST/tenants/{id}/membersInvite a user. Creates a pending membership row and emails a magic-link; the invitee only appears as a member after they acceptowner or admin, except embed tokens
PATCH/tenants/{id}/members/{email}Change a member’s role. Demotions revoke that user’s sessions in this tenant immediatelyowner 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 removalowner or admin, except embed tokens
GET/auth/invitesPending invites for the callerany authenticated, except embed tokens
POST/auth/invites/acceptAccept a pending invite. Body {tenant_id}. An invitation’s magic link accepts only that invitation; any other magic link accepts noneany 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

MethodPathPurposePermission
POST/embed/tokenMint a signed embed token scoped to a dashboard, filters, and TTL. Response body carries the jti needed for revokeallow_admin_policies
GET/embed/decodeDecode a token you hold, via ?token=... (debug). Returns the full claim payload including row filters and the salted password hash - every call is auditedallow_admin_policies
POST/embed/{jti}/revokeRevoke 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 unavailableallow_admin_policies

See Embedded analytics for the mint / iframe / revoke walkthrough and security caveats.

Audit and lineage

MethodPathPurposePermission
GET/auditQuery the audit log with filtersallow_admin_policies
GET/lineageColumn-level lineage graphany authenticated

SCIM 2.0 (identity discovery)

Rooted at /scim/v2, not /api. Read-only surface: only GET is exposed.

MethodPathPurposePermission
GET/scim/v2/ServiceProviderConfigSCIM discovery document (auth schemes, supported filters)any authenticated
GET/scim/v2/UsersList users from the policy store as SCIM Resources, scoped to the caller’s tenantallow_admin_policies
GET/scim/v2/Users/{id}Fetch a single user by SCIM idallow_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.

MethodPathPurposePermission
GET/glossary/termsList terms; optional ?domain=, ?status=, ?q= filters and ?limit=&cursor= paginationany authenticated (workspace-filtered)
GET/glossary/terms/{id}Fetch one term. Response carries an ETag header the client echoes in If-Match on the next PUTany 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 termallow_delete
GET/glossary/terms/{id}/historyGit-backed change logany authenticated (workspace-gated)
GET/glossary/terms/{id}/at/{sha}Term as-of a specific commitany authenticated (workspace-gated)
GET/glossary/terms/{id}/usagesReverse lookup: which assets carry this termany 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 assetallow_save
POST/glossary/assignments/batchBulk lookup for many (kind, id) pairsany authenticated
GET/glossary/suggest/column/{database}/{table}/{column}Fuzzy-ranked term suggestions for a column drawerany 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

MethodPathPurposePermission
GET/notificationsYour inboxany authenticated, except embed tokens
POST/notifications/{id}/readMark one notification readany authenticated (owner of the row), except embed tokens
POST/notifications/read-allMark every notification in your inbox readany authenticated, except embed tokens
GET / POST/commentsThreaded 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 stateany authenticated, except embed tokens
GET / POST/views, /trending, /feedbackWorkspace signalsany authenticated

AI

MethodPathPurposePermission
POST/askNatural-language question to a grounded chartany authenticated
GET/ask/catalogThe grounding surface the planner sees for this callerany authenticated
POST/ask/evalRegression harness (faithfulness + hallucination refusal)allow_admin_policies
POST/ai/chatThreaded persona-scoped assistantany authenticated
GET/ai/conversations/historyEvery conversation of yours that the server still holds, newest first. Optional ?since=<RFC 3339 time>any authenticated, except embed tokens
DELETE/ai/conversationsDelete all your conversationsany authenticated, except embed tokens
DELETE/ai/conversations/{id}Delete one of your conversationsany authenticated, except embed tokens
GET/ai/budgetPer-tenant hourly token headroomany authenticated

AI proposals

Reviewable AI writes: an assistant drafts a mutation, a human previews and applies. See AI proposals.

MethodPathPurposePermission
GET/ai/proposalsList open proposals for the tenantany authenticated
GET/ai/proposals/{id}Read one proposalany authenticated
POST/ai/proposals/{id}/applyApply 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}/rejectReject a proposalallow_save

AI scheduled tasks

Recurring persona runs with delivery. See Scheduled tasks.

MethodPathPurposePermission
GET/ai/tasksList scheduled AI tasksany authenticated
POST/ai/tasksCreate a scheduled taskallow_save
GET/ai/tasks/{id}Read one taskany authenticated
PUT/ai/tasks/{id}Update a taskallow_save
DELETE/ai/tasks/{id}Delete a taskallow_delete
POST/ai/tasks/{id}/run-nowTrigger a one-off runallow_save

AI provider (BYOK)

Per-tenant LLM provider configuration. See Ask - LLM providers and BYOK.

MethodPathPurposePermission
GET/settings/aiRead the tenant’s provider config (never returns the API key)allow_admin_policies
PATCH/settings/aiSet or update the provider, model, endpoint, and encrypted API keyallow_admin_policies
DELETE/settings/aiClear provider config; falls back to the rules-only plannerallow_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.

MethodPathPurposePermission
GET/settings/warehouseRead the tenant’s warehouse config (credentials redacted)any authenticated
PATCH/settings/warehouseUpdate host, port, credentials, databaseallow_save
DELETE/settings/warehouseRevert to platform-provided warehouseallow_save

Streaming subscriptions

Kafka / Kinesis / CDC subscriptions and their dead-letter queue. See Streaming subscriptions.

MethodPathPurposePermission
GET/streaming/subscriptionsList subscriptionsany authenticated
POST/streaming/subscriptionsCreate a subscriptionallow_save
GET/streaming/subscriptions/{id}Read one subscriptionany authenticated
PUT/streaming/subscriptions/{id}Updateallow_save
DELETE/streaming/subscriptions/{id}Deleteallow_delete
POST/streaming/subscriptions/{id}/pausePauseallow_save
POST/streaming/subscriptions/{id}/resumeResumeallow_save
POST/streaming/subscriptions/{id}/reset-offsetReset consumer offsetallow_save
GET/streaming/subscriptions/{id}/dlqList dead-letter eventsallow_save
POST/streaming/subscriptions/{id}/dlq/{event_id}/redriveRedrive one DLQ eventallow_save
POST/streaming/subscriptions/{id}/dlq/{event_id}/resolveMark a DLQ event resolvedallow_save

Data quality

See Data quality governance for the full RBAC and audit contract.

MethodPathPurposePermission
GET/data_qualityTenant-wide roll-up of latest outcomesany authenticated
GET/data_quality/testsList authored testsany 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 testallow_save
GET/data_quality/resultsRecent-runs feedany authenticated
GET/data_quality/{table}Per-table roll-upany authenticated
POST/data_quality/{table}/runRun every test for one tableallow_save
POST/data_quality/run_allFull-tenant sweepallow_save
GET/data_quality/profile/{table}Column profile for one tableallow_save

Tags

See Tags and Audit and tags API reference.

MethodPathPurposePermission
GET/tagsList tags in use across the tenantany authenticated

Files and datasets

Upload paths for the file connector.

MethodPathPurposePermission
POST/files/uploadUpload a CSV / Parquet / JSON / Excel blob; returns the stored pathallow_save
POST/files/previewPreview the first rows and inferred schema of an uploaded bloballow_save
GET/datasetsList uploaded datasetsany authenticated
POST/datasets/uploadPersist an uploaded blob as a first-class datasetallow_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

MethodPathPurposePermission
POST/export/xlsxRender a chart or dashboard as an XLSX workbookallow_save
POST/export/pptxRender a dashboard as a PPTX deckallow_save

Git

Git-backed store operations (semantic project and store repo).

MethodPathPurposePermission
GET/git/statusWorking-tree status of the semantic and store reposallow_admin_policies
POST/git/pushPush pending commits to the configured remoteallow_admin_policies

Cache

MethodPathPurposePermission
GET/cache/statsQuery-result cache hit rate and sizeallow_admin_policies
POST/cache/purgeInvalidate the query-result cache for the tenantallow_admin_policies

Policies

RBAC policy read/write. See Access control.

MethodPathPurposePermission
GET/policiesCurrent effective policy YAMLallow_admin_policies
PUT/policiesReplace the policy YAMLallow_admin_policies
GET/policies/historyCommit history of the policyallow_admin_policies
GET/policies/at/{sha}Policy YAML at a past commitallow_admin_policies
GET/policies/resolveResolve the caller’s effective role and gatesany 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.

MethodPathPurposePermission
GET/ai/proposalsList pending proposals for the tenantallow_save
GET/ai/proposals/{id}Fetch one proposal with its stored payload and previewallow_save
POST/ai/proposals/{id}/applyRe-run the preview and commit the write. 422 with the proposal is returned if the target now conflictsallow_save plus target RBAC
POST/ai/proposals/{id}/rejectMark the proposal rejected with an optional reasonallow_save

Scheduled AI tasks

Recurring “ask” runs on the same cron and interval grammar the pipelines and alerts subsystems use. See Scheduled AI tasks.

MethodPathPurposePermission
GET/ai/tasksList scheduled tasksallow_save
GET/ai/tasks/{id}Fetch one taskallow_save
POST/ai/tasksCreate a scheduled taskallow_save
PUT/ai/tasks/{id}Update a taskallow_save
DELETE/ai/tasks/{id}Delete a taskallow_save
POST/ai/tasks/{id}/run-nowDispatch a task immediatelyallow_save

Playbooks

The registry of persona playbooks the Ask and MCP surfaces consume. Metadata only, never bodies. See Persona playbooks.

MethodPathPurposePermission
GET/playbooksList available playbooks and their metadata plus a default_idany authenticated
GET/playbooks/{id}Fetch one playbook’s metadataany authenticated

Last updated