Skip to content

Get the bytes of one file in a bundle version. The default is the current version.

GET
/docs/{docId}/files/content
curl --request GET \
--url 'https://example.com/api/v1/docs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/files/content?path=example'
docId
required
string format: uuid

The ID of one spec doc.

path
required
string

A file path relative to the bundle folder, with / separators.

version
string format: uuid

The file content.

Media typeapplication/octet-stream
string

An error.

Media typeapplication/problem+json

RFC 9457 problem details with a stable code.

object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required

A stable machine-readable error code.

string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": "example"
}