Skip to content

Which runtime answers

View as Markdown
GET
/v1/runtime
curl --request GET \
--url https://example.com/v1/runtime \
--header 'Authorization: Bearer <token>'

Its version, how many tenants it serves, whether it runs in development mode, and whether it serves connections to other apps: what a client says about the runtime it’s connected to. Any caller of a workspace reads it; no right is asked. A runtime that doesn’t report it answers 404.

Which runtime answers.

Media typeapplication/json

Which runtime answers: what a client says about the runtime it’s connected to.

object
version
required

The runtime’s version: its release, such as 0.3.0, or what its build gave otherwise (dev when it gave none).

string
tenancy
required

single when the runtime serves one tenant, multi when it serves many.

string
Allowed values: single multi
development
required

The runtime runs in development mode, which allows development-only settings.

boolean
connections

Whether the runtime serves connections to other apps. Absent when the runtime doesn’t say.

object
on
required

The runtime serves connections.

boolean
reason

Only when on is false, and only from a runtime in development mode: the runtime’s own words for what connections need. A runtime in production never says.

string
Example
{
"tenancy": "single"
}

Missing / malformed / expired / revoked bearer token.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}
Retry-After
integer
>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}
Retry-After
integer
>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

See also