Skip to main content
GET
Read a file on a volume

Authorizations

Authorization
string
header
required

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

Path Parameters

volume_id
string
required

Id of the volume, as returned by create.

Pattern: ^vol_

Query Parameters

path
string
required

Path on the volume, relative to its root, with or without a leading slash: skills/review.md and /skills/review.md name the same file. A .. segment is rejected.

Required string length: 1 - 4096

Response

The file's bytes. Content-Length is the file's size, and X-Sail-File-Mode is its POSIX mode as a decimal number.

The response is of type file.