Reference

Endpoints and errors

Base address https://artemis.hsoni.dev/api/v1. Folders are created as you upload into them.

Scopes

A key has a folder and the scopes you tick when you make it. GET /keys/self shows what yours may do.

  • write

    Upload, rename, move, create folders, restore from the trash.

    Key's folder
  • read

    List, download, search, read protection and capacity.

    Key's folder
  • delete

    Move files to the trash. Never a permanent delete.

    Key's folder
  • index:read

    Search and index status across every storage.

    Whole account
  • nodes:read

    Names and status of your storages. Never their logins.

    Whole account

Endpoints

Uploads

  • POST/drive/uploads

    Start an upload (1 byte to 300 MiB). Replaces an existing file.

    write
  • POST/drive/uploads/{id}/complete

    Say the file was sent. Artemis stores it.

    write
  • GET/drive/uploads/{id}

    State: created, queued, done or failed.

    write | read
  • DELETE/drive/uploads/{id}

    Abort an upload not yet completed.

    write

Files and folders

  • HEAD/drive/files/{path}

    Size, ETag, SHA-256 and modified time.

    write | read
  • GET/drive/files/{path}

    Download. Supports Range. Streams.

    read
  • PATCH/drive/files/{path}

    Rename or move a file or folder: { to }.

    write
  • DELETE/drive/files/{path}

    Move a file to the Drive trash.

    delete
  • GET/drive/files

    List files under ?prefix=, 100 per page (max 1000), ?cursor=.

    read
  • POST/drive/folders

    Create a folder and its parents: { path }.

    write
  • GET/drive/tree

    One level of a folder, with folders: ?path=.

    read

Trash, search and capacity

  • GET/drive/search

    Search names inside the key's folder: ?q=.

    read
  • GET/drive/quota

    Capacity of the storages the key can open.

    read
  • GET/drive/trash

    Items trashed from the key's folder.

    read
  • POST/drive/trash/{id}/restore

    Restore a trashed item to where it was.

    write

Protection

  • GET/drive/protection

    Copies wanted and held for a file or folder: ?path=.

    read

Search and index

  • GET/search

    Search every storage's file index (whole account).

    index:read
  • GET/index/status

    State of the file index.

    index:read

Storages

  • GET/nodes

    Your storages and their status, without logins.

    nodes:read

Key

  • GET/keys/self

    What this key may do.

    any

Errors

Failures return { "error": "…", "code": "…" }.

  • 400
    INVALID_REQUEST · INVALID_BODY · INVALID_QUERY · INVALID_PATH · INVALID_CURSOR

    Bad body, query, path, prefix or cursor.

  • 401
    UNAUTHORIZED

    Wrong, revoked or expired key, blocked address, or a changed storage. Always the same answer.

  • 403
    FORBIDDEN · CAP_EXCEEDED

    Missing scope, or the key's size limit is used up.

  • 404
    NOT_FOUND

    No such file, folder or upload, or the path is a folder.

  • 409
    EXISTS · IS_A_FOLDER · NOT_A_FOLDER · PARENT_GONE · ENCRYPTED_SCOPE · NO_STORAGE · NOT_UPLOADED · SIZE_MISMATCH · UPLOAD_FAILED · ABORTED · CANNOT_ABORT

    Conflict with the file, folder or upload state. PARENT_GONE: the folder it was in is gone; restore it from the app.

  • 412
    PRECONDITION_FAILED

    ifMatch did not match the current file.

  • 413
    TOO_LARGE

    Over 300 MiB.

  • 429
    RATE_LIMITED · TOO_MANY_UPLOADS

    Slow down. Wait for Retry-After.

  • 501
    UPLOADS_UNAVAILABLE

    Uploads are off right now. Don't retry.

  • 502
    UPLOAD_ERROR · STORAGE_ERROR · TRANSFER_FAILED · ASK_FAILED

    A storage, transfer or the assistant failed. Retry shortly.

  • 507
    NO_SPACE

    No chosen storage has room.

API v1Updated 6 Nov 2026 · 2c2d87f