A key does only what you ticked. Permissions are named resource:access and grouped as in the dashboard: what every service can do under services.*, what only one type of service has under games.*, vps.* or web.*. A call outside its permissions answers 403 API_SCOPE_MISSING:<scope>, and the suffix names the permission to add.
| Permission | Routes it opens |
|---|
account:read | GET /me |
account.notifications:read | GET /account/notifications |
account.access:read | GET /account/access |
account.ssh_keys:read | GET /ssh-keys, GET /ssh-keys/{id} |
account.ssh_keys:write | POST /ssh-keys, DELETE /ssh-keys/{id} |
| Permission | Routes it opens |
|---|
services:read | GET /services, GET /services/{code}, GET /services/{code}/games/features, GET /services/{code}/web, .../web/runtimes, .../web/apps-catalog, .../web/events; actions features, web_overview |
services:write | PATCH /services/{code}; POST /services/{code}/renew together with billing.invoices:pay |
services.metrics:read | GET /services/{code}/status, GET /services/{code}/metrics/history |
services.addons:read | GET /services/{code}/addons |
services.power:write | POST /services/{code}/power, POST /services/{code}/web/sites/{siteId}/power (with web.sites:write); actions power, start_vps, stop_vps, force_stop_vps, reboot_vps |
services.console:write | POST /services/{code}/console/command; on web hosting, on top of web.sites:write or web.cron:write, a site's commands and its scheduled tasks; action send_console_command |
| Permission | Routes it opens |
|---|
games.files:read | reading files and worlds under /services/{code}/games/files and /games/world |
games.files:write | writing, moving, archiving, deleting files; exporting, resetting, switching, renaming, deleting, importing worlds |
games.sftp:read | GET /services/{code}/games/sftp |
games.databases:read | GET /services/{code}/games/databases (no passwords) |
games.databases:write | creating and deleting a database, resetting its password |
games.schedules:read | GET /services/{code}/games/schedules |
games.schedules:write | creating, changing, arming, running, deleting a scheduled task; a command step also needs services.console:write, a restart or stop step services.power:write |
games.startup:read | GET /services/{code}/games/startup |
games.startup:write | changing a startup variable, the runtime image |
games.versions:read | the server software catalogue, the installed version, following an install |
games.versions:write | POST /services/{code}/games/versions/installs |
games.content:read | searching mods, plugins and modpacks, listing what is installed, following an install |
games.content:write | installing, cancelling, enabling, disabling, removing a mod, a plugin or a modpack |
games.settings:read | GET /services/{code}/games/settings |
games.settings:write | PATCH /services/{code}/games/settings; online-mode also needs services.console:write |
games.reinstall:write | POST /services/{code}/reinstall on a game server |
| Permission | Routes it opens |
|---|
vps.backups:read | GET /services/{code}/backups; action backup_list |
vps.backups:write | POST /services/{code}/backups, DELETE /services/{code}/backups/{backupId}, POST /services/{code}/backups/restore; actions backup_create, backup_delete, backup_restore |
vps.firewall:read | action firewall_list |
vps.firewall:write | actions firewall_create, firewall_update, firewall_move, firewall_delete |
vps.rdns:write | action rdns, including op: "get" |
vps.reinstall:write | POST /services/{code}/reinstall on a VPS |
| Permission | Routes it opens |
|---|
web.sites:read | the reads of sites, staging copies, domains and ownership proofs, HTTPS, PHP and access settings, applications, logs, traffic, diagnosis, operations and security report under /services/{code}/web |
web.sites:write | creating, copying, changing and deleting a site, its domains, its HTTPS, its settings, its staging copies, its applications. An install, build or start command also needs services.console:write; POST /services/{code}/web/sites/{siteId}/power also needs services.power:write |
web.env:read | GET /services/{code}/web/sites/{siteId}/env (secret values masked) |
web.env:write | PUT /services/{code}/web/sites/{siteId}/env, DELETE /services/{code}/web/sites/{siteId}/env/{name} |
web.deploy:read | GET /services/{code}/web/sites/{siteId}/git, GET .../deployments, GET .../deployments/{deploymentId}, GET .../deployments/{deploymentId}/log |
web.deploy:write | PUT and DELETE /services/{code}/web/sites/{siteId}/git, POST .../git/secret, POST .../deployments, POST .../deployments/{deploymentId}/redeploy |
web.files:read | GET /services/{code}/web/sites/{siteId}/files, .../files/content, .../files/jobs/{jobId}, .../files/usage |
web.files:write | writing, creating a directory, moving, changing modes, deleting, extracting, compressing, copying under /services/{code}/web/sites/{siteId}/files |
web.databases:read | GET /services/{code}/web/databases, GET /services/{code}/web/databases/{databaseId} |
web.databases:write | creating, attaching, deleting a database, resetting its password, opening it to the Internet |
web.sftp:read | GET /services/{code}/web/sftp-accounts |
web.sftp:write | creating, changing, deleting an SFTP account, resetting its password |
web.cron:read | GET /services/{code}/web/sites/{siteId}/cron, GET .../cron/{cronId}/runs |
web.cron:write | DELETE .../cron/{cronId}; creating, changing or running a task with services.console:write |
web.backups:read | GET /services/{code}/web/sites/{siteId}/backups and .../restores/{restoreId} |
web.backups:write | creating, deleting, restoring a site backup under /services/{code}/web/sites/{siteId}/backups; action web_backups |
| Permission | Routes it opens |
|---|
billing.invoices:read | GET /invoices, GET /invoices/{code}, GET /invoices/{code}/pdf |
billing.credit_notes:read | GET /credit-notes, GET /credit-notes/{code}/pdf |
billing.balance:read | GET /balance, GET /balance/transactions |
billing.payment_methods:read | GET /payment-methods |
billing.invoices:pay | POST /invoices/{code}/pay, POST /orders/{orderNumber}/pay, POST /services/{code}/renew; POST /orders when it pays |
billing.saved_methods:charge | the four routes above when the funding is saved_method, and POST /services/{code}/renew with account_default when the account's rule charges a stored method. Never used alone |
| Permission | Routes it opens |
|---|
catalog:read | GET /catalog/products, GET /catalog/products/{shortname} |
orders:read | GET /orders, GET /orders/{orderNumber} |
orders:write | POST /orders |
| Permission | Routes it opens |
|---|
tickets:read | GET /tickets, GET /tickets/{ticketNumber} |
tickets:write | POST /tickets, POST /tickets/{ticketNumber}/messages, POST /tickets/{ticketNumber}/close |
Two routes fall outside the table: GET /me/key needs no permission, and GET /v1/openapi.json needs no key.
POST /services/{code}/reinstall asks for the permission of the service's type: vps.reinstall:write on a VPS, games.reinstall:write on a game server. A key holding neither is refused before anything is read with 403 API_SCOPE_MISSING:vps.reinstall:write|games.reinstall:write.
POST /services/{code}/actions/{action} has no fixed permission. It depends on the action sent: see the "actions" entries above and the full table in Managing services.
A :write implies the :read of the exact same name, and nothing else.
| You hold | You also get |
|---|
services:write | services:read |
vps.backups:write | vps.backups:read |
vps.firewall:write | vps.firewall:read |
account.ssh_keys:write | account.ssh_keys:read |
orders:write | orders:read |
tickets:write | tickets:read |
web.sites:write, web.env:write, web.deploy:write, web.files:write, web.databases:write, web.sftp:write, web.cron:write, web.backups:write | the :read of the same name |
games.files:write, games.databases:write, games.schedules:write, games.startup:write, games.versions:write, games.content:write, games.settings:write | the :read of the same name |
What does not carry over, despite the shared prefix:
services:write gives neither services.metrics:read nor services.addons:read.
vps.backups:write does not give web.backups:read, nor the other way round: each type of service has its own permissions.
billing.invoices:pay does not give billing.invoices:read: paying an invoice and reading it are two permissions.
vps.rdns:write, vps.reinstall:write and games.reinstall:write have no matching :read.
The permissions specific to one type of service were renamed. A key created with a former name keeps it and loses no right: each former name stands for every permission it covered.
| Former name | Stands for |
|---|
services.backups:read | vps.backups:read, web.backups:read |
services.backups:write | vps.backups:write, web.backups:write |
services.firewall:read | vps.firewall:read |
services.firewall:write | vps.firewall:write |
services.rdns:write | vps.rdns:write |
services.reinstall:write | vps.reinstall:write, games.reinstall:write |
GET /me/key returns the permissions under their current names in scopes, and the former names the key still holds in legacyScopes.
- A refusal always names the current permission, for example
403 API_SCOPE_MISSING:vps.firewall:write.
- Editing the key from the dashboard saves it under the current names, without an identity confirmation, since its rights do not change.
legacyScopes is then empty.
- A former name sent when creating a key is accepted and saved under the current names.
Effective rights are the intersection of the permission, the key's service restriction, and the state of the service.
| Case | Answer |
|---|
| Service outside the key's restriction | 404 SERVICE_NOT_FOUND |
| Site, database or SFTP account of a web hosting service outside the key's site restriction | 404 (NOT_FOUND or a marker ending in _NOT_FOUND, as for an unknown id) |
| Action on the whole web hosting service with a key restricted to some sites | 403 SITE_SCOPE_RESTRICTED |
Suspended or cancelled service, on /power, /console/command, /actions/{action} | 409 SERVICE_NOT_ACTIVE |
Suspended or cancelled service, on POST /backups, DELETE /backups/{backupId}, /backups/restore, /reinstall | 400 SERVICE_NOT_ACTIVE. GET /backups still answers |
Service in dunning, on POST /backups, /backups/restore, /reinstall | 400 SERVICE_IN_DUNNING |
| Service with no provisioned instance | 409 INSTANCE_NOT_PROVISIONED on /status, /metrics/history, /power, /console/command, /actions/{action}, /web/..., /games/...; 400 INSTANCE_NOT_PROVISIONED on /backups, /backups/restore, /reinstall |
| Action the platform does not classify, or one with no public permission | 403 API_ACTION_NOT_ALLOWED:<action> |
On a web hosting service, a key can reach some sites only. It is set when the key is created or edited, service by service; GET /me/key returns it in siteRestrictions.
| A key restricted to some sites | |
|---|
| reads | the offer (quotas, usage), these sites and their staging copies, the databases tied to these sites, the SFTP accounts limited to these sites, their backups |
| does not see | the other sites, the databases tied to no site or to another site, the SFTP accounts over the whole hosting: 404 |
| refuses | creating, copying or deleting a site, backing up the whole hosting, creating a database or an SFTP account without tying it to one of its sites: 403 SITE_SCOPE_RESTRICTED |
The lists (sites, databases, SFTP accounts, backups, activity feed) return what the key reaches only. Adding a site to the restriction or lifting it widens the key and asks for an identity confirmation.
A key created on an account shared with you (see Authentication and API keys) only holds services.*, games.*, vps.*, web.*, and tickets:* when the access opens the tickets to you. Any other permission is refused at creation: 400 API_SCOPE_NOT_DELEGABLE:<scope>.
Every call is judged twice: by the key's permission, then by what the access grants you on the service (403 ACCOUNT_ACCESS_DENIED). The site restrictions of the key and of the access add up.
| Key permission | What the access must grant you on the service |
|---|
web.sites:*, web.env:*, web.deploy:read | Sites |
web.deploy:write | Sites and console |
web.files:* | Files |
web.databases:* | Databases |
web.sftp:* | SFTP |
web.cron:read; web.cron:write | Scheduled tasks; and console to create, change or run one |
games.files:* | Files |
games.sftp:read | SFTP |
games.databases:* | Databases |
games.schedules:read; games.schedules:write | Scheduled tasks; and console or power depending on the steps |
games.startup:* | Startup |
games.versions:* | Versions |
games.content:* | Content |
games.settings:* | Game settings; and console for online-mode |
vps.backups:*, web.backups:* | Backups |
services.power:write, services.console:write, vps.reinstall:write, games.reinstall:write, vps.firewall:*, vps.rdns:write | Power, console, reinstall, firewall, reverse DNS |
services:read, services.metrics:read, services.addons:read | sharing the service is enough |
- Start from what the integration does today. Widening a key asks for an identity confirmation, not a new key.
- Monitoring or an accounting export needs
:read permissions only.
billing.saved_methods:charge goes only on the key that has to charge, with a cap sized to the job. It is the only permission that forces a cap.
vps.reinstall:write and games.reinstall:write destroy the service's data. Keep them on the key that reinstalls.