Skip to main content
GET
/
v1
/
shelves
/
{id}
/
versions
/
{version}
/
files
/
{filePath}
Get a single file from a version
curl --request GET \
  --url https://api.shelv.dev/v1/shelves/{id}/versions/{version}/files/{filePath} \
  --header 'Authorization: Bearer <token>'
"<string>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Pattern: ^shf_[0-9a-f]{24}$
version
integer
required

Version number

filePath
string
required

Relative file path within the shelf (may contain slashes)

Example:

"chapter-1/section-1.md"

Response

File content

The response is of type string.