Ir al contenido
GitHub

Version

REST APIGeneratedfrom OpenAPI 3.2.0openapi.json

Esta página aún no está disponible en tu idioma.

What every endpoint shares is on Conventions.

Reports the server’s name and version.

Unauthenticated and side-effect free. Clients use it as a reachability probe before attempting a protocol handshake, so it must stay cheap and must never fail for a reason the caller could act on — there is no failure variant, and the return type says so.

Authentication: none.

Responses

  • 200 VersionResponse application/json

    OK. Headers: X-Capsule-Min-Client-Build, X-Capsule-Protocol-Max, X-Capsule-Protocol-Min, X-Request-Id.

  • 413 CodedProblem application/problem+json

    the request body exceeds the configured limit. Headers: X-Capsule-Min-Client-Build, X-Capsule-Protocol-Max, X-Capsule-Protocol-Min, X-Request-Id.

Request
curl -X GET 'https://capsule.example/v1/version'
200 · application/json
{
"name": "string",
"version": "string"
}

The models these endpoints carry, to 4 references deep.

An RFC 9457 problem detail.

Field Type Description
type string Required.
title string —
status integer Required.
detail string —
instance string —
code string Required. The stable error.* catalog code. The client localizes this; detail stays English. Present on every problem this server renders.
request_id string The UUIDv7 this server minted for the request, as the X-Request-Id header carries it. Quote it when reporting the failure: it names the request’s log lines.

Identifies the running server.

Deliberately incurious: a name and a version, no build host, no commit, no uptime, no feature list. This endpoint is unauthenticated, so everything it returns is public, and a key-free server has no reason to hand an anonymous caller a fingerprint of its deployment. Exact client build identification runs the other way — clients tell the server what they are, not the reverse.

Field Type Description
name string Required. The server package name.
version string Required. The server package version.