API Explorer
Fetch the latest spec body for a team-scoped private API
Returns the OpenAPI document content (YAML or JSON, as published) for the latest
version of a team-scoped private API. Mirrors the public-registry equivalent
(GET /api/v1/public/registry/{orgSlug}/{apiName}) but resolves the API by its
internal UUID so callers can target private APIs without a public org slug.
Authorization stack:
- scope:
read:specs - ABAC v2: caller must be permitted to
viewthe API resource (cross-org and cross-team isolation collapse to 404 to avoid leaking existence).
Backs spec0 pull --team (issue #149).
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
apiId*string
Format
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://app.spec0.io/api/v1/public/apis/team/497f6eca-6276-4993-bfeb-53cbbbba6f08/spec""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?