Which runtime answers
const url = 'https://example.com/v1/runtime';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/runtime \ --header 'Authorization: Bearer <token>'Its version, how many tenants it serves and whether it runs in development mode: what a client says about the runtime it’s connected to. Any caller of a tenant reads it; no right is asked. A runtime that doesn’t report it answers 404.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Which runtime answers.
Which runtime answers: what a client says about the runtime it’s connected to.
object
The runtime’s version: its release, such as 0.3.0, or what its build gave otherwise (dev when it gave none).
single when the runtime serves one tenant, multi when it serves many.
The runtime runs in development mode, which allows development-only settings.
Example
{ "tenancy": "single"}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The database was too busy to answer in time (database-busy); Retry-After (whole seconds) says when to try again.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}