Properties of the API
- JSON in, JSON out. Requests and responses are JSON.
- Workspace scoped. Almost every route lives under
/api/workspaces/<workspaceId>/, so one server holds many workspaces. - One permission check. An API call, the studio, a workflow and an agent all pass the same check. See Access and permissions.
- Changes are announced. Every write is also an event that can be followed. See Change feed.
The OpenAPI document
Every route, with its request and response schemas, is described in one OpenAPI 3.1 document:/reference/api/openapi.json on this site. It includes the routes added by the modules of the reference setup. The core API alone is apps/server/openapi.json in the repository, and the SDK’s types are generated from that file, so the two never disagree.
There are no per-route pages in this documentation. The OpenAPI document is the complete and exact list of routes.
Related
- Authentication: a session or an API key.
- Errors: what a failed call returns.
- Querying records: the query format.
- Change feed: follow changes as they happen.
- Module routes: actions, webhooks and a module’s own routes.