Get the raw content of the latest OpenAPI spec version

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
specSlugstringRequired

Slug of the OpenAPI specification

Responses
200

OK

application/json

Raw original content of the specification entrypoint file.

textstringRequired

Raw specification text, exactly as submitted.

formatstring · enumRequired

Format of the raw specification text.

Possible values:
get/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content/raw
GET /v1/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content/raw HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "text": "text",
  "format": "json"
}

Last updated

Was this helpful?

Powered by GitBook