Reference

HTTP API reference

Every route this platform serves, what it accepts, and the ones it deliberately does not serve.

Base path: /api/:apiVersion. Any well-formed pinned version is accepted; v2026-07-26 is the baseline the behaviour is specified against.

Data

RouteMethodNotes
/data/query/:datasetGET, POSTGROQ. Params, perspective, sync tags, optional resultSourceMap.
/data/doc/:dataset/:idGETOne document by id.
/data/mutate/:datasetPOSTcreate, createIfNotExists, createOrReplace, patch, delete. One transaction.
/data/actions/:datasetPOSTdocument.create, edit, publish, discard, delete, unpublish.
/data/listen/:datasetGETServer-sent events.
/data/references/:dataset/documents/:id/toGETWhat references this document.
/data/history/:dataset/documents/:idGET?revision=, ?time=, ?lastRevision=.
/data/history/:dataset/events/documents/:idGETOne event per transaction, deletions included.
/data/history/:dataset/transactions/:idGETNDJSON transaction log.
/data/ping/:datasetGETLiveness.

Assets

RouteMethodNotes
/assets/:kind/:datasetPOSTRaw bytes. Capped by the platform request limit.
/assets/:kind/:dataset/client-uploadPOSTIssues a token for browser-direct upload, then commits metadata.
/images/:projectId/:dataset/:filenameGETBytes plus the supported transform parameters.
/files/:projectId/:dataset/:filenameGETFile bytes.

Project, users and collaboration

RouteNotes
/projects/:projectId, /projects/:projectId/datasetsProject and dataset metadata the Studio reads on boot.
/projects/:projectId/grantsThe grants payload, projected from the role table.
/users/me, /users/:id, /usersThe current user, one user, and the directory mentions and assignment need.
/users/me/keyvalue/:keysStudio preferences.
/comments/:dataset…, /tasks/:dataset…Collaboration surfaces. Partial.
/preview-url-secret/:datasetIssues the preview secret.
/ping, /features, /descriptors/…Boot-time calls that error visibly if unanswered.

Errors

Sanity-shaped envelopes, so a client can react to them:

json
{
  "error": {
    "type": "mutationError",
    "description": "The document references a document that does not exist",
    "items": [{ "error": { "type": "documentNotFoundError", "id": "author-missing" } }]
  }
}

Deliberately not served

Anything belonging to a hosted content lake: dataset creation and deletion, project provisioning, hosted scheduling and releases, and the SaaS media library. Those are management-plane operations for a service this platform replaces.