Spec0docsCLI 0.7.0
API Explorer

Fetch a specific spec version

Returns the immutable OpenAPI document published under the given SemVer tag. Use this when a consumer needs to pin to a specific contract — e.g. CI regenerating SDKs from 1.2.3 even after 1.3.0 ships. Returns 404 if either the API or that specific tag does not exist.

GET
/api/v1/public/registry/{orgSlug}/{apiName}/versions/{tag}

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token. Either a Personal Access Token (pat_...) or a Service Account Token (sat_...). Issued via the Spec0 dashboard or /me/personal-access-tokens.

In: header

Path Parameters

orgSlug*string
apiName*string
tag*string

SemVer tag (e.g. "1.0.0", "2.1.3")

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://app.spec0.io/api/v1/public/registry/string/string/versions/string"
"string"
{
  "error": "string",
  "message": "string"
}
{
  "status": 0,
  "title": "string",
  "detail": "string",
  "type": "string",
  "instance": "string"
}
{
  "status": 0,
  "title": "string",
  "detail": "string",
  "type": "string",
  "instance": "string"
}
Was this helpful?