Skip to content

Documentation

v1 · 25 November 2026

Ruza DriveThe public REST API of Ruza Drive, by Ruza'Gency.

Base URL

Every call starts from this address, over HTTPS only:

https://api.ruzagency.com/drive/v1

JSON in UTF-8, RFC 3339 dates in UTC, sizes in bytes, UUID identifiers; root names the root of the drive. A downloaded file is always served as an attachment.

Authentication

Every request carries an API key in the Authorization header:

Authorization: Bearer rza_YOUR_KEY

Create your keys in your Ruza'Gency account, API keys: you choose their permissions and may restrict them to a folder, to IP addresses and to a lifetime. The full key is shown only once; keep it like a password, never in a URL nor in front-end code (key security).

Terms of use

The API is open to every Ruza'Gency account, the Free plan included, within each plan's rate limits. Its use must stay reasonable; in case of abuse, API access may be blocked, keys revoked or the account suspended.

Use of the API is subject to the Ruza'Gency terms, article 46 in particular.

Permissions

Every endpoint requires precise permissions, stated under "Access"; a write permission does not imply reading. The 12 permissions

Rate limits

Per account, per minute and per day by plan; every answer gives X-RateLimit-Remaining. Beyond: 429 and Retry-After. Limits

Errors

An error answers {"error": {"code", "message", "request_id"}}; test code, never the message. Code catalogue

Pagination

Lists return next: pass it back as after for the next page; null marks the last one. limit sets the page size.

Idempotency

POST requests accept Idempotency-Key: a retry with the same value gets the same answer for 24 hours. If-Match guards against concurrent changes (412).

Versions

v1 is stable: only compatible additions. A breaking change will open v2, and v1 will stay served for 12 months at least. Changelog

Quickstart

Guided example: a key, your drive, a file uploaded then shared, step by step (fictive data).

See the guided example

OpenAPI 3.1 contract

The full contract of the endpoints, to generate a client or import it into your tool.

Export the docs (YAML)

Ruza Drive

Service

State of the service and this contract. No key needed.

get/status

Service status

The public state of the Ruza services (incidents, maintenance), as the status page shows it.

Access: public, no key.

Responses

200The current state.
get/status
curl "https://api.ruzagency.com/drive/v1/status"
{
  "v": 1,
  "page_url": "https://status.ruzagency.com",
  "banner": null,
  "others": 0
}
get/openapi.yaml

This contract

This OpenAPI 3.1 document.

Access: public, no key.

Responses

200The document.
get/openapi.yaml
curl "https://api.ruzagency.com/drive/v1/openapi.yaml"
openapi: 3.1.0
info:
  title: Ruza Drive API
  version: "1.0.0"
...

Ruza Drive

Key and account

The key in use, the account's plan, quota and usage.

get/key

The key in use

What the key of the request may do, its restrictions, its expiry and the account's request rates. Any valid key.

Access: any valid key, whatever its permissions.

Responses

200The key.
401Missing, invalid or expired key
429Too many requests
get/key
curl "https://api.ruzagency.com/drive/v1/key" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "key": {
    "id": "4f6a8c0e-2b4d-4f6a-8c0e-2b4d6f8a0c2e",
    "permissions": [
      "drive.account:read",
      "drive.files:read",
      "drive.files:write"
    ],
    "allowed_ips": [
      "203.0.113.0/24"
    ],
    "expires_at": "2026-12-31T23:59:59Z",
    "limits": {
      "requests_per_minute": 60,
      "requests_per_day": 5000
    }
  }
}
get/account

The account

Plan, quota, space used, what the account may do now and the measures in force.

Access: key with the permission drive.account:read (See the plan, the quota and the space used).

Key restricted to a folder: accepted, limited to that folder.

Responses

200The account.
401Missing, invalid or expired key
403The key or the account may not do this
429Too many requests
get/account
curl "https://api.ruzagency.com/drive/v1/account" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "account": {
    "user_id": "9d2e4f6a-8b0c-4d1e-a3f5-7b9c1d3e5f7a",
    "tenant": {
      "id": "1a3c5e7b-9d1f-4b2d-8e4a-6c8e0a2b4d6f",
      "ruza_user_id": "9d2e4f6a-8b0c-4d1e-a3f5-7b9c1d3e5f7a",
      "state": "active",
      "quota_bytes": 214748364800,
      "created_at": "2026-03-02T09:14:00Z",
      "plan": {
        "id": "free",
        "names": {
          "fr": "Gratuit",
          "en": "Free"
        }
      }
    },
    "usage": {
      "used_bytes": 5368709120,
      "reserved_bytes": 0,
      "available_bytes": 209379655680,
      "object_count": 1284,
      "file_count": 1203,
      "over_quota": false
    },
    "access": {
      "read": true,
      "write": true,
      "move": true,
      "delete": true,
      "download": true,
      "share": true
    },
    "restrictions": [],
    "trash": {
      "retention_seconds": 2592000
    }
  }
}
get/account/usage/types

Space by file type

The live files (current versions, outside the trash) totalled by lower-case extension; "" for names without one.

Access: key with the permission drive.account:read (See the plan, the quota and the space used).

Key restricted to a folder: refused (403 folder_restricted).

Responses

200The totals.
401Missing, invalid or expired key
403The key or the account may not do this
429Too many requests
get/account/usage/types
curl "https://api.ruzagency.com/drive/v1/account/usage/types" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "extensions": {
    "pdf": {
      "bytes": 734003200,
      "files": 42
    },
    "jpg": {
      "bytes": 734003200,
      "files": 42
    }
  }
}
get/account/usage/folders

Space by top-level folder

For each folder at the top of the drive, the files, subfolders and bytes of its whole subtree, keyed by folder ID.

Access: key with the permission drive.account:read (See the plan, the quota and the space used).

Key restricted to a folder: refused (403 folder_restricted).

Responses

200The totals.
401Missing, invalid or expired key
403The key or the account may not do this
429Too many requests
get/account/usage/folders
curl "https://api.ruzagency.com/drive/v1/account/usage/folders" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "folders": {
    "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b": {
      "files": 42,
      "folders": 7,
      "bytes": 734003200
    }
  }
}

Ruza Drive

Files and folders

Files and folders of the drive.

get/entries/by-path

Find an entry by its path

The live entry at a path from the root of the drive (or of the key's folder), names compared ignoring case and accents, as the application does.

Access: key with the permission drive.files:read (See files and folders).

Key restricted to a folder: accepted, limited to that folder.

Query parameters

path
stringrequired
Slash-separated names, such as /Invoices/2026/march.pdf.

Responses

200The entry and its path
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/entries/by-path
curl "https://api.ruzagency.com/drive/v1/entries/by-path?path=%2FInvoices%2F2026" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  },
  "path": [
    {
      "id": "7c2e9a41-5b3d-4e8f-a1c6-d2e3f4a5b6c7",
      "name": "",
      "kind": "root"
    },
    {
      "id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
      "name": "Invoices",
      "kind": "folder"
    },
    {
      "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
      "name": "Invoice-2026-03.pdf",
      "kind": "file"
    }
  ]
}
get/entries/{id}

Get an entry

A file or folder with its path from the root. root names the root of the drive (or of the key's folder).

Access: key with the permission drive.files:read (See files and folders).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
stringrequired
An entry ID, or root.

Responses

200The entry and its path
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/entries/{id}
curl "https://api.ruzagency.com/drive/v1/entries/root" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  },
  "path": [
    {
      "id": "7c2e9a41-5b3d-4e8f-a1c6-d2e3f4a5b6c7",
      "name": "",
      "kind": "root"
    },
    {
      "id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
      "name": "Invoices",
      "kind": "folder"
    },
    {
      "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
      "name": "Invoice-2026-03.pdf",
      "kind": "file"
    }
  ]
}
patch/entries/{id}

Rename or move an entry

Give name, parent_id, or both. With If-Match (the entry's revision, its ETag), the change fails with 412 if the entry changed meanwhile.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
stringrequired
An entry ID, or root.

Headers

If-Match
string
The revision (ETag) the change applies to; 412 if it changed meanwhile.

Body (application/json)

name
string
New name.
parent_id
string
Destination folder (UUID or root).

Responses

200The entry, changed
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
412The resource changed meanwhile
429Too many requests
patch/entries/{id}
curl -X PATCH "https://api.ruzagency.com/drive/v1/entries/root" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Invoices 2026",
    "parent_id": "root"
  }'
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  }
}
delete/entries/{id}

Move an entry to the trash

The entry, and everything below a folder, goes to the trash, restorable for the time the plan keeps it.

Access: key with the permission drive.files:trash (Move to the trash and restore).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
stringrequired
An entry ID, or root.

Responses

200The entry
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
429Too many requests
delete/entries/{id}
curl -X DELETE "https://api.ruzagency.com/drive/v1/entries/root" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  }
}
get/entries/{id}/children

List a folder

The live children of a folder, folders first then by name. Pass next back as after for the next page.

Access: key with the permission drive.files:read (See files and folders).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
stringrequired
An entry ID, or root.

Query parameters

after
string (uuid)
The next of the previous page.
limit
integer
Page size.
default: 100

Responses

200A page of entries
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
429Too many requests
get/entries/{id}/children
curl "https://api.ruzagency.com/drive/v1/entries/root/children" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entries": [
    {
      "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
      "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
      "kind": "file",
      "name": "Invoice-2026-03.pdf",
      "size": 184320,
      "mtime": "2026-03-02T09:14:00Z",
      "revision": 3,
      "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
      "created_at": "2026-03-02T09:14:00Z",
      "updated_at": "2026-03-02T09:14:00Z",
      "version_count": 2
    }
  ],
  "next": "2b4d6f8a-0c2e-4a6c-9e0a-2c4e6a8c0e2a"
}
post/folders

Create a folder

A new folder in parent_id (a folder ID or root). 409 name_conflict if the name is taken, with the existing entry's ID.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Headers

Idempotency-Key
string
A unique value (1 to 128 printable characters); a retry with the same value gets the first answer again, for 24 hours. Not on POST /share-links, whose answer holds a secret.

Body (application/json)

parent_id
stringrequired
Parent folder (UUID or root).
name
stringrequired

Responses

201The entry
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
429Too many requests
post/folders
curl -X POST "https://api.ruzagency.com/drive/v1/folders" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Idempotency-Key: 3c1f6a2e-8b4d-4e7a-9f0c-1d2e3f4a5b6c" \
  -H "Content-Type: application/json" \
  -d '{
    "parent_id": "root",
    "name": "Invoices"
  }'
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  }
}
post/files/{id}/copy

Copy a file

A new file in parent_id whose first version shares the source's content. No byte is written and no quota is used.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
A file ID.

Headers

Idempotency-Key
string
A unique value (1 to 128 printable characters); a retry with the same value gets the first answer again, for 24 hours. Not on POST /share-links, whose answer holds a secret.

Body (application/json)

parent_id
stringrequired
Destination folder (UUID or root).
name
string
Name of the copy; the source's by default.

Responses

201The entry
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
429Too many requests
post/files/{id}/copy
curl -X POST "https://api.ruzagency.com/drive/v1/files/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d/copy" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Idempotency-Key: 3c1f6a2e-8b4d-4e7a-9f0c-1d2e3f4a5b6c" \
  -H "Content-Type: application/json" \
  -d '{
    "parent_id": "root"
  }'
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  }
}
put/entries/{id}/star

Add to favourites

Marks the entry as a favourite.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
An entry ID.

Responses

200The entry
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
put/entries/{id}/star
curl -X PUT "https://api.ruzagency.com/drive/v1/entries/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d/star" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  }
}
delete/entries/{id}/star

Remove from favourites

Removes the favourite mark.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
An entry ID.

Responses

200The entry
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
delete/entries/{id}/star
curl -X DELETE "https://api.ruzagency.com/drive/v1/entries/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d/star" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  }
}
get/starred

List favourites

The favourite entries. For a key restricted to a folder, only those below it (a page may then hold fewer entries than asked).

Access: key with the permission drive.files:read (See files and folders).

Key restricted to a folder: accepted, limited to that folder.

Query parameters

after
string (uuid)
The next of the previous page.
limit
integer
Page size.
default: 100

Responses

200A page of entries
401Missing, invalid or expired key
403The key or the account may not do this
429Too many requests
get/starred
curl "https://api.ruzagency.com/drive/v1/starred" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entries": [
    {
      "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
      "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
      "kind": "file",
      "name": "Invoice-2026-03.pdf",
      "size": 184320,
      "mtime": "2026-03-02T09:14:00Z",
      "revision": 3,
      "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
      "created_at": "2026-03-02T09:14:00Z",
      "updated_at": "2026-03-02T09:14:00Z",
      "version_count": 2
    }
  ],
  "next": "2b4d6f8a-0c2e-4a6c-9e0a-2c4e6a8c0e2a"
}
get/recent

Recent files

The live files most recently added or changed, newest first, each with the name of the folder holding it (null at the top); 50 at most.

Access: key with the permission drive.files:read (See files and folders).

Key restricted to a folder: accepted, limited to that folder.

Query parameters

limit
integer
Number of results, 50 at most.
default: 50

Responses

200The recent files.
401Missing, invalid or expired key
403The key or the account may not do this
429Too many requests
get/recent
curl "https://api.ruzagency.com/drive/v1/recent" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "files": [
    {
      "entry": {
        "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
        "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
        "kind": "file",
        "name": "Invoice-2026-03.pdf",
        "size": 184320,
        "mtime": "2026-03-02T09:14:00Z",
        "revision": 3,
        "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
        "created_at": "2026-03-02T09:14:00Z",
        "updated_at": "2026-03-02T09:14:00Z",
        "version_count": 2
      },
      "folder": "Invoices"
    }
  ],
  "more": false
}
get/changes

Follow changes

Everything that happened to the drive since cursor. Without a cursor, a snapshot of the live tree, paged, then the journal: apply every change in order and keep the last cursor.

410 resync_required: the cursor is older than the journal, start again without one. 410 restored: the catalogue was restored from a backup, start again without a cursor and delete nothing the server lacks.

Access: key with the permission drive.files:read (See files and folders).

Key restricted to a folder: refused (403 folder_restricted).

Query parameters

cursor
string
The cursor of the previous page; none for a snapshot of the tree.
limit
integer
Changes per page, 1000 at most.
default: 500

Responses

200A page of the feed.
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
410No longer valid
429Too many requests
get/changes
curl "https://api.ruzagency.com/drive/v1/changes" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "changes": [
    {
      "seq": 4211,
      "change": "upserted",
      "entry_id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
      "entry": {
        "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
        "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
        "kind": "file",
        "name": "Invoice-2026-03.pdf",
        "size": 184320,
        "mtime": "2026-03-02T09:14:00Z",
        "revision": 3,
        "trashed": false
      }
    }
  ],
  "cursor": "c.41f9c2a7d3e85b60",
  "has_more": false
}
get/changes/cursor

Cursor from now on

A cursor at the head of the journal, to follow only what happens from now on, without a snapshot.

Access: key with the permission drive.files:read (See files and folders).

Key restricted to a folder: refused (403 folder_restricted).

Responses

200The cursor.
401Missing, invalid or expired key
403The key or the account may not do this
429Too many requests
get/changes/cursor
curl "https://api.ruzagency.com/drive/v1/changes/cursor" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "cursor": "c.41f9c2a7d3e85b60"
}

Ruza Drive

Content and versions

Downloads, versions and ZIP archives.

get/files/{id}/content

Download a file

The content of the current version, or of version. Supports Range (206), If-None-Match, If-Range and HEAD. Always served as an attachment.

Access: key with the permission drive.files:download (Download file contents).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
A file ID.

Query parameters

version
string (uuid)
A version ID (GET /files/{id}/versions); the current one by default.

Headers

Range
string
A byte range (RFC 9110), answered 206.

Responses

200The content, as an attachment
206Part of the content (Range)
304Not modified (If-None-Match)
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
416Range outside the file
429Too many requests
get/files/{id}/content
curl "https://api.ruzagency.com/drive/v1/files/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d/content" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -o Invoice-2026-03.pdf
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="Invoice-2026-03.pdf"
ETag: "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8"

<file bytes>
get/files/{id}/versions

List versions

The versions kept, the current one included, newest first.

Access: key with the permission drive.files:read (See files and folders).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
A file ID.

Responses

200The versions.
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/files/{id}/versions
curl "https://api.ruzagency.com/drive/v1/files/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d/versions" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "versions": [
    {
      "id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
      "seq": 2,
      "size": 184320,
      "mtime": "2026-03-02T09:14:00Z",
      "origin": "upload",
      "created_at": "2026-03-02T09:14:00Z",
      "content_hash": "83e7237e08cb83c5b84bb57550753b795abc82c6ba1aee4d54477e3bcd83aeb0",
      "current": true
    }
  ]
}
post/files/{id}/versions/{version}/restore

Restore a version

Makes an older version current again by adding a new version that reuses its content. Nothing is overwritten.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
A file ID.
version
string (uuid)required
A version ID.

Responses

200The file and its new version
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
429Too many requests
post/files/{id}/versions/{version}/restore
curl -X POST "https://api.ruzagency.com/drive/v1/files/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d/versions/e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8/restore" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  },
  "version": {
    "id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "seq": 2,
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "origin": "upload",
    "created_at": "2026-03-02T09:14:00Z",
    "content_hash": "83e7237e08cb83c5b84bb57550753b795abc82c6ba1aee4d54477e3bcd83aeb0",
    "current": true
  }
}
delete/files/{id}/versions/{version}

Delete a version

Permanently deletes an older version. The current version cannot be deleted (409 current_version).

Access: key with the permission drive.files:delete (Delete permanently).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
A file ID.
version
string (uuid)required
A version ID.

Responses

200Deleted.
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
429Too many requests
delete/files/{id}/versions/{version}
curl -X DELETE "https://api.ruzagency.com/drive/v1/files/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d/versions/e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "deleted": true
}
post/archives

Prepare a ZIP archive

Checks a selection of files and folders and returns a single-use download address, valid a few minutes, to fetch with the same key.

Access: key with the permission drive.files:download (Download file contents).

Key restricted to a folder: accepted, limited to that folder.

Headers

Idempotency-Key
string
A unique value (1 to 128 printable characters); a retry with the same value gets the first answer again, for 24 hours. Not on POST /share-links, whose answer holds a secret.

Body (application/json)

entry_ids
array<string (uuid)>required

Responses

201The archive is ready to download.
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
413Too large
429Too many requests
post/archives
curl -X POST "https://api.ruzagency.com/drive/v1/archives" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Idempotency-Key: 3c1f6a2e-8b4d-4e7a-9f0c-1d2e3f4a5b6c" \
  -H "Content-Type: application/json" \
  -d '{
    "entry_ids": [
      "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d"
    ]
  }'
{
  "url": "https://app.ruzadrive.com/s/8a1f3c5e-7b9d-4e2f-a6c8-0d1e2f3a4b5c#k=Qm9uam91ciBSdXphIQ",
  "files": 42,
  "size_bytes": 734003200,
  "expires_at": "2026-12-31T23:59:59Z"
}
get/archives/{token}

Download a ZIP archive

The ZIP of a prepared selection, once. Files are stored uncompressed.

Access: key with the permission drive.files:download (Download file contents).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

token
stringrequired
The token of a prepared archive (the end of its url).

Responses

200The archive.
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/archives/{token}
curl "https://api.ruzagency.com/drive/v1/archives/zq7Kd2pXv9LmT4rN8sYb3wHc6fJg1aE5" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -o archive.zip
HTTP/1.1 200 OK
Content-Type: application/zip
Content-Disposition: attachment; filename="archive.zip"

<file bytes>

Ruza Drive

Uploads

Single-request uploads up to 100 MiB, resumable uploads of any size.

put/files/{id}/content

Upload a new version

The whole new content in the body (100 MiB at most, Content-Length required). With If-Match (the current version ID, the ETag of a download), 412 if another version was added meanwhile.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
A file ID.

Query parameters

modified_at
string (date-time)
The file's modification date to keep (RFC 3339).

Headers

If-Match
string (uuid)
The current version ID (ETag of a download); 412 if another version was added meanwhile.

Body (application/octet-stream)

The file's bytes, as they are (application/octet-stream).

Responses

201The file and its new version
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
411Content-Length missing
412The resource changed meanwhile
413Too large
429Too many requests
507Not enough storage
put/files/{id}/content
curl -X PUT "https://api.ruzagency.com/drive/v1/files/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d/content" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @report.pdf
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  },
  "version": {
    "id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "seq": 2,
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "origin": "upload",
    "created_at": "2026-03-02T09:14:00Z",
    "content_hash": "83e7237e08cb83c5b84bb57550753b795abc82c6ba1aee4d54477e3bcd83aeb0",
    "current": true
  }
}
post/files

Upload a file

The whole file in the body, 100 MiB at most (Content-Length required): the server cuts it into blocks and checks it. Beyond, use a resumable upload.

if_exists: fail (default, 409 name_conflict), new_version (adds a version to the file of that name) or rename ("report (2).pdf").

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Query parameters

parent_id
stringrequired
The destination folder: an ID, or root.
name
stringrequired
The file's name.
if_exists
string
What to do when the name is taken: fail (409), new_version, or rename ("report (2).pdf").
values: fail, new_version, rename (default fail)
modified_at
string (date-time)
The file's modification date to keep (RFC 3339).

Body (application/octet-stream)

The file's bytes, as they are (application/octet-stream).

Responses

201The file and its new version
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
411Content-Length missing
413Too large
429Too many requests
507Not enough storage
post/files
curl -X POST "https://api.ruzagency.com/drive/v1/files?parent_id=root&name=report.pdf" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @report.pdf
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  },
  "version": {
    "id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "seq": 2,
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "origin": "upload",
    "created_at": "2026-03-02T09:14:00Z",
    "content_hash": "83e7237e08cb83c5b84bb57550753b795abc82c6ba1aee4d54477e3bcd83aeb0",
    "current": true
  }
}
post/uploads

Start a resumable upload

Opens a session for a file of any size. Send its blocks of block_size bytes (4 MiB, the last one shorter) in any order, possibly in parallel, then complete it with the content hash.

base_version_id: the version a new content derives from; completion then fails with 412 if the file has another current version.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Headers

Idempotency-Key
string
A unique value (1 to 128 printable characters); a retry with the same value gets the first answer again, for 24 hours. Not on POST /share-links, whose answer holds a secret.

Body (application/json)

parent_id
stringrequired
Destination folder (UUID or root).
name
stringrequired
size
integerrequired
mtime
string (date-time)
Modification date to keep.
base_version_id
string (uuid)

Responses

201The upload session
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
429Too many requests
507Not enough storage
post/uploads
curl -X POST "https://api.ruzagency.com/drive/v1/uploads" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Idempotency-Key: 3c1f6a2e-8b4d-4e7a-9f0c-1d2e3f4a5b6c" \
  -H "Content-Type: application/json" \
  -d '{
    "parent_id": "root",
    "name": "backup-2026-11-23.tar",
    "size": 734003200
  }'
{
  "upload": {
    "id": "0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "block_size": 4194304,
    "chunk_count": 175,
    "state": "open",
    "expires_at": "2026-12-31T23:59:59Z",
    "received": [
      [
        0,
        41
      ],
      [
        43,
        43
      ]
    ]
  }
}
get/uploads/{id}

State of an upload

The blocks received, as inclusive index ranges, and when the session expires. Resume by sending the missing blocks.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
An upload session ID.

Responses

200The upload session
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/uploads/{id}
curl "https://api.ruzagency.com/drive/v1/uploads/0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "upload": {
    "id": "0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "block_size": 4194304,
    "chunk_count": 175,
    "state": "open",
    "expires_at": "2026-12-31T23:59:59Z",
    "received": [
      [
        0,
        41
      ],
      [
        43,
        43
      ]
    ]
  }
}
delete/uploads/{id}

Cancel an upload

Cancels the session and frees what its blocks reserved.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
An upload session ID.

Responses

204Done, no content
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
410No longer valid
429Too many requests
delete/uploads/{id}
curl -X DELETE "https://api.ruzagency.com/drive/v1/uploads/0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f" \
  -H "Authorization: Bearer rza_YOUR_KEY"
HTTP/1.1 204 No Content
put/uploads/{id}/chunks/{index}

Send a block

One block of the file, Content-Digest giving its SHA-256 (RFC 9530). Sending a block again with the same content is harmless.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
An upload session ID.
index
integerrequired
The block's index, from 0.

Headers

Content-Digest
stringrequired
The block's SHA-256, base64 between colons (RFC 9530).

Body (application/octet-stream)

The file's bytes, as they are (application/octet-stream).

Responses

200The block is stored.
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
410No longer valid
422The content does not match what was announced
429Too many requests
put/uploads/{id}/chunks/{index}
curl -X PUT "https://api.ruzagency.com/drive/v1/uploads/0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f/chunks/0" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Digest: sha-256=:X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=:" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @chunk-0.bin
{
  "index": 0,
  "sha256": "1b4f0e9851971998e732078544c96b36c3d01cedf7caa332359d6f1d83567014",
  "duplicate": false
}
post/uploads/{id}/complete

Complete an upload

Checks content_hash against the blocks received and creates the file, or a new version of the file of that name unless fail_if_exists. name and parent_id may replace the session's target (to resolve a conflict).

The content hash is the SHA-256 of the concatenation of the SHA-256 digests of the 4 MiB blocks, in order (the empty file: SHA-256 of nothing). See the uploads guide.

Access: key with the permission drive.files:write (Add and organise files).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
An upload session ID.

Headers

Idempotency-Key
string
A unique value (1 to 128 printable characters); a retry with the same value gets the first answer again, for 24 hours. Not on POST /share-links, whose answer holds a secret.

Body (application/json)

content_hash
stringrequired
name
string
parent_id
string
fail_if_exists
boolean
default: false

Responses

200The file and its new version
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
410No longer valid
412The resource changed meanwhile
422The content does not match what was announced
429Too many requests
post/uploads/{id}/complete
curl -X POST "https://api.ruzagency.com/drive/v1/uploads/0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f/complete" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Idempotency-Key: 3c1f6a2e-8b4d-4e7a-9f0c-1d2e3f4a5b6c" \
  -H "Content-Type: application/json" \
  -d '{
    "content_hash": "83e7237e08cb83c5b84bb57550753b795abc82c6ba1aee4d54477e3bcd83aeb0"
  }'
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  },
  "version": {
    "id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "seq": 2,
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "origin": "upload",
    "created_at": "2026-03-02T09:14:00Z",
    "content_hash": "83e7237e08cb83c5b84bb57550753b795abc82c6ba1aee4d54477e3bcd83aeb0",
    "current": true
  }
}

Ruza Drive

Trash

The account's trash.

get/trash

List the trash

The entries in the trash, each with trash_expires_at, when it is permanently deleted.

Access: key with the permission drive.files:trash (Move to the trash and restore).

Key restricted to a folder: refused (403 folder_restricted).

Query parameters

after
string (uuid)
The next of the previous page.
limit
integer
Page size.
default: 100

Responses

200A page of entries
401Missing, invalid or expired key
403The key or the account may not do this
429Too many requests
get/trash
curl "https://api.ruzagency.com/drive/v1/trash" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entries": [
    {
      "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
      "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
      "kind": "file",
      "name": "Invoice-2026-03.pdf",
      "size": 184320,
      "mtime": "2026-03-02T09:14:00Z",
      "revision": 3,
      "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
      "created_at": "2026-03-02T09:14:00Z",
      "updated_at": "2026-03-02T09:14:00Z",
      "version_count": 2
    }
  ],
  "next": "2b4d6f8a-0c2e-4a6c-9e0a-2c4e6a8c0e2a"
}
delete/trash

Empty the trash

Permanently deletes everything in the trash. Irreversible.

Access: key with the permission drive.files:delete (Delete permanently).

Key restricted to a folder: refused (403 folder_restricted).

Responses

200What was permanently deleted
401Missing, invalid or expired key
403The key or the account may not do this
429Too many requests
delete/trash
curl -X DELETE "https://api.ruzagency.com/drive/v1/trash" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "deleted_entries": 3,
  "pending": false
}
post/trash/{id}/restore

Restore from the trash

Puts the entry back into its folder, optionally under another name. Restoring an entry trashed long ago needs a recent sign-in, in the application (403 web_only).

Access: key with the permission drive.files:trash (Move to the trash and restore).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

id
string (uuid)required
An entry ID.

Body (application/json)

name
string

Responses

200The entry
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
410No longer valid
429Too many requests
post/trash/{id}/restore
curl -X POST "https://api.ruzagency.com/drive/v1/trash/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d/restore" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  }
}
delete/trash/{id}

Delete permanently

Permanently deletes an entry of the trash. Irreversible.

Access: key with the permission drive.files:delete (Delete permanently).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

id
string (uuid)required
An entry ID.

Responses

200What was permanently deleted
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
429Too many requests
delete/trash/{id}
curl -X DELETE "https://api.ruzagency.com/drive/v1/trash/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "deleted_entries": 3,
  "pending": false
}

Ruza Drive

People

The people your files and folders are shared with. Invitations are sent from the applications.

get/members

Everyone with access

Each shared entry with the people who have access to it. Pass next_cursor back as cursor.

Access: key with the permission drive.members:read (See who has access).

Key restricted to a folder: refused (403 folder_restricted).

Query parameters

cursor
string
The next_cursor of the previous page.

Responses

200A page of shared entries.
401Missing, invalid or expired key
403The key or the account may not do this
429Too many requests
get/members
curl "https://api.ruzagency.com/drive/v1/members" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "items": [
    {
      "entry": {
        "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
        "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
        "kind": "file",
        "name": "Invoice-2026-03.pdf",
        "size": 184320,
        "mtime": "2026-03-02T09:14:00Z",
        "revision": 3,
        "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
        "created_at": "2026-03-02T09:14:00Z",
        "updated_at": "2026-03-02T09:14:00Z",
        "version_count": 2
      },
      "members": [
        {
          "id": "3e5a7c9b-1d2f-4a6b-8c0d-2e4f6a8b0c1d",
          "entry_id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
          "email": "camille@example.com",
          "role": "editor",
          "status": "active",
          "person": {
            "name": "Camille Martin",
            "picture": null,
            "email": "camille@example.com"
          },
          "invited_at": "2026-03-02T09:14:00Z",
          "opened_at": "2026-11-23T10:02:00Z"
        }
      ]
    }
  ],
  "next_cursor": null
}
get/entries/{id}/members

People with access to an entry

The people an entry is shared with, their role and whether they opened it.

Access: key with the permission drive.members:read (See who has access).

Key restricted to a folder: accepted, limited to that folder.

Path parameters

id
string (uuid)required
An entry ID.

Responses

200The people.
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/entries/{id}/members
curl "https://api.ruzagency.com/drive/v1/entries/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d/members" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "members": [
    {
      "id": "3e5a7c9b-1d2f-4a6b-8c0d-2e4f6a8b0c1d",
      "entry_id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
      "email": "camille@example.com",
      "role": "editor",
      "status": "active",
      "person": {
        "name": "Camille Martin",
        "picture": null,
        "email": "camille@example.com"
      },
      "invited_at": "2026-03-02T09:14:00Z",
      "opened_at": "2026-11-23T10:02:00Z"
    }
  ]
}
patch/members/{id}

Change a role

viewer reads and downloads; editor also adds, renames, moves and trashes within the share.

Access: key with the permission drive.members:write (Manage people's access).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

id
string (uuid)required
The ID of a person's access (GET /members).

Body (application/json)

role
stringrequired
values: viewer, editor

Responses

200The person's new role.
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
patch/members/{id}
curl -X PATCH "https://api.ruzagency.com/drive/v1/members/3e5a7c9b-1d2f-4a6b-8c0d-2e4f6a8b0c1d" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "role": "editor"
  }'
{
  "member": {
    "id": "3e5a7c9b-1d2f-4a6b-8c0d-2e4f6a8b0c1d",
    "entry_id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "email": "camille@example.com",
    "role": "editor",
    "status": "active",
    "person": {
      "name": "Camille Martin",
      "picture": null,
      "email": "camille@example.com"
    },
    "invited_at": "2026-03-02T09:14:00Z",
    "opened_at": "2026-11-23T10:02:00Z"
  }
}
delete/members/{id}

Remove an access

The person loses access at once.

Access: key with the permission drive.members:write (Manage people's access).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

id
string (uuid)required
The ID of a person's access (GET /members).

Responses

204Done, no content
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
delete/members/{id}
curl -X DELETE "https://api.ruzagency.com/drive/v1/members/3e5a7c9b-1d2f-4a6b-8c0d-2e4f6a8b0c1d" \
  -H "Authorization: Bearer rza_YOUR_KEY"
HTTP/1.1 204 No Content

Ruza Drive

Shared with me

What other accounts share with you, within the role they gave you.

get/shared-with-me

Shared with me

What other accounts share with you, with your role and the owner.

Access: key with the permission drive.shared:read (Browse and download what is shared with you).

Key restricted to a folder: refused (403 folder_restricted).

Responses

200The shares.
401Missing, invalid or expired key
403The key or the account may not do this
429Too many requests
get/shared-with-me
curl "https://api.ruzagency.com/drive/v1/shared-with-me" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "items": [
    {
      "id": "6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a",
      "role": "editor",
      "entry": {
        "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
        "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
        "kind": "file",
        "name": "Invoice-2026-03.pdf",
        "size": 184320,
        "mtime": "2026-03-02T09:14:00Z",
        "revision": 3,
        "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
        "created_at": "2026-03-02T09:14:00Z",
        "updated_at": "2026-03-02T09:14:00Z",
        "version_count": 2
      },
      "owner": {
        "name": "Camille Martin",
        "picture": null,
        "email": "camille@example.com"
      },
      "shared_at": "2026-03-02T09:14:00Z",
      "new": false,
      "paused": false
    }
  ]
}
delete/shared-with-me/{id}

Leave a share

You lose access to what was shared with you; the owner keeps everything.

Access: key with the permission drive.shared:write (Write in what is shared with you, within your role).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

id
string (uuid)required
The ID of a share with you (GET /shared-with-me).

Responses

204Done, no content
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
delete/shared-with-me/{id}
curl -X DELETE "https://api.ruzagency.com/drive/v1/shared-with-me/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a" \
  -H "Authorization: Bearer rza_YOUR_KEY"
HTTP/1.1 204 No Content
get/shared/{mid}

A share

The shared entry, your role and the owner. The routes below work within it; root names the shared entry.

Access: key with the permission drive.shared:read (Browse and download what is shared with you).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).

Responses

200The share.
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/shared/{mid}
curl "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "shared": {
    "id": "6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a",
    "role": "editor",
    "entry": {
      "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
      "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
      "kind": "file",
      "name": "Invoice-2026-03.pdf",
      "size": 184320,
      "mtime": "2026-03-02T09:14:00Z",
      "revision": 3,
      "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
      "created_at": "2026-03-02T09:14:00Z",
      "updated_at": "2026-03-02T09:14:00Z",
      "version_count": 2
    },
    "owner": {
      "name": "Camille Martin",
      "picture": null,
      "email": "camille@example.com"
    },
    "shared_at": "2026-03-02T09:14:00Z",
    "new": false,
    "paused": false
  }
}
get/shared/{mid}/entries/{id}

An entry of a share

Like GET /entries/{id}, within the share; the path starts at the shared entry.

Access: key with the permission drive.shared:read (Browse and download what is shared with you).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).
id
stringrequired
An entry ID, or root.

Responses

200The entry and its path
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/shared/{mid}/entries/{id}
curl "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/entries/root" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  },
  "path": [
    {
      "id": "7c2e9a41-5b3d-4e8f-a1c6-d2e3f4a5b6c7",
      "name": "",
      "kind": "root"
    },
    {
      "id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
      "name": "Invoices",
      "kind": "folder"
    },
    {
      "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
      "name": "Invoice-2026-03.pdf",
      "kind": "file"
    }
  ]
}
patch/shared/{mid}/entries/{id}

Rename or move in a share

Like PATCH /entries/{id}, within the share (editor role). The shared entry itself cannot change.

Access: key with the permission drive.shared:write (Write in what is shared with you, within your role).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).
id
stringrequired
An entry ID, or root.

Body (application/json)

name
string
parent_id
string

Responses

200The entry, changed
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
429Too many requests
patch/shared/{mid}/entries/{id}
curl -X PATCH "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/entries/root" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "report.pdf",
    "parent_id": "root"
  }'
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  }
}
delete/shared/{mid}/entries/{id}

Trash in a share

Moves an entry of the share to its owner's trash (editor role).

Access: key with the permission drive.shared:write (Write in what is shared with you, within your role).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).
id
stringrequired
An entry ID, or root.

Responses

200The entry
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
delete/shared/{mid}/entries/{id}
curl -X DELETE "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/entries/root" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  }
}
get/shared/{mid}/entries/{id}/children

List a folder of a share

Like GET /entries/{id}/children, within the share.

Access: key with the permission drive.shared:read (Browse and download what is shared with you).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).
id
stringrequired
An entry ID, or root.

Query parameters

after
string (uuid)
The next of the previous page.
limit
integer
Page size.
default: 100

Responses

200A page of entries
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/shared/{mid}/entries/{id}/children
curl "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/entries/root/children" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "entries": [
    {
      "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
      "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
      "kind": "file",
      "name": "Invoice-2026-03.pdf",
      "size": 184320,
      "mtime": "2026-03-02T09:14:00Z",
      "revision": 3,
      "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
      "created_at": "2026-03-02T09:14:00Z",
      "updated_at": "2026-03-02T09:14:00Z",
      "version_count": 2
    }
  ],
  "next": "2b4d6f8a-0c2e-4a6c-9e0a-2c4e6a8c0e2a"
}
get/shared/{mid}/files/{id}/content

Download from a share

Like GET /files/{id}/content, within the share. Older versions are for editors.

Access: key with the permission drive.shared:read (Browse and download what is shared with you).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).
id
string (uuid)required
A file ID.

Query parameters

version
string (uuid)
A version ID; older versions are for editors.

Responses

200The content, as an attachment
206Part of the content (Range)
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/shared/{mid}/files/{id}/content
curl "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/files/5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d/content" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -o Invoice-2026-03.pdf
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="Invoice-2026-03.pdf"
ETag: "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8"

<file bytes>
post/shared/{mid}/archives

Prepare a ZIP from a share

Like POST /archives, within the share.

Access: key with the permission drive.shared:read (Browse and download what is shared with you).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).

Body (application/json)

entry_ids
array<string (uuid)>required

Responses

201The archive is ready to download.
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
413Too large
429Too many requests
post/shared/{mid}/archives
curl -X POST "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/archives" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "entry_ids": [
      "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d"
    ]
  }'
{
  "url": "https://app.ruzadrive.com/s/8a1f3c5e-7b9d-4e2f-a6c8-0d1e2f3a4b5c#k=Qm9uam91ciBSdXphIQ",
  "files": 42,
  "size_bytes": 734003200,
  "expires_at": "2026-12-31T23:59:59Z"
}
get/shared/{mid}/archives/{token}

Download a ZIP from a share

Like GET /archives/{token}, within the share.

Access: key with the permission drive.shared:read (Browse and download what is shared with you).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).
token
stringrequired
The token of a prepared archive (the end of its url).

Responses

200The archive.
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/shared/{mid}/archives/{token}
curl "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/archives/zq7Kd2pXv9LmT4rN8sYb3wHc6fJg1aE5" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -o archive.zip
HTTP/1.1 200 OK
Content-Type: application/zip
Content-Disposition: attachment; filename="archive.zip"

<file bytes>
post/shared/{mid}/folders

Create a folder in a share

Like POST /folders, within the share (editor role). The space used is the owner's.

Access: key with the permission drive.shared:write (Write in what is shared with you, within your role).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).

Body (application/json)

parent_id
stringrequired
name
stringrequired

Responses

201The entry
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
429Too many requests
post/shared/{mid}/folders
curl -X POST "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/folders" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "parent_id": "root",
    "name": "Invoices"
  }'
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  }
}
post/shared/{mid}/files

Upload into a share

Like POST /files, within the share (editor role).

Access: key with the permission drive.shared:write (Write in what is shared with you, within your role).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).

Query parameters

parent_id
stringrequired
The destination folder: an ID, or root.
name
stringrequired
The file's name.
if_exists
string
What to do when the name is taken: fail (409), new_version, or rename ("report (2).pdf").
values: fail, new_version, rename (default fail)
modified_at
string (date-time)
The file's modification date to keep (RFC 3339).

Body (application/octet-stream)

The file's bytes, as they are (application/octet-stream).

Responses

201The file and its new version
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
413Too large
429Too many requests
507Not enough storage
post/shared/{mid}/files
curl -X POST "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/files?parent_id=root&name=report.pdf" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @report.pdf
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  },
  "version": {
    "id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "seq": 2,
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "origin": "upload",
    "created_at": "2026-03-02T09:14:00Z",
    "content_hash": "83e7237e08cb83c5b84bb57550753b795abc82c6ba1aee4d54477e3bcd83aeb0",
    "current": true
  }
}
post/shared/{mid}/uploads

Start an upload in a share

Like POST /uploads, within the share (editor role).

Access: key with the permission drive.shared:write (Write in what is shared with you, within your role).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).

Body (application/json)

parent_id
stringrequired
name
stringrequired
size
integerrequired
mtime
string (date-time)
base_version_id
string (uuid)

Responses

201The upload session
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
429Too many requests
507Not enough storage
post/shared/{mid}/uploads
curl -X POST "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/uploads" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "parent_id": "root",
    "name": "report.pdf",
    "size": 184320
  }'
{
  "upload": {
    "id": "0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "block_size": 4194304,
    "chunk_count": 175,
    "state": "open",
    "expires_at": "2026-12-31T23:59:59Z",
    "received": [
      [
        0,
        41
      ],
      [
        43,
        43
      ]
    ]
  }
}
get/shared/{mid}/uploads/{id}

State of an upload in a share

Like GET /uploads/{id}, within the share.

Access: key with the permission drive.shared:write (Write in what is shared with you, within your role).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).
id
string (uuid)required
An upload session ID.

Responses

200The upload session
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
get/shared/{mid}/uploads/{id}
curl "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/uploads/0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f" \
  -H "Authorization: Bearer rza_YOUR_KEY"
{
  "upload": {
    "id": "0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "block_size": 4194304,
    "chunk_count": 175,
    "state": "open",
    "expires_at": "2026-12-31T23:59:59Z",
    "received": [
      [
        0,
        41
      ],
      [
        43,
        43
      ]
    ]
  }
}
delete/shared/{mid}/uploads/{id}

Cancel an upload in a share

Like DELETE /uploads/{id}, within the share.

Access: key with the permission drive.shared:write (Write in what is shared with you, within your role).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).
id
string (uuid)required
An upload session ID.

Responses

204Done, no content
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
429Too many requests
delete/shared/{mid}/uploads/{id}
curl -X DELETE "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/uploads/0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f" \
  -H "Authorization: Bearer rza_YOUR_KEY"
HTTP/1.1 204 No Content
put/shared/{mid}/uploads/{id}/chunks/{index}

Send a block in a share

Like PUT /uploads/{id}/chunks/{index}, within the share.

Access: key with the permission drive.shared:write (Write in what is shared with you, within your role).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).
id
string (uuid)required
An upload session ID.
index
integerrequired
The block's index, from 0.

Headers

Content-Digest
stringrequired
The block's SHA-256, base64 between colons (RFC 9530).

Body (application/octet-stream)

The file's bytes, as they are (application/octet-stream).

Responses

200The block is stored.
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
422The content does not match what was announced
429Too many requests
put/shared/{mid}/uploads/{id}/chunks/{index}
curl -X PUT "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/uploads/0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f/chunks/0" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Digest: sha-256=:X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=:" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @chunk-0.bin
{
  "index": 0,
  "sha256": "1b4f0e9851971998e732078544c96b36c3d01cedf7caa332359d6f1d83567014",
  "duplicate": false
}
post/shared/{mid}/uploads/{id}/complete

Complete an upload in a share

Like POST /uploads/{id}/complete, within the share.

Access: key with the permission drive.shared:write (Write in what is shared with you, within your role).

Key restricted to a folder: refused (403 folder_restricted).

Path parameters

mid
string (uuid)required
The ID of a share with you (GET /shared-with-me).
id
string (uuid)required
An upload session ID.

Body (application/json)

content_hash
stringrequired
name
string
parent_id
string
fail_if_exists
boolean

Responses

200The file and its new version
400Malformed request
401Missing, invalid or expired key
403The key or the account may not do this
404Not found, or outside the key's folder
409Conflict with the drive's state
422The content does not match what was announced
429Too many requests
post/shared/{mid}/uploads/{id}/complete
curl -X POST "https://api.ruzagency.com/drive/v1/shared/6b8d0f2a-4c6e-4b1d-9f3a-5c7e9b1d3f5a/uploads/0c9d8e7f-1a2b-4c3d-8e4f-5a6b7c8d9e0f/complete" \
  -H "Authorization: Bearer rza_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content_hash": "83e7237e08cb83c5b84bb57550753b795abc82c6ba1aee4d54477e3bcd83aeb0"
  }'
{
  "entry": {
    "id": "5f0c8a4e-2d71-4b7e-9a3c-1e2f3a4b5c6d",
    "parent_id": "b7d24c19-3a5e-4f60-8b21-9c0d1e2f3a4b",
    "kind": "file",
    "name": "Invoice-2026-03.pdf",
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "revision": 3,
    "current_version_id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "created_at": "2026-03-02T09:14:00Z",
    "updated_at": "2026-03-02T09:14:00Z",
    "version_count": 2
  },
  "version": {
    "id": "e41a7b2c-6d8e-4f90-a1b2-c3d4e5f6a7b8",
    "seq": 2,
    "size": 184320,
    "mtime": "2026-03-02T09:14:00Z",
    "origin": "upload",
    "created_at": "2026-03-02T09:14:00Z",
    "content_hash": "83e7237e08cb83c5b84bb57550753b795abc82c6ba1aee4d54477e3bcd83aeb0",
    "current": true
  }
}