Skip to Content
API ReferenceAPI Reference

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.json

On 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

GroupBase PathDescription
Auth/api/auth/*Login, logout, refresh, password reset
Items/api/items/:collectionGeneric CRUD for any collection
Users/api/usersUser management
Roles/api/rolesRole management
Policies/api/policiesPolicy management
Permissions/api/permissionsPermission rules
Access/api/accessAccess records (role-policy-user assignments)
Collections/api/collectionsSchema introspection and DDL
Fields/api/fieldsColumn metadata and DDL
Relations/api/relationsForeign key and relation metadata
Files/api/filesFile upload and management
Folders/api/foldersFolder management
Assets/api/assets/:id (on the Engine: /api/files/assets/:id)File asset serving
Versions/api/versionsContent versioning
Workflows/api/workflowsWorkflow definitions
Workflow Assignments/api/workflow-assignmentsWorkflow–collection assignments
Workflow Instances/api/workflow-instancesActive workflow states
Extensions/api/ext/*Custom extension endpoint execution. Not available on the Buildpad Engine backend
Extension Management/api/extensionsExtension CRUD, activate, deactivate
Schema/api/schema/*Snapshot, diff, apply
Settings/api/settingsGeneral, CORS, SMTP, MCP project settings
Utils/api/utils/*Hash, random, export, import, sort, cache
Server/api/server/*Ping, health, info
Health/api/healthDeprecated alias of /api/server/health. Use /api/server/ping for liveness and /api/server/health for readiness
Activity/api/activityUser activity log — DB changes plus non-DB events like login/logout (admin, or read permission on daas_activity)
Activity Event/api/activity/eventLog 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/revisionsRead-only item change audit log (admin only)
Logs/api/logsIn-memory runtime logs and SSE stream (admin or system:logs module access; clearing is admin-only)
Cron/api/cronScheduled cron job management (admin only)
Services/api/servicesCustom HTTP service definitions (admin only)
Scope/api/scopeHierarchical scope and multi-tenancy management
Workflow/api/workflowWorkflow transition endpoint
MCP/api/mcpModel Context Protocol server

The Engine also serves:

GroupBase PathDescription
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/tenantList the caller’s tenants and switch the session to another one
External sign-in/api/auth/external-sign-inThe 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/tenantsTenant 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.com

Authentication

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.

Two error shapes are used across the API:

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" }