Use a full access key, or a key scoped to the crate. Every GET needs read access; everything else needs write.
Names
| What | Named by | Example |
|---|---|---|
| Crate | its handle | c7xk2m9p |
| Folder | its name | photos |
| Master login | the crate’s handle | c7xk2m9p |
| Sub-user | handle, dash, name | c7xk2m9p-nas |
| SSH key | its SHA256 fingerprint | SHA256:3yQ… |
The master login reads and writes every folder. A sub-user reaches only the folders it’s given, read-only or read-write. SSH keys are added to the crate once, then accepted login by login.
Passwords
Passwords are generated, never chosen. Adding a sub-user or asking for a new password returns it once; it can’t be read back later.
Units
size_gb: a crate’s size, or a folder’s cap, in GB.used_gb: what’s stored, in GB. Updated through the day, not live.used_bytes(snapshots): what deleting the snapshot would free, in bytes.
Errors
A change reaches the crate’s storage node before it’s saved, so a call that fails has changed nothing.
| Status | Code | When |
|---|---|---|
| 400 | operation_rejected |
The storage node refused the change. error says why. |
| 400 | limit_reached |
The plan’s sub-users or snapshots, or 10 domains, are used up. |
| 403 | scope_denied |
The key can’t read, or can’t change, this crate. |
| 403 | service_inactive |
The service is suspended or cancelled: the crate can be read, not changed. |
| 403 | not_in_plan |
A snapshot change on a plan without snapshots. |
| 404 | not_found |
The crate isn’t on this account. |
| 502 | upstream_unavailable |
The storage node couldn’t be reached. Try again shortly. |
Each endpoint’s page lists the errors it can return.