API Reference
The platform ships with a full OpenAPI 3.0 specification and an interactive Swagger UI explorer.
The interactive API explorer is served directly from your running BuildPad DaaS instance. Navigate to /api-explorer in the admin UI to explore and test all endpoints interactively.
On the Buildpad Engine backend, the API Explorer shows the Engine’s OpenAPI document, which describes the routes that the Engine serves. Try it out sends the request with your Studio session.
OpenAPI Specification
The raw OpenAPI JSON is available at:
GET /api/docs/openapi.jsonOn the Buildpad Engine backend, send this request to the Engine’s URL, with a bearer token. Without a session, the Engine answers 401. The Engine also serves the document at /api/server/specs/oas.
You can import this URL into any API client that supports OpenAPI — Postman, Insomnia, Bruno, or any code generator.
Endpoint Groups
| Group | Base Path | Description |
|---|---|---|
| Auth | /api/auth/* | Login, logout, refresh, password reset |
| Items | /api/items/:collection | Generic CRUD for any collection |
| Users | /api/users | User management |
| Roles | /api/roles | Role management |
| Policies | /api/policies | Policy management |
| Permissions | /api/permissions | Permission rules |
| Access | /api/access | Access records (role-policy-user assignments) |
| Collections | /api/collections | Schema introspection and DDL |
| Fields | /api/fields | Column metadata and DDL |
| Relations | /api/relations | Foreign key and relation metadata |
| Files | /api/files | File upload and management |
| Folders | /api/folders | Folder management |
| Assets | /api/assets/:id (on the Engine: /api/files/assets/:id) | File asset serving |
| Versions | /api/versions | Content versioning |
| Workflows | /api/workflows | Workflow definitions |
| Workflow Assignments | /api/workflow-assignments | Workflow–collection assignments |
| Workflow Instances | /api/workflow-instances | Active workflow states |
| Extensions | /api/ext/* | Custom extension endpoint execution. Not available on the Buildpad Engine backend |
| Extension Management | /api/extensions | Extension CRUD, activate, deactivate |
| Schema | /api/schema/* | Snapshot, diff, apply |
| Settings | /api/settings | General, CORS, SMTP, MCP project settings |
| Utils | /api/utils/* | Hash, random, export, import, sort, cache |
| Server | /api/server/* | Ping, health, info |
| Health | /api/health | Deprecated alias of /api/server/health. Use /api/server/ping for liveness and /api/server/health for readiness |
| Activity | /api/activity | User activity log — DB changes plus non-DB events like login/logout (admin, or read permission on daas_activity) |
| Activity Event | /api/activity/event | Log a non-DB activity event (impersonation, or any custom event; the server-written login/logout/CRUD actions are reserved); any authenticated user for themselves, admin for others |
| Revisions | /api/revisions | Read-only item change audit log (admin only) |
| Logs | /api/logs | In-memory runtime logs and SSE stream (admin or system:logs module access; clearing is admin-only) |
| Cron | /api/cron | Scheduled cron job management (admin only) |
| Services | /api/services | Custom HTTP service definitions (admin only) |
| Scope | /api/scope | Hierarchical scope and multi-tenancy management |
| Workflow | /api/workflow | Workflow transition endpoint |
| MCP | /api/mcp | Model Context Protocol server |
The Engine also serves:
| Group | Base Path | Description |
|---|---|---|
| Supabase-compatible auth | /auth/v1/* | Token (password, refresh and ID token grants), user and logout, for a Supabase client |
| Tenants of the caller | /api/auth/tenants, /api/auth/tenant | List the caller’s tenants and switch the session to another one |
| External sign-in | /api/auth/external-sign-in | The client ids that a tenant trusts for sign-in with an identity provider, and the starting role it gives new accounts |
| MFA | /api/auth/mfa/* | Enroll, list, verify and remove TOTP factors |
| Tenants | /api/tenants | Tenant management on the host |
Base URL
On the Buildpad Engine backend, the base URL is the Engine’s URL, for example https://engine.example.com. The Studio’s URL serves the Studio.
Development: http://localhost:3000
Production: https://your-domain.comAuthentication
All endpoints require a Bearer token in the Authorization header, a session cookie, or a static token. The Engine accepts a static token only on the routes that take one. See Authentication for details.
Error Format
On the Buildpad Engine backend, the /api routes answer errors in the structured envelope below. The /auth/v1 routes answer in the Supabase format.
Structured envelope (used by collections, settings, schema, files, folders, etc.):
{
"errors": [
{
"message": "You don't have permission to access this.",
"extensions": { "code": "FORBIDDEN" }
}
]
}Simple message (used by auth, items, MCP settings, and a subset of utility endpoints):
{
"error": "Not authenticated"
}