Get Snapshot File
curl --request GET \
--url https://api.voyager.so/v1/machines/snapshots/{snapshot}/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.voyager.so/v1/machines/snapshots/{snapshot}/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.voyager.so/v1/machines/snapshots/{snapshot}/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"snapshot_id": "<string>",
"path": "<string>",
"size_bytes": 123,
"url": "<string>",
"expires_at": "<string>",
"next": "<string>"
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}Get Snapshot File
Read one file out of a snapshot without leasing a machine: a link to download it from, valid for an hour.
Free. Files up to 2 GiB (413 file_too_large past it); a workspace runs at most 8 reads at once and 500 in any
24 hours (429 quota_exceeded, details.kind snapshot_reads_concurrent or snapshot_reads). Reading the same
file again within a day answers a new link at once and counts toward neither limit. A read still running when this
call has waited long enough answers 503 download_in_progress: send the same request again. A missing file is
404 not_found, a directory 400; a snapshot that cannot be read this way (a portable one) is
409 unsupported_capability: lease a machine from it instead.
GET
/
machines
/
snapshots
/
{snapshot}
/
files
Get Snapshot File
curl --request GET \
--url https://api.voyager.so/v1/machines/snapshots/{snapshot}/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.voyager.so/v1/machines/snapshots/{snapshot}/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.voyager.so/v1/machines/snapshots/{snapshot}/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"snapshot_id": "<string>",
"path": "<string>",
"size_bytes": 123,
"url": "<string>",
"expires_at": "<string>",
"next": "<string>"
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"retryable": true,
"retry_after_ms": 123,
"param": "<string>",
"loc": [
"<string>"
],
"details": {}
}
}Query Parameters
Response
Successful Response