Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Preloaded Files

List Preloaded Files

get

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

Name
Type

Authorization*

HMAC {key}:{signature}:{nonce}:{timestamp}

Responses
200

The organization's preloaded-files pool

application/json
client_codeintegerOptionalExample: 200
messagestringOptionalExample: OK
timestampstring · date-timeOptionalExample: 2026-02-05T10:10:22Z
get/preloaded-files
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
      }
    }
  ]
}

Create Preloaded File (Start Upload)

post

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

Name
Type

Authorization*

HMAC {key}:{signature}:{nonce}:{timestamp}

Content-Type

application/json

Body

Name
Type
Description

name*

string

File name, as it will appear on the desktop

size*

integer

File size in bytes

Body
namestringRequiredExample: dataset.zip
sizeintegerRequired

Size in bytes

Example: 1073741824
Responses
200

Upload URLs for the new file

application/json
client_codeintegerOptionalExample: 200
messagestringOptionalExample: OK
timestampstring · date-timeOptionalExample: 2026-02-05T10:10:22Z
file_idintegerOptionalExample: 12
upload_urlsstring[]Optional

One presigned PUT URL per chunk, in part order

chunk_sizeintegerOptional

Chunk size in MB

Example: 250
post/preloaded-files
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
}

Complete Preloaded File Upload

post

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

Name
Type

Authorization*

HMAC {key}:{signature}:{nonce}:{timestamp}

Content-Type

application/json

Path Parameters

Name
Type
Description

id*

integer

Preloaded file ID

Body

Name
Type
Description

parts

array

Multipart uploads only: [{ "part_number": 1, "etag": "..." }, ...]

Body
Responses
200

Upload completed

application/json
client_codeintegerOptionalExample: 200
messagestringOptionalExample: OK
timestampstring · date-timeOptionalExample: 2026-02-05T10:10:22Z
post/preloaded-files/{id}/complete
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
    }
  }
}

Delete Preloaded File

delete

Removes the file from the pool and unlinks it from every machine. Each machine deletes its desktop copy when its next session starts.

Headers

Name
Type

Authorization*

HMAC {key}:{signature}:{nonce}:{timestamp}

Path Parameters

Name
Type
Description

id*

integer

Preloaded file ID

Responses
200

File removed from the pool

application/json
client_codeintegerOptionalExample: 200
messagestringOptionalExample: OK
timestampstring · date-timeOptionalExample: 2026-02-05T10:10:22Z
delete/preloaded-files/{id}
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"
}

Link Preloaded File to Machines

post

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

Name
Type

Authorization*

HMAC {key}:{signature}:{nonce}:{timestamp}

Content-Type

application/json

Path Parameters

Name
Type
Description

id*

integer

Preloaded file ID

Body

Name
Type
Description

machine_ids*

array

Machine IDs

unzip_zip_files

boolean

Extract the file on each machine (default false; ignored unless the name ends in .zip)

Body
machine_idsinteger[]RequiredExample: [101,102]
unzip_zip_filesbooleanOptional

Extract the file next to itself on every machine listed. Ignored unless the file name ends in .zip.

Default: falseExample: true
Responses
200

The machines the file was linked to, in the order given, each with the bytes now linked to it

application/json
client_codeintegerOptionalExample: 200
messagestringOptionalExample: OK
timestampstring · date-timeOptionalExample: 2026-02-05T10:10:22Z
post/preloaded-files/{id}/link
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"
      }
    }
  ]
}

Unlink Preloaded File from Machines

post

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

Name
Type

Authorization*

HMAC {key}:{signature}:{nonce}:{timestamp}

Content-Type

application/json

Path Parameters

Name
Type
Description

id*

integer

Preloaded file ID

Body

Name
Type
Description

machine_ids*

array

Machine IDs

Body
machine_idsinteger[]RequiredExample: [101,102]
Responses
200

File unlinked from the machines

application/json
client_codeintegerOptionalExample: 200
messagestringOptionalExample: OK
timestampstring · date-timeOptionalExample: 2026-02-05T10:10:22Z
post/preloaded-files/{id}/unlink
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"
}

List Machine Preloaded Files

get

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

Name
Type

Authorization*

HMAC {key}:{signature}:{nonce}:{timestamp}

Path Parameters

Name
Type
Description

id*

integer

Machine ID

Responses
200

Files linked to the machine with their sync state

application/json
client_codeintegerOptionalExample: 200
messagestringOptionalExample: OK
timestampstring · date-timeOptionalExample: 2026-02-05T10:10:22Z
total_sizeintegerOptional

Sum of the linked files' sizes in bytes

Example: 1073741824
limitintegerOptional

Per-machine ceiling in bytes

Example: 53687091200
get/machines/{id}/preloaded-files
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
}

Link Preloaded Files to Machine

post

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

Name
Type

Authorization*

HMAC {key}:{signature}:{nonce}:{timestamp}

Content-Type

application/json

Path Parameters

Name
Type
Description

id*

integer

Machine ID

Body

Name
Type
Description

files*

array

One object per file: file_id (integer, required) and unzip_zip_files (boolean, default false)

Body
Responses
200

The newly created links

application/json
client_codeintegerOptionalExample: 200
messagestringOptionalExample: OK
timestampstring · date-timeOptionalExample: 2026-02-05T10:10:22Z
post/machines/{id}/preloaded-files/link
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"
      }
    }
  ]
}

Unlink Preloaded Files from Machine

post

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

Name
Type

Authorization*

HMAC {key}:{signature}:{nonce}:{timestamp}

Content-Type

application/json

Path Parameters

Name
Type
Description

id*

integer

Machine ID

Body

Name
Type
Description

file_ids*

array

Preloaded file IDs to unlink

Body
file_idsinteger[]RequiredExample: [12,13]
Responses
200

Files unlinked

application/json
client_codeintegerOptionalExample: 200
messagestringOptionalExample: OK
timestampstring · date-timeOptionalExample: 2026-02-05T10:10:22Z
post/machines/{id}/preloaded-files/unlink
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