API reference

Upload, list, share and sync files from your own scripts and back-office systems. Requests and responses are JSON over HTTPS, and every call has the same access as the account that owns the token.

Base URL https://syncxfiles.com/rest/2026-02

The date in the path is the API version. When we make a change that could break your code, we publish a new dated version and keep the previous one running for at least 12 months. This page describes version 2026-02.

The Python and JavaScript examples build on the setup in Authentication. They use the requests library and the built-in fetch of Node.js 18 or later.

Authentication

Every request needs a personal access token. Create one in the Syncx web app under Settings, Developer, Personal tokens. Pick the scopes it needs and an expiry date up to one year ahead. The token is shown only once, so keep it in a secret manager or an environment variable, never in code that runs in a browser.

Send the token in the Authorization header. Tokens start with sxf_pat_.

export SYNCX_TOKEN="sxf_pat_your_token"

curl https://syncxfiles.com/rest/2026-02/drives \
  -H "Authorization: Bearer $SYNCX_TOKEN"

Scopes

Scope Allows
files.readList drives and items, download files, read revisions and the change feed.
files.writeUpload, rename, move and delete files and folders.
shares.writeCreate share links for items the token can read.

A missing, expired or revoked token returns 401. A token without the scope an endpoint needs returns 403. On Team, admins can see and revoke every token in the admin console.

Conventions

  • Request and response bodies are JSON in UTF-8. Send Content-Type: application/json with every body, except file parts.
  • Times are ISO 8601 strings in UTC, like 2026-10-09T08:14:52Z. Sizes are in bytes.
  • Every response has an X-Request-Id header. Quote it when you write to support.

Every ID starts with a prefix that tells you what it points to:

Prefix Object
drv_Drive, personal or team
itm_File or folder
upl_Upload in progress
rev_Earlier version of a file
shr_Share link
req_Request, for support and error reports

Pagination

Endpoints that return lists send up to limit results and a next_cursor. Pass it back as cursor to get the next page. When next_cursor is null, you have everything. Cursors stay valid for 24 hours.

# Second page of the top level of your drive
curl -G https://syncxfiles.com/rest/2026-02/items \
  -H "Authorization: Bearer $SYNCX_TOKEN" \
  -d parent=root \
  -d cursor=c_2kPq7Xw9Ld

Rate limits

Limits are counted per token, per minute. Sending file parts counts like any other request.

Plan Requests a minute
Free60
Plus300
Team1,200

Every response tells you where you stand:

Header Meaning
RateLimit-LimitRequests allowed in the current minute.
RateLimit-RemainingRequests left in the current minute.
RateLimit-ResetSeconds until the count starts again.

Over the limit, you get 429 Too Many Requests with a Retry-After header in seconds. Wait that long, then retry.

Response 429 Too Many Requests
HTTP/1.1 429 Too Many Requests
Content-Type: application/problem+json
RateLimit-Limit: 300
RateLimit-Remaining: 0
RateLimit-Reset: 17
Retry-After: 17

{
  "type": "https://syncxfiles.com/rest/errors/rate-limited",
  "title": "Too many requests",
  "status": 429,
  "detail": "This token has used its 300 requests for this minute. Retry in 17 seconds.",
  "request_id": "req_01JB8X7R4W2NP3"
}

Errors

Errors come as application/problem+json. The status code says what kind of error it is, detail explains this case in plain English, and request_id helps us find the request if you write to support.

Error body 409 Conflict
{
  "type": "https://syncxfiles.com/rest/errors/name-conflict",
  "title": "An item with this name already exists",
  "status": 409,
  "detail": "The folder Contracts already has a file named act-2026-09.pdf.",
  "request_id": "req_01JB8X4M2T9QK6"
}
Status When it happens
400The request is malformed, for example invalid JSON or an unknown parameter.
401The token is missing, expired or revoked.
403The token lacks the scope, or you have no access to this item.
404The item does not exist, or the token cannot see it.
409The folder already has an item with this name.
412The ETag in If-Match is out of date. Read the item again.
413A part is larger than part_size, or the file does not fit in your storage.
422The request is valid JSON but cannot be done, for example a checksum mismatch.
429Too many requests. See Rate limits.
500Something failed on our side. Retry with a growing delay.
503Briefly unavailable, usually during maintenance. Retry after Retry-After.

List drives

GET /drives

Returns the drives the token can see: your personal drive and, on Team, every team drive you are a member of. Sizes are in bytes.

Needs the files.read scope.

Parameters

This endpoint takes no parameters.

Example

curl https://syncxfiles.com/rest/2026-02/drives \
  -H "Authorization: Bearer $SYNCX_TOKEN"
Response 200 OK
{
  "data": [
    {
      "id": "drv_7Hq2Lx9VmK",
      "name": "My drive",
      "type": "personal",
      "quota_bytes": 1099511627776,
      "used_bytes": 48213504211,
      "created_at": "2024-03-18T06:42:10Z"
    },
    {
      "id": "drv_Tm4cR8wNe2",
      "name": "Accounting",
      "type": "team",
      "quota_bytes": 5497558138880,
      "used_bytes": 912734118402,
      "created_at": "2025-01-27T09:15:33Z"
    }
  ]
}

List items in a folder

GET /items

Returns the files and folders directly inside one folder: folders first, then files, each sorted by name. Results come in pages, see Pagination.

Needs the files.read scope.

Parameters

ParameterTypeDescription
Query
parentstring
Required
Folder ID, or root for the top level of the drive.
drivestringDrive ID. Defaults to your personal drive.
cursorstringThe next_cursor from the previous page.
limitintegerItems per page, 1-200. Default 50.

Example

curl -G https://syncxfiles.com/rest/2026-02/items \
  -H "Authorization: Bearer $SYNCX_TOKEN" \
  -d parent=root \
  -d limit=100
Response 200 OK
{
  "data": [
    {
      "id": "itm_3mZr8TqA1c",
      "type": "folder",
      "name": "Contracts",
      "parent_id": "root",
      "drive_id": "drv_7Hq2Lx9VmK",
      "etag": "12-a07be3c1",
      "modified_at": "2026-10-02T11:20:05Z"
    },
    {
      "id": "itm_8Vd2Kp6Wq4",
      "type": "file",
      "name": "report-q3.pdf",
      "parent_id": "root",
      "drive_id": "drv_7Hq2Lx9VmK",
      "size": 2482113,
      "mime_type": "application/pdf",
      "etag": "4-54ba90b1",
      "modified_at": "2026-10-08T07:51:19Z"
    }
  ],
  "next_cursor": "c_2kPq7Xw9Ld"
}

Get an item

GET /items/{id}

Returns one file or folder. Files include their size, type, SHA-256 and current revision. The etag changes every time the item changes, and the same value comes back in the ETag response header.

Needs the files.read scope.

Parameters

ParameterTypeDescription
Path
idstring
Required
Item ID.

Example

curl https://syncxfiles.com/rest/2026-02/items/itm_8Vd2Kp6Wq4 \
  -H "Authorization: Bearer $SYNCX_TOKEN"
Response 200 OK
{
  "id": "itm_8Vd2Kp6Wq4",
  "type": "file",
  "name": "report-q3.pdf",
  "parent_id": "root",
  "drive_id": "drv_7Hq2Lx9VmK",
  "size": 2482113,
  "mime_type": "application/pdf",
  "sha256": "54ba90b1d43ec38670997f1f3d23b5fd74d9a56fc981e206c814c3a4b1b2e6ee",
  "etag": "4-54ba90b1",
  "revision_id": "rev_9dPa6Ex3Yh",
  "created_at": "2026-09-30T13:02:44Z",
  "modified_at": "2026-10-08T07:51:19Z"
}

Download a file

GET /items/{id}/content

Returns the bytes of a file with its Content-Type. Send a Range header to download part of a file or to resume a download that stopped; the response is then 206 Partial Content.

Folders cannot be downloaded this way. To download a folder, list its items and download each file.

Needs the files.read scope.

Parameters

ParameterTypeDescription
Path
idstring
Required
File ID.
Query
revisionstringRevision ID, to download an earlier version. Defaults to the current one. See List revisions.
Headers
RangestringByte range, like bytes=0-1048575.

Example

curl https://syncxfiles.com/rest/2026-02/items/itm_8Vd2Kp6Wq4/content \
  -H "Authorization: Bearer $SYNCX_TOKEN" \
  -H "Range: bytes=0-1048575" \
  -o report-q3.part
Response 206 Partial Content
HTTP/1.1 206 Partial Content
Content-Type: application/pdf
Content-Length: 1048576
Content-Range: bytes 0-1048575/2482113
Accept-Ranges: bytes
ETag: "4-54ba90b1"

Rename or move an item

PATCH /items/{id}

Changes the name of an item, the folder it is in, or both. Send at least one of name and parent.

Put the ETag you last read in If-Match. If someone changed the item since then, you get 412 and nothing is changed: read the item again and decide what to do. If the target folder already has an item with the new name, you get 409.

Needs the files.write scope.

Parameters

ParameterTypeDescription
Path
idstring
Required
Item ID.
Headers
If-Matchstring
Required
The item's current ETag, in double quotes.
Body
namestringNew name, up to 255 characters.
parentstringID of the folder to move the item into, or root.

Example

curl -X PATCH https://syncxfiles.com/rest/2026-02/items/itm_8Vd2Kp6Wq4 \
  -H "Authorization: Bearer $SYNCX_TOKEN" \
  -H 'If-Match: "4-54ba90b1"' \
  -H "Content-Type: application/json" \
  -d '{"name": "report-q3-final.pdf", "parent": "itm_3mZr8TqA1c"}'
Response 200 OK
{
  "id": "itm_8Vd2Kp6Wq4",
  "type": "file",
  "name": "report-q3-final.pdf",
  "parent_id": "itm_3mZr8TqA1c",
  "drive_id": "drv_7Hq2Lx9VmK",
  "size": 2482113,
  "mime_type": "application/pdf",
  "sha256": "54ba90b1d43ec38670997f1f3d23b5fd74d9a56fc981e206c814c3a4b1b2e6ee",
  "etag": "5-54ba90b1",
  "revision_id": "rev_9dPa6Ex3Yh",
  "created_at": "2026-09-30T13:02:44Z",
  "modified_at": "2026-10-09T08:12:07Z"
}

Move an item to the trash

DELETE /items/{id}

Moves a file or folder, with everything inside it, to the trash. Items stay in the trash for 30 days on Free, 180 days on Plus and one year on Team, and can be restored from the apps until then.

Send If-Match to make sure you delete the version you expect.

Needs the files.write scope.

Parameters

ParameterTypeDescription
Path
idstring
Required
Item ID.
Headers
If-MatchstringOnly delete if the item still has this ETag.

Example

curl -X DELETE https://syncxfiles.com/rest/2026-02/items/itm_8Vd2Kp6Wq4 \
  -H "Authorization: Bearer $SYNCX_TOKEN" \
  -H 'If-Match: "5-54ba90b1"'
Response 204 No Content
HTTP/1.1 204 No Content

List revisions of a file

GET /items/{id}/revisions

Returns the earlier versions of a file, newest first, for as long as your plan keeps version history. source tells you where the change came from: desktop, mobile, web or api. To get the contents of a revision, pass its ID to Download a file.

Needs the files.read scope.

Parameters

ParameterTypeDescription
Path
idstring
Required
File ID.
Query
cursorstringThe next_cursor from the previous page.
limitintegerRevisions per page, 1-200. Default 50.

Example

curl https://syncxfiles.com/rest/2026-02/items/itm_8Vd2Kp6Wq4/revisions \
  -H "Authorization: Bearer $SYNCX_TOKEN"
Response 200 OK
{
  "data": [
    {
      "id": "rev_9dPa6Ex3Yh",
      "size": 2482113,
      "sha256": "54ba90b1d43ec38670997f1f3d23b5fd74d9a56fc981e206c814c3a4b1b2e6ee",
      "source": "desktop",
      "created_at": "2026-10-08T07:51:19Z"
    },
    {
      "id": "rev_2Lc5Hn8Ub6",
      "size": 2479380,
      "sha256": "464b95a81cb1603b0206fa5f846ae1aa74a693778ff1bb15e1612edeed889660",
      "source": "web",
      "created_at": "2026-10-03T15:06:47Z"
    }
  ],
  "next_cursor": null
}

Start an upload

POST /uploads

Files go up in three steps: start an upload, send its parts, then commit. Parts are 8 MiB, except the last one, and you can send them in any order and in parallel. If a part fails, send it again.

An upload expires 24 hours after it starts. The file appears in the drive only after the commit.

Needs the files.write scope.

Parameters

ParameterTypeDescription
Body
namestring
Required
File name, up to 255 characters.
parentstring
Required
Folder ID, or root.
sizeinteger
Required
File size in bytes.
sha256string
Required
SHA-256 of the whole file as 64 hex characters. Checked on commit.
on_conflictstringWhat to do if the folder already has an item with this name: fail (default), rename or new_revision.

Example

curl https://syncxfiles.com/rest/2026-02/uploads \
  -H "Authorization: Bearer $SYNCX_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "backup-2026-10-09.tar.gz",
    "parent": "itm_5Wk9Rb3Lm7",
    "size": 46137344,
    "sha256": "3160e62f245abfea704796956dcbf517177f947fe7d917d38452176fbc16c39e"
  }'
Response 201 Created
{
  "upload_id": "upl_Q4n7Wb2Ks0",
  "part_size": 8388608,
  "part_count": 6,
  "expires_at": "2026-10-10T08:14:52Z"
}

Upload a part

PUT /uploads/{upload_id}/parts/{n}

Send part n as the raw request body. Every part except the last must be exactly part_size bytes. Sending the same part number again replaces it.

Needs the files.write scope.

Parameters

ParameterTypeDescription
Path
upload_idstring
Required
The upload_id from Start an upload.
ninteger
Required
Part number, from 1 to part_count.
Headers
Content-Typestring
Required
application/octet-stream
Content-Lengthinteger
Required
Size of this part in bytes.

Example

# Part 1 of 6: the first 8 MiB of the file
dd if=backup-2026-10-09.tar.gz bs=8388608 skip=0 count=1 2>/dev/null |
  curl -X PUT https://syncxfiles.com/rest/2026-02/uploads/upl_Q4n7Wb2Ks0/parts/1 \
  -H "Authorization: Bearer $SYNCX_TOKEN" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @-
Response 200 OK
{
  "part": 1,
  "size": 8388608,
  "received_at": "2026-10-09T08:15:03Z"
}

Commit an upload

POST /uploads/{upload_id}/commit

Checks that every part has arrived, compares the SHA-256 of the assembled file with the one you sent when you started, and creates the file. If a part is missing or the checksum does not match, you get 422; the upload stays open and you can send the affected parts again.

Needs the files.write scope.

Parameters

ParameterTypeDescription
Path
upload_idstring
Required
The upload_id from Start an upload.

Example

curl -X POST https://syncxfiles.com/rest/2026-02/uploads/upl_Q4n7Wb2Ks0/commit \
  -H "Authorization: Bearer $SYNCX_TOKEN"
Response 201 Created
{
  "id": "itm_6Jx4Tz9Pd3",
  "type": "file",
  "name": "backup-2026-10-09.tar.gz",
  "parent_id": "itm_5Wk9Rb3Lm7",
  "drive_id": "drv_7Hq2Lx9VmK",
  "size": 46137344,
  "mime_type": "application/gzip",
  "sha256": "3160e62f245abfea704796956dcbf517177f947fe7d917d38452176fbc16c39e",
  "etag": "1-3160e62f",
  "revision_id": "rev_4Tb8Gm1Zc5",
  "created_at": "2026-10-09T08:16:12Z",
  "modified_at": "2026-10-09T08:16:12Z"
}

Create a share link

POST /shares

Creates a link that opens a file or folder in the browser, without a Syncx account. On Free, a link must expire within 7 days and cannot have a password.

Needs the shares.write scope.

Parameters

ParameterTypeDescription
Body
item_idstring
Required
ID of the file or folder to share.
expires_atstringTime the link stops working, in ISO 8601. Required on Free, at most 7 days ahead.
passwordstringPlus and Team. People who open the link must type it.
allow_downloadbooleanDefault true. Set to false to allow viewing only.
allowed_domainsarray of stringsTeam only. Only people signed in with an email at one of these domains can open the link.

Example

curl https://syncxfiles.com/rest/2026-02/shares \
  -H "Authorization: Bearer $SYNCX_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "item_id": "itm_3mZr8TqA1c",
    "expires_at": "2026-10-16T18:00:00Z",
    "password": "orchard-lantern-41",
    "allow_download": false
  }'
Response 201 Created
{
  "id": "shr_K2v8Nf5Rt1",
  "url": "https://syncxfiles.com/s/K2v8Nf5Rt1",
  "item_id": "itm_3mZr8TqA1c",
  "expires_at": "2026-10-16T18:00:00Z",
  "has_password": true,
  "allow_download": false,
  "allowed_domains": [],
  "created_at": "2026-10-09T08:20:31Z"
}

Follow changes

GET /changes

The change feed is how the Syncx apps keep folders in sync, and your code can use it the same way. Call it once with cursor=latest to get a starting point, then keep calling it with the cursor from the last response.

With wait, the request stays open until something changes or the time runs out, so you hear about changes within a second without polling. If has_more is true, call again right away.

Change types are item.created, item.updated, item.moved and item.deleted.

Needs the files.read scope.

Parameters

ParameterTypeDescription
Query
cursorstring
Required
latest, or the cursor from the previous response.
waitintegerSeconds to wait for a change, 0-60. Default 0.
limitintegerChanges per response, 1-500. Default 100.
drivestringOnly changes in this drive. Defaults to every drive the token can see.

Example

curl -G https://syncxfiles.com/rest/2026-02/changes \
  -H "Authorization: Bearer $SYNCX_TOKEN" \
  -d cursor=ch_8Fq2Ny6Wd0 \
  -d wait=30
Response 200 OK
{
  "changes": [
    {
      "type": "item.created",
      "at": "2026-10-09T08:16:12Z",
      "item": {
        "id": "itm_6Jx4Tz9Pd3",
        "type": "file",
        "name": "backup-2026-10-09.tar.gz",
        "parent_id": "itm_5Wk9Rb3Lm7",
        "etag": "1-3160e62f"
      }
    },
    {
      "type": "item.deleted",
      "at": "2026-10-09T08:17:40Z",
      "item": {
        "id": "itm_1Qe7Vg2Ma8",
        "type": "file",
        "name": "backup-2026-10-02.tar.gz",
        "parent_id": "itm_5Wk9Rb3Lm7"
      }
    }
  ],
  "cursor": "ch_8Fq2Ny6Wd0",
  "has_more": false
}