OpenAPI
Upload, access, or version-control your OpenAPI specifications directly in GitBook.
The OpenAPI endpoints let you integrate your existing or newly generated OpenAPI definitions into GitBook. This includes uploading, updating, and retrieving specs.
Attributes
objectstring · enumRequiredAllowed values:
The object type, which is always "openapi-spec"
idstringRequired
Unique identifier
createdAtstring · date-timeRequired
Date of creation
updatedAtstring · date-timeRequired
Date of the last update
slugstring · min: 1 · max: 100RequiredPattern:
Slug used as reference
^[a-z0-9]+(?:-[a-z0-9]+)*$
sourceURLstring · uri · max: 2048Optional
processingStateundefined · enumRequiredAllowed values:
Processing state
lastVersionstringOptional
ID of the latest version of the OpenAPI specification
lastProcessedAtstring · date-timeOptional
Date of the last processing
lastProcessErrorCodeundefined · enumOptionalAllowed values:
OpenAPI processing error code
The OpenAPISpec object
Was this helpful?