Skip to content
All changes

An HTTP API reference, OpenAPI documents and clearer API answers

Every BuildBase server now serves its OpenAPI documents, the docs gain a page per public API operation, and several API answers get clearer.

Added
8
  • DocumentationThe docs now have an HTTP API reference at docs.buildbase.app/http-api/reference, with a page for each operation of the public API, the one @buildbase/sdk and your app call. Each page gives the sign-in, rate limits, request fields, answers and errors, with samples in cURL, TypeScript and Python, and has a Markdown copy. Where what a call returns is not written down yet, the page says so and stays out of search engines.
  • APIEvery BuildBase server now serves its OpenAPI 3.1 documents, with no sign-in: GET /api/v1/openapi.json for the public API and GET /api/v1/openapi/org-api.json for the organization (admin) API. The docs keep a copy of the public one at docs.buildbase.app/openapi/public-v1.json, for Postman, a code generator or an AI tool.
  • APIGET /.well-known/api-catalog on the API now answers an API catalog (RFC 9727), which leads a tool from the domain to both OpenAPI documents and their docs. The catalogs on buildbase.app and docs.buildbase.app now point at the documents too.
  • Self-hostingA self-hosted server serves its own copy of both OpenAPI documents, with its own address as the first server, so a client generated from it calls your server. Its API catalog lists your server and leaves out BuildBase's status page.
  • AgentsThe console's MCP server has a new get_api_operation tool. Give it an operationId such as workspaces.list, or a method and path, and it answers that operation's sign-in, permission, rate limits, parameters, request, responses and docs page, or the closest matches when nothing fits. search_docs now finds API operations too, and both need only console:read.
  • DocumentationMany success answers in the OpenAPI documents and the reference come from answers recorded while our tests ran. They show what the API returned, not a promise: the documents mark each one x-observed: true and list none of its fields as required. A response schema without that mark is part of the contract.
  • DocumentationThe reference shows the OAuth 2.0 token, revoke, introspect and device authorization endpoints with the error body they send, error and error_description as RFC 6749 sets out, and their 401 invalid_client. The two routes that add an affiliate directly say they never succeed and point at the invitations route instead.
  • APIGET /api/v1/public/devices now also answers maxDevices: how many devices a person can stay signed in on at once when a device limit applies, so your app can warn that one more sign-in signs out the device used least recently. It is null when no device limit applies.
Improved
3
  • APIEvery POST, PUT and PATCH of the public API now has a request body schema in its OpenAPI document. Behaviour change: a route that reads no body, such as declining an invitation, completing an upload or resuming a subscription, still takes no body or any JSON object, but a JSON array now answers 400. Sign in with Apple's callback now answers 400 to a state, code, user or id_token that is not one string of bounded length.
  • APIBehaviour change: workspace, profile and notification values sent through the public API now have limits and answer 400 past one, where anything up to the 5 MB request cap was stored before. A workspace name or a profile name takes up to 200 characters, and a workspace name can no longer be only spaces. A profile country, language, currency and timezone take up to 100, 64, 16 and 64 characters, a workspace permission override up to 100 roles of 300 permissions, and bb.notification.send() an event name of 128 characters and 64 KB of data.
  • APIA browser can now read the Retry-After header on a 429 or a 503 from the API, so @buildbase/sdk in a web page can wait as long as it is asked instead of using its own back-off. The 503 ENVIRONMENT_UNAVAILABLE answer also carries the wait in its body, as retryAfterSeconds.
Fixed
2
  • APIA 404 whose message is already a sentence is now sent as written. The SDK's workspace calls answered a missing workspace with not found Workspace (its id) not found, which apps and agents showed as is; they now say Workspace (its id) not found. A 404 that names only a thing keeps its old wording.
  • SDKupdateWorkspaceSettings() from useSaaSWorkspaces() called a route the server never had, so it failed with no reason. It now answers 403 WORKSPACE_SETTINGS_ORG_WIDE, keeps the person signed in and names updateWorkspacePermissions(workspaceId, permissions), which changes one workspace's permissions. The defaults for every workspace are changed by your team in the console.

Use what shipped this week

Everything in this release is already in the console and the SDK.

Free plan7-day free trial on paid plansNo credit card required