Get a spec file
Gets the contents of an API specification's file.
Authentication
x-api-keystring
API Key authentication via header
OR
Authorizationstring
A valid [SCIM API key](https://learning.postman.com/docs/administration/scim-provisioning/scim-provisioning-overview/#generating-scim-api-key) for calls to SCIM endpoints.
OR
AuthorizationBasic
Basic authentication of the form Basic <base64(username:password)>.
Path parameters
specId
The spec's ID.
filePath
The path to the file.
Response
Successful Response
id
The file's ID.
name
The file's name.
path
The file's path.
createdBy
The user ID of the user that created the file.
updatedBy
The ID of the user who updated the file.
createdAt
The date and time at which the file was created.
updatedAt
The date and time at which the file was updated.
type
The type of file:
ROOT— A file containing the full OpenAPI structure and references other (DEFAULT) spec files.DEFAULT— A file referenced by theROOTfile.
content
The file's stringified contents.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error