Preloaded Files
Returns every file in the organization's preloaded-files pool, newest first.
Preloaded files are switched on per organization from the backoffice; while off, every route under this tag answers 4235.
A preloaded file is uploaded once into the pool and then linked to any number of the organization's machines (POST /machines/{id}/preloaded-files/link). Each linked machine copies the file to Desktop\Preloaded Files (Windows: C:\Users\Administrator\Desktop\Preloaded Files, Linux: /home/ubuntu/Desktop/Preloaded Files) when its next session starts. While the copy runs the machine reports friendly_status: preparing_files and cannot be connected to.
upload_status is success once the upload is complete, pending while it is in progress and failed when the upload was never completed (an upload has 6 hours). Only files with upload_status: success can be linked. linked_machine_count is the number of machines the file is currently linked to.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
The organization's preloaded-files pool
200OK2026-02-05T10:10:22ZPreloaded files are not enabled for this organization (switched on from the backoffice)
Permission required
GET /organization-management/v1/preloaded-files HTTP/1.1
Host: api.vagon.io
Accept: */*
{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z",
"files": [
{
"id": "12",
"type": "preloaded_file",
"attributes": {
"name": "dataset.zip",
"size": 1073741824,
"upload_status": "success",
"created_at": "2026-01-01T00:00:00.000Z",
"linked_machine_count": 3
}
}
]
}Adds a file to the pool and returns presigned S3 upload URLs. Upload the file body with PUT to the URL(s), then call POST /preloaded-files/{id}/complete.
Files up to 250 MB get a single URL. Larger files get one URL per 250 MB chunk (chunk_size, in MB); upload each chunk in order with PUT, keep the ETag response header of every part, and pass them to complete. The URLs are valid for 6 hours; an upload not completed by then is discarded.
name must be a bare file name (no path separators); it is unique inside the pool, and it is the name the file gets on every linked machine's desktop.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Type
application/json
Body
name*
string
File name, as it will appear on the desktop
size*
integer
File size in bytes
dataset.zipSize in bytes
1073741824Upload URLs for the new file
200OK2026-02-05T10:10:22Z12One presigned PUT URL per chunk, in part order
Chunk size in MB
250Invalid name or size
A preloaded file with that name already exists
Preloaded file size exceeds the maximum allowed size (50 GB)
Preloaded files are not enabled for this organization (switched on from the backoffice)
Permission required
POST /organization-management/v1/preloaded-files HTTP/1.1
Host: api.vagon.io
Content-Type: application/json
Accept: */*
Content-Length: 40
{
"name": "dataset.zip",
"size": 1073741824
}{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z",
"file_id": 12,
"upload_urls": [
"text"
],
"chunk_size": 250
}Finalizes an upload started with POST /preloaded-files. For a multipart upload (more than one upload URL), parts carries the ETag of every uploaded chunk with its 1-based part_number; for a single-URL upload omit parts (an empty array is accepted too). The uploaded object's size must match the size given when the upload was started, otherwise the file is discarded and 4227 is returned.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Type
application/json
Path Parameters
id*
integer
Preloaded file ID
Body
parts
array
Multipart uploads only: [{ "part_number": 1, "etag": "..." }, ...]
Upload completed
200OK2026-02-05T10:10:22ZPreloaded file not found
Upload could not be completed (multipart error or size mismatch); the file is discarded
Preloaded files are not enabled for this organization (switched on from the backoffice)
Permission required
POST /organization-management/v1/preloaded-files/{id}/complete HTTP/1.1
Host: api.vagon.io
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"parts": [
{
"part_number": 1,
"etag": "\"9b2cf535f27731c974343645a3985328\""
}
]
}{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z",
"file": {
"id": "12",
"type": "preloaded_file",
"attributes": {
"name": "dataset.zip",
"size": 1073741824,
"upload_status": "success",
"created_at": "2026-01-01T00:00:00.000Z",
"linked_machine_count": 3
}
}
}File removed from the pool
200OK2026-02-05T10:10:22ZPreloaded file not found
Preloaded files are not enabled for this organization (switched on from the backoffice)
Permission required
DELETE /organization-management/v1/preloaded-files/{id} HTTP/1.1
Host: api.vagon.io
Accept: */*
{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z"
}The reverse of POST /machines/{id}/preloaded-files/link: links one pool file to one or more machines, all or nothing. The two directions write the same links; use whichever fits the call, for example this one to roll a file out to a group of machines. The file is copied to each machine's desktop when its next session starts.
unzip_zip_files applies to every link made by the call: the file is extracted into a folder of the same name (without .zip) next to it on each machine, the zip itself stays. It is only kept for a file whose name ends in .zip; on any other file it is ignored, not refused, and every machine answers unzip_zip_files: false.
An API secret scoped to machine_ids must cover every machine in the body.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Type
application/json
Path Parameters
id*
integer
Preloaded file ID
Body
machine_ids*
array
Machine IDs
unzip_zip_files
boolean
Extract the file on each machine (default false; ignored unless the name ends in .zip)
[101,102]Extract the file next to itself on every machine listed. Ignored unless the file name ends in .zip.
falseExample: trueThe machines the file was linked to, in the order given, each with the bytes now linked to it
200OK2026-02-05T10:10:22Zmachine_ids missing, empty or repeated
File or one of the machines not found
The file would exceed one of the machines' 50 GB limit
The file has not finished uploading
The file is already linked to one of the machines
Preloaded files are not enabled for this organization (switched on from the backoffice)
Permission required, or a machine in the body is outside the secret's machine scope
POST /organization-management/v1/preloaded-files/{id}/link HTTP/1.1
Host: api.vagon.io
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"machine_ids": [
101,
102
],
"unzip_zip_files": true
}{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z",
"machines": [
{
"id": "101",
"type": "machine",
"attributes": {
"name": "Design Workstation 3",
"os": "windows",
"sync_status": "pending",
"unzip_zip_files": false,
"synced_at": "2026-01-01T00:00:00.000Z",
"last_error": null,
"total_size": 1073741824,
"linked_at": "2026-01-01T00:00:00.000Z"
}
}
]
}The reverse of POST /machines/{id}/preloaded-files/unlink: unlinks one pool file from one or more machines. The file stays in the pool and stays on each desktop until that machine's next session start deletes it.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Type
application/json
Path Parameters
id*
integer
Preloaded file ID
Body
machine_ids*
array
Machine IDs
[101,102]File unlinked from the machines
200OK2026-02-05T10:10:22Zmachine_ids missing, empty or repeated
File not found, or it is not linked to one of the machines
Preloaded files are not enabled for this organization (switched on from the backoffice)
Permission required, or a machine in the body is outside the secret's machine scope
POST /organization-management/v1/preloaded-files/{id}/unlink HTTP/1.1
Host: api.vagon.io
Content-Type: application/json
Accept: */*
Content-Length: 25
{
"machine_ids": [
101,
102
]
}{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z"
}Returns the pool files linked to the machine. sync_status is the file's state on the machine's desktop: pending until the next session start copies it, synced once it is there (synced_at), failed when the last copy did not finish (last_error; retried at the next session start). unzip_zip_files says whether the file is extracted next to itself on this machine. total_size is the sum of the linked files' sizes in bytes and limit the per-machine ceiling (50 GB); extracted contents do not count toward either.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Path Parameters
id*
integer
Machine ID
Files linked to the machine with their sync state
200OK2026-02-05T10:10:22ZSum of the linked files' sizes in bytes
1073741824Per-machine ceiling in bytes
53687091200Machine not found or does not belong to the organization
Preloaded files are not enabled for this organization (switched on from the backoffice)
Permission required
GET /organization-management/v1/machines/{id}/preloaded-files HTTP/1.1
Host: api.vagon.io
Accept: */*
{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z",
"files": [
{
"id": "12",
"type": "preloaded_file",
"attributes": {
"name": "dataset.zip",
"size": 1073741824,
"upload_status": "success",
"sync_status": "synced",
"unzip_zip_files": false,
"synced_at": "2026-01-01T00:00:00.000Z",
"last_error": null,
"linked_at": "2026-01-01T00:00:00.000Z"
}
}
],
"total_size": 1073741824,
"limit": 53687091200
}Links one or more pool files to the machine, all or nothing: if any file cannot be linked, nothing is linked and the matching error is returned. The files are copied to the machine's desktop when its next session starts; linking while the machine is running does not touch the running session.
Each entry can ask for unzip_zip_files: the file is then extracted into a folder of the same name (without .zip) next to it, the zip itself stays. The flag is only kept for a file whose name ends in .zip; on any other file it is ignored, not refused, and the link answers unzip_zip_files: false. An extraction that fails marks the link failed with the reason in last_error, the other files are not affected, and the next session start tries again without downloading the zip anew. To change the flag of a linked file, unlink and link it again.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Type
application/json
Path Parameters
id*
integer
Machine ID
Body
files*
array
One object per file: file_id (integer, required) and unzip_zip_files (boolean, default false)
The newly created links
200OK2026-02-05T10:10:22Zfiles missing, empty or repeated, a file_id that is not a positive integer, or an unzip_zip_files that is not a boolean
Machine or one of the files not found
Linking these files would exceed the machine's 50 GB limit
One of the files has not finished uploading
One of the files is already linked to this machine
Preloaded files are not enabled for this organization (switched on from the backoffice)
Permission required
POST /organization-management/v1/machines/{id}/preloaded-files/link HTTP/1.1
Host: api.vagon.io
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"files": [
{
"file_id": 12,
"unzip_zip_files": true
}
]
}{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z",
"files": [
{
"id": "12",
"type": "preloaded_file",
"attributes": {
"name": "dataset.zip",
"size": 1073741824,
"upload_status": "success",
"sync_status": "synced",
"unzip_zip_files": false,
"synced_at": "2026-01-01T00:00:00.000Z",
"last_error": null,
"linked_at": "2026-01-01T00:00:00.000Z"
}
}
]
}Unlinks the given pool files from the machine. The desktop copies are deleted when the machine's next session starts. The files stay in the pool.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Type
application/json
Path Parameters
id*
integer
Machine ID
Body
file_ids*
array
Preloaded file IDs to unlink
[12,13]Files unlinked
200OK2026-02-05T10:10:22Zfile_ids missing or empty
Machine not found, or one of the files is not linked to it
Preloaded files are not enabled for this organization (switched on from the backoffice)
Permission required
POST /organization-management/v1/machines/{id}/preloaded-files/unlink HTTP/1.1
Host: api.vagon.io
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"file_ids": [
12,
13
]
}{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z"
}Last updated