For developers
Fuzops API v1.0.0
Every request is authenticated with a personal API token created under Team > API tokens and sent as Authorization: Bearer vxo_.... A token belongs to one team and carries abilities; a request needs the ability on the token and the matching permission on the role its owner has in that team, so a token never does more than its owner may.
Identifiers are ULIDs. Objects use the envelope { id, type, attributes, relationships, links }; lists are paginated with page and per_page (max 100). Errors are RFC 9457 problem details (application/problem+json). Scripts, deploy keys and secrets are never returned; a site's settings file only with sites:secrets, the commands of background processes and scheduled jobs only with servers:secrets, and a new password once, when it is created.
Requests are counted every minute, for your token and for your whole team, so one team never slows another.
- Reads (GET): 300 a minute for each token, 600 for the team.
- Changes (POST, PUT, DELETE): 60 a minute for each token, 120 for the team.
- Settings files and one-time passwords: 30 a minute for each token, 60 for the team.
Every answer reports the closest limit in X-RateLimit-Limit, X-RateLimit-Remaining and when it resets in X-RateLimit-Reset. A refused request gets the answer 429 and the number of seconds to wait in Retry-After. Repeated requests with a wrong token are refused for a short time, whatever token you send next.
Lists carry an ETag: send it back as If-None-Match and an unchanged list answers 304 without a body.
Errors
Every error is a problem details object (application/problem+json) with type, title, status and detail; validation errors add errors per field.
- 401
- Missing, invalid, expired or revoked token.
- 403
- The token lacks the ability, or the owner's role does not allow the action.
- 404
- No such resource in the token's team.
- 409
- The action conflicts with the current state, e.g. a deployment is already running.
- 422
- Validation failed, or an Idempotency-Key was reused with another body.
- 429
- Rate limit exceeded; wait for Retry-After seconds.
Servers
List servers
GET/servers
Ability: servers:read.
| Parameter | Sent in | Description |
|---|---|---|
| page | query | integer |
| per_page | query | integer |
| filter[status] | query | Only servers with this status, e.g. active. string |
- 200A page of results Server
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 429Rate limit exceeded; retry after `Retry-After` seconds
Get a server
GET/servers/{server}
Ability: servers:read.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
- 200OK Server
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
List the sites of a server
GET/servers/{server}/sites
Ability: sites:read.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| page | query | integer |
| per_page | query | integer |
- 200A page of results Site
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Tasks
List the tasks of a server
GET/servers/{server}/tasks
Ability: tasks:read. Newest first. Scripts are never included.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| page | query | integer |
| per_page | query | integer |
| filter[type] | query | e.g. command, site.deploy. string |
- 200A page of results Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Run a command
POST/servers/{server}/commands
Ability: commands:run. Queues a command task that runs the script on the server as root with bash. Returns 202 with the task; follow its status with the task list.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| script * | string | Bash script. A shebang is added when missing. |
| timeout | 60 | 300 | 900 | 1800 | 3600 | |
| name | string | Task name shown in the app. |
- 202Queued Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Sites
List sites
GET/sites
Ability: sites:read.
| Parameter | Sent in | Description |
|---|---|---|
| page | query | integer |
| per_page | query | integer |
- 200A page of results Site
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 429Rate limit exceeded; retry after `Retry-After` seconds
Add a site
POST/sites
Ability: sites:manage. Same fields and rules as adding a site in the app (server, domain, type, and what that kind of site asks for, such as repository and branch). Asynchronous: returns 202 with the site, meta.task (the setup task) and a Location header. Passwords generated for the site are returned once in meta.credentials, only to a token with sites:secrets.
| Parameter | Sent in | Description |
|---|---|---|
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| server * | string | Server ULID |
| domain * | string | |
| type * | string | |
| repository | string | |
| branch | string | |
| php_version | string | |
| aliases | string[] | |
| database | boolean | |
| deploy_after_install | boolean | |
| run_as | string | Which account on the server runs the site: `vertex` (the shared account), the name of an account Fuzops created on that server, or `new` with `run_as_username`. A site with its own account lives in /home/ACCOUNT/DOMAIN. Not for Odoo, which always has its own account. |
| run_as_username | string | With `run_as: new`: the name of the new account (lowercase letters, digits, `_` and `-`). |
| https | boolean | Turn on HTTPS (a free certificate) once the address points at the server. Never fails the setup: until the address points there it waits, is checked again every 10 minutes for 72 hours, and the site lists it under Needs attention. Free preview addresses get HTTPS on their own. |
| page_cache | boolean | Speed up with page caching (FastCGI cache), PHP kinds only, with the standard settings of Speed up with caching. Skipped for other kinds. |
| wildcard | boolean | Also answer on every subdomain (*.DOMAIN). HTTPS for every subdomain needs the domain's DNS connected under Domains. |
| livewire | boolean | Laravel only: scripts and uploads Livewire serves through the app reach it when no such file is on disk. |
- 202Being set up Site
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Get a site
GET/sites/{site}
Ability: sites:read.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
- 200OK Site
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Remove a site
DELETE/sites/{site}
Ability: sites:manage. Send confirm_domain with the site's address; delete_files: true also deletes its files. Asynchronous: 202 with the removal task (the site disappears once the server confirms). A site that never reached its server is deleted at once (204).
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
JSON body
| confirm_domain * | string | |
| delete_files | boolean |
- 202Queued: follow the task in the server's task list Task
- 204Deleted
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
List a site's deployment steps
GET/sites/{site}/deployment-steps
Ability: sites:read. The steps every deployment runs, in order: built-in steps first, then the ones before the new version goes live, then the ones after. Scripts are not returned. meta.mode is steps, or script when the site deploys with a single script instead.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
- 200Steps DeploymentStep
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
List a site's quick commands
GET/sites/{site}/quick-commands
Ability: sites:read. Saved commands with when they last ran and how it went. Scripts are not returned.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
- 200Quick commands QuickCommand
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Run a quick command
POST/sites/{site}/quick-commands/{command}/run
Ability: sites:deploy. Runs the saved command in the site's live version. Returns 202 with the task; read its output from the task.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
| command * | path | Quick command ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
- 202Queued Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
Read the settings file (.env)
GET/sites/{site}/environment
Ability: sites:secrets (and the role must be allowed to see site secrets). The response is never cached; each read is recorded in the team's activity.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
- 200The file
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Change the settings file (.env)
PUT/sites/{site}/environment
Ability: sites:secrets (and the role must be allowed to manage sites). Saves the file and writes it to the server: 202 with the task. A site still being set up gets it when it is installed (200).
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
JSON body
| environment | string | null | |
| actions | "restart_app" | "config_cache" | "reload_php" | "restart_workers"[] | What runs after writing it; omitted: the site's remembered choice. |
- 200Saved; written at install
- 201Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Read the PHP pool file and its settings
GET/sites/{site}/php-pool
Ability: sites:secrets. The PHP-FPM pool the site runs in, as Fuzops knows it: the whole file (content), its portable settings (settings, portable as text to paste elsewhere) and the plain fields with the values in use. The pool is shared by every site of the same account on the same PHP version (sites).
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
- 200The pool
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
Replace the PHP pool file, or paste settings onto it
PUT/sites/{site}/php-pool
Ability: sites:secrets (and the role must be allowed to manage sites). Send content (the whole file; the pool name, user, group and listen must stay the account's) or settings (text from portable or any pool file: only the worker and php_value lines are taken, the pool name, account and socket never change). php-fpm -t checks it on the server and the previous file is put back if it fails: 202 with the task. 422 lists each refused line in lines; lines that only need a confirmation are refused until accept_warnings is true.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
JSON body
| content | string | |
| settings | string | |
| accept_warnings | boolean |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Horizon and Reverb of a Laravel site
GET/sites/{site}/laravel
Ability: sites:read. How Horizon and Reverb stand (state: off, checking, waiting, after_publish, starting, on, failed, stopping), what the app still needs (missing, checklist), Horizon's last status and Reverb's address and last connection test. Keys and secrets are never returned.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
- 200Horizon and Reverb
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Turn on Horizon
POST/sites/{site}/laravel/horizon
Ability: sites:manage. Checks the app first (202 with that task); when everything Horizon needs is there it starts on its own, restarts gently after every update, and stop_queue_workers stops the site's plain queue workers on Redis. Otherwise it waits and changes nothing: read missing from the status.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| stop_queue_workers | boolean |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Turn off Horizon
DELETE/sites/{site}/laravel/horizon
Ability: sites:manage. Stops Horizon after its running jobs and removes its restart step.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
- 202Turning off
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
Turn on Reverb
POST/sites/{site}/laravel/reverb
Ability: sites:manage (and the role must be allowed to see site secrets, since it writes the settings file). Checks the app first (202 with that task), then writes the Reverb lines (keys made once and kept), lets live connections through on the web server, starts Reverb and tests the connection. address: site (default, the site's own address), alias (with alias, added as another address) or preview. Not for a site on several servers.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| address | "site" | "alias" | "preview" | |
| alias | string | null | |
| max_connections | integer | null | Most connections at once; omitted: sized from the server. |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Turn off Reverb
DELETE/sites/{site}/laravel/reverb
Ability: sites:manage (and site secrets). Stops Reverb and removes its web server lines. The keys stay in the settings file so turning it on again needs no new setup, unless remove_lines is true.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
JSON body
| remove_lines | boolean |
- 202Turning off
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Deployments
List a site's deployments
GET/sites/{site}/deployments
Ability: sites:read. Newest first, with optional filters. meta.totals counts every deployment of the site (success rate over finished ones, median duration of successful ones) and meta.average_response is the average response time measured after recent successful deployments, per place it was measured from.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
| page | query | integer |
| per_page | query | integer |
| status | query | "queued" | "running" | "succeeded" | "failed" | "cancelled" |
| trigger | query | "manual" | "webhook" | "rollback" | "install" | "force" |
| from | query | string |
| to | query | string |
- 200A page of results Deployment
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Deploy a site
POST/sites/{site}/deployments
Ability: sites:deploy. Builds the site's branch as a new release, then switches the site to it without downtime. Returns 202 with the queued deployment and a Location header. Sites whose files are uploaded in the app (or that show a ready-made page) have no code to deploy: this returns 409 with a problem-details body; publish those from the app.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
- 202Queued Deployment
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
Get a deployment
GET/deployments/{deployment}
Ability: sites:read. Status, commit, author, timings and the response measured after it went live.
| Parameter | Sent in | Description |
|---|---|---|
| deployment * | path | Deployment ULID string |
- 200OK Deployment
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Remove a deployment
DELETE/deployments/{deployment}
Ability: sites:deploy. Removes a finished deployment from the history; its files are deleted from the server unless another record still uses them. The deployment your site is running cannot be removed (409).
| Parameter | Sent in | Description |
|---|---|---|
| deployment * | path | Deployment ULID string |
- 204Removed
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
Deploy the same commit again
POST/deployments/{deployment}/force
Ability: sites:deploy. Deploys exactly this deployment's commit again, even if the branch moved on. If a deployment of the site is still queued or running past its time limit, it is closed as failed first; one still within its time limit makes this a 409.
| Parameter | Sent in | Description |
|---|---|---|
| deployment * | path | Deployment ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
- 202Queued Deployment
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
Read the deployment log
GET/deployments/{deployment}/output
Ability: sites:read. Stored output chunks with a seq greater than cursor, oldest first. Poll with the returned meta.cursor until meta.finished is true and meta.has_more is false.
| Parameter | Sent in | Description |
|---|---|---|
| deployment * | path | Deployment ULID string |
| cursor | query | integer |
| limit | query | integer |
- 200Output chunks OutputPage
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Cancel a deployment
POST/deployments/{deployment}/cancel
Ability: sites:deploy. A queued deployment stops at once; a running one is stopped on the server. A failed or cancelled build never changes the live site.
| Parameter | Sent in | Description |
|---|---|---|
| deployment * | path | Deployment ULID string |
- 202Cancelling Deployment
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
Roll back to a deployment
POST/deployments/{deployment}/rollback
Ability: sites:deploy. Points current back at the release of this (succeeded, still kept) deployment. Returns 202 with the new rollback deployment.
| Parameter | Sent in | Description |
|---|---|---|
| deployment * | path | Deployment ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
- 202Queued Deployment
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
Site addresses
List HTTPS certificates
GET/sites/{site}/certificates
Ability: sites:read. Never the private key or the certificate itself.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
- 200OK Certificate
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Turn HTTPS on (request a certificate)
POST/sites/{site}/certificates
Ability: sites:manage. Requests a free certificate for the site's main address and any of its other addresses, then switches the site to HTTPS once it is issued. Unless skip_dns_check is true, every name must already point at the server (409 with dns_check otherwise).
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| names * | string[] | |
| email * | string | Where the certificate authority sends expiry notices. |
| authority | "letsencrypt" | "zerossl" | |
| skip_dns_check | boolean |
- 202Requested; `meta.task` is the task Certificate
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Turn HTTPS off
POST/sites/{site}/certificates/deactivate
Ability: sites:manage. The site answers on plain http only; the certificates are kept.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
List other addresses (domain aliases)
GET/sites/{site}/aliases
Ability: sites:read. meta.not_covered_by_https lists addresses the current certificate does not include.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
- 200Addresses
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Add an address
POST/sites/{site}/aliases
Ability: sites:manage.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
JSON body
| hostname * | string | |
| redirect | boolean |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Change an address
PUT/sites/{site}/aliases/{alias}
Ability: sites:manage. Send redirect, or www (none, serve, to_bare, to_www) to change the www address.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
| alias * | path | The address, e.g. shop.example.com string |
JSON body
| redirect | boolean | |
| www | string |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Remove an address
DELETE/sites/{site}/aliases/{alias}
Ability: sites:manage.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
| alias * | path | The address string |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
List redirects
GET/sites/{site}/redirects
Ability: sites:read. In the order they are checked.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
- 200OK Redirect
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Add a redirect
POST/sites/{site}/redirects
Ability: sites:manage. Returns the redirect with meta.task, the task that applies it.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
JSON body
| match * | "exact" | "prefix" | "regex" | |
| from * | string | |
| to * | string | |
| status_code * | 301 | 302 |
- 202Saved and being applied Redirect
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Change a redirect
PUT/sites/{site}/redirects/{redirect}
Ability: sites:manage.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
| redirect * | path | Redirect ULID string |
JSON body
| match * | "exact" | "prefix" | "regex" | |
| from * | string | |
| to * | string | |
| status_code * | 301 | 302 |
- 202Saved and being applied Redirect
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Remove a redirect
DELETE/sites/{site}/redirects/{redirect}
Ability: sites:manage.
| Parameter | Sent in | Description |
|---|---|---|
| site * | path | Site ULID string |
| redirect * | path | Redirect ULID string |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
Server tools
List server users
GET/servers/{server}/users
Ability: servers:read. Accounts Fuzops created on the server.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
- 200OK ServerUser
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Create a server user
POST/servers/{server}/users
Ability: servers:manage. An account that signs in with a password (login: password) also needs servers:secrets: its password is returned once in meta.password.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| username * | string | |
| site | string | Site ULID the account belongs to. |
| login | "key" | "password" | |
| password_mode | "generate" | "custom" | |
| password | string | |
| sudo | boolean | |
| confirm_sudo | boolean |
- 202Being created ServerUser
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Delete a server user
DELETE/servers/{server}/users/{user}
Ability: servers:manage.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| user * | path | Server user ULID string |
JSON body
| confirm * | string | Type the user name to confirm. |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
List login keys (SSH keys)
GET/servers/{server}/login-keys
Ability: servers:read. Name, account and fingerprint.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
- 200OK LoginKey
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Add a login key
POST/servers/{server}/login-keys
Ability: servers:manage. A key for root needs allow_root: true.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| name * | string | |
| system_user * | string | |
| public_key * | string | |
| allow_root | boolean |
- 202Being added LoginKey
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Remove a login key
DELETE/servers/{server}/login-keys/{key}
Ability: servers:manage.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| key * | path | Login key ULID string |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
List databases
GET/servers/{server}/databases
Ability: servers:read.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
- 200OK Database
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Create a database
POST/servers/{server}/databases
Ability: servers:manage.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| engine * | "mysql" | "postgresql" | |
| name * | string |
- 202Being created Database
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Delete a database
DELETE/servers/{server}/databases/{database}
Ability: servers:manage. A copy is saved on the server first.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| database * | path | Database ULID string |
JSON body
| confirm * | string | Type the database name to confirm. |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
List database users
GET/servers/{server}/database-users
Ability: servers:read. Never their passwords.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
- 200OK DatabaseUser
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Create a database user
POST/servers/{server}/database-users
Abilities: servers:manage and servers:secrets. The password is returned once, in meta.password.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| engine * | "mysql" | "postgresql" | |
| username * | string | |
| databases | string[] | Database ULIDs it may use. |
| password_mode | "generate" | "custom" | |
| password | string |
- 202Being created DatabaseUser
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Delete a database user
DELETE/servers/{server}/database-users/{databaseUser}
Ability: servers:manage.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| databaseUser * | path | Database user ULID string |
JSON body
| confirm * | string | Type the user name to confirm. |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
List background processes (daemons)
GET/servers/{server}/background-processes
Ability: servers:read. command is only filled in for a token with servers:secrets.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
- 200OK BackgroundProcess
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Add a background process
POST/servers/{server}/background-processes
Ability: servers:manage. Same fields as the form in the app (name, command, directory, user, processes, site...).
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| name | string | |
| command | string | |
| directory | string | |
| user | string | |
| processes | integer | |
| site | string |
- 202Being set up BackgroundProcess
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Change a background process
PUT/servers/{server}/background-processes/{process}
Ability: servers:manage. 409 while a change is still running.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| process * | path | Background process ULID string |
JSON body
| name | string | |
| command | string | |
| directory | string | |
| user | string | |
| processes | integer |
- 202Being changed BackgroundProcess
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Stop and remove a background process
DELETE/servers/{server}/background-processes/{process}
Ability: servers:manage.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| process * | path | Background process ULID string |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
List scheduled jobs (cron)
GET/servers/{server}/scheduled-jobs
Ability: servers:read. command is only filled in for a token with servers:secrets.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
- 200OK ScheduledJob
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Add a scheduled job
POST/servers/{server}/scheduled-jobs
Ability: servers:manage. Same fields as the form in the app.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| name | string | |
| command | string | |
| user | string | |
| frequency | string | |
| expression | string |
- 202Being set up ScheduledJob
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Change a scheduled job
PUT/servers/{server}/scheduled-jobs/{job}
Ability: servers:manage. 409 while a change is still running.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| job * | path | Scheduled job ULID string |
JSON body
| name | string | |
| command | string | |
| user | string | |
| frequency | string | |
| expression | string |
- 202Being changed ScheduledJob
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Remove a scheduled job
DELETE/servers/{server}/scheduled-jobs/{job}
Ability: servers:manage.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| job * | path | Scheduled job ULID string |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
List services and their status
GET/servers/{server}/services
Ability: servers:read. As last reported by the server (meta.checked_at); refresh with POST services/status.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
- 200OK Service
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
List recommended settings
GET/servers/{server}/recommended-settings
Ability: servers:read. Every setting with its value now, the recommended value for this server and why. meta.budget is the memory split. State: matches, differs, own, kept, info or unknown.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
- 200The settings
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Apply recommended settings
POST/servers/{server}/recommended-settings/apply
Ability: servers:manage. Applies the given keys, a group, or every setting that differs. Each service checks its new settings first and anything that fails is put back. Settings that restart a service are applied only with allow_restart.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
JSON body
| keys | string[] | |
| group | string | |
| allow_restart | boolean |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Check the services again
POST/servers/{server}/services/status
Ability: servers:manage.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
Restart, reload, start or stop a service
POST/servers/{server}/services/{service}/control
Ability: commands:run.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| service * | path | Service name, e.g. nginx, php8.4-fpm, mysql, redis-server string |
JSON body
| action | "restart" | "reload" | "start" | "stop" |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
List security rules (firewall)
GET/servers/{server}/security-rules
Ability: servers:read.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
- 200OK SecurityRule
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Add a security rule
POST/servers/{server}/security-rules
Ability: servers:manage. A rule that could lock out the server's login port needs confirm_ssh: true.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| action | "allow" | "deny" | |
| port | string | |
| protocol | "tcp" | "udp" | "any" | |
| source | string | null | |
| comment | string | |
| confirm_ssh | boolean |
- 202Being added SecurityRule
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Remove a security rule
DELETE/servers/{server}/security-rules/{rule}
Ability: servers:manage.
| Parameter | Sent in | Description |
|---|---|---|
| server * | path | Server ULID string |
| rule * | path | Security rule ULID string |
- 202Queued: follow the task in the server's task list Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 409The action conflicts with the current state (e.g. a deployment is already running)
- 429Rate limit exceeded; retry after `Retry-After` seconds
Scripts
List saved scripts
GET/scripts
Ability: servers:read. Name, variables and settings; never the script itself. Not available to members limited to some servers or sites.
- 200OK Script
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Run a saved script
POST/scripts/{script}/run
Ability: commands:run. One task per server.
| Parameter | Sent in | Description |
|---|---|---|
| script * | path | Script ULID string |
| Idempotency-Key | header | Send the same key again (same token, within 24 hours) to get the first response back instead of a second deployment or task. The replay carries Idempotent-Replayed: true. A key reused with a different body is a 422. string |
JSON body
| servers * | string[] | Server ULIDs |
| variables | object |
- 202Queued, one task per server Task
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Domains
List domains
GET/domains
Ability: sites:read. Domains of the team's connected domain accounts.
- 200OK Domain
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 429Rate limit exceeded; retry after `Retry-After` seconds
List a domain's records
GET/domains/{zone}/records
Ability: sites:read. Read live from the domain account (502 when it cannot be reached).
| Parameter | Sent in | Description |
|---|---|---|
| zone * | path | Domain ULID string |
- 200OK DnsRecord
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Add a record
POST/domains/{zone}/records
Ability: domains:manage.
| Parameter | Sent in | Description |
|---|---|---|
| zone * | path | Domain ULID string |
JSON body
| id | string | Only when changing a record. |
| type * | string | |
| host * | string | |
| value * | string | |
| ttl * | integer | |
| priority | integer | |
| proxied | boolean |
- 201Added DnsRecord
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Change a record
PUT/domains/{zone}/records
Ability: domains:manage. Send the record's id with the new values.
| Parameter | Sent in | Description |
|---|---|---|
| zone * | path | Domain ULID string |
JSON body
| id | string | Only when changing a record. |
| type * | string | |
| host * | string | |
| value * | string | |
| ttl * | integer | |
| priority | integer | |
| proxied | boolean |
- 200OK DnsRecord
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Remove a record
DELETE/domains/{zone}/records
Ability: domains:manage.
| Parameter | Sent in | Description |
|---|---|---|
| zone * | path | Domain ULID string |
JSON body
| id * | string |
- 204Removed
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 422Validation failed; `errors` lists the messages per field
- 429Rate limit exceeded; retry after `Retry-After` seconds
Connections
List code host connections
GET/connections/code-hosts
Ability: connections:read (and a role that may manage sites). Never their tokens.
- 200OK CodeHostConnection
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
List cloud accounts
GET/connections/cloud-accounts
Ability: connections:read. Never their keys.
- 200OK CloudAccount
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 404No such resource in the token's team
- 429Rate limit exceeded; retry after `Retry-After` seconds
Account
The token's owner
GET/user
Any valid token.
- 200OK User
- 401Missing, invalid, expired or revoked token
- 429Rate limit exceeded; retry after `Retry-After` seconds
The token's team
GET/team
Ability: team:read. Includes the owner's role and permissions in the team.
- 200OK Team
- 401Missing, invalid, expired or revoked token
- 403The token lacks the ability, or the owner's role does not allow it
- 429Rate limit exceeded; retry after `Retry-After` seconds
This document
GET/openapi.yaml
- 200OpenAPI 3.1 YAML
Objects
Server
type "servers"; fields under "attributes"
| name | string | |
| server_type | "app" | "database" | "load_balancer" | |
| provider | string | |
| status | "pending" | "provisioning" | "awaiting_agent" | "configuring" | "active" | "disconnected" | "failed" | "deleting" | |
| status_message | string | null | |
| ip_address | string | null | |
| private_ip_address | string | null | |
| region | string | null | |
| size | string | null | |
| database_engine | string | null | |
| os | string | null | |
| arch | string | null | |
| agent_version | string | null | |
| sites_count | integer | |
| last_seen_at | string | null | |
| created_at | string | null |
Site
type "sites"; fields under "attributes"
| domain | string | |
| aliases | string[] | |
| site_type | "laravel" | "nuxt" | "node" | "static" | |
| status | string | |
| repository | string | null | |
| branch | string | |
| web_directory | string | |
| php_version | string | null | |
| push_to_deploy | boolean | |
| releases_to_keep | integer | |
| created_at | string | null |
Deployment
type "deployments"; fields under "attributes"
| status | "queued" | "running" | "succeeded" | "failed" | "cancelled" | |
| trigger | "manual" | "webhook" | "rollback" | "install" | "force" | |
| release | string | null | |
| branch | string | null | |
| commit_hash | string | null | |
| commit_message | string | null | |
| created_at | string | null | |
| started_at | string | null | |
| finished_at | string | null | |
| duration_seconds | integer | null | |
| forced | boolean | Deployed again on purpose (force deploy) |
| commit_short | string | null | |
| commit_body | string | null | Full commit message |
| author_name | string | null | |
| author_email | string | null | |
| checks | object[] | Response measured after it went live, one entry per place it was measured from |
DeploymentStep
type "deployment-steps"; fields under "attributes"
| name | string | |
| description | string | null | |
| phase | "built_in" | "before_switch" | "after_switch" | |
| run_as | "site" | "root" | |
| enabled | boolean | |
| built_in | boolean | |
| updated_at | string | null |
QuickCommand
type "quick-commands"; fields under "attributes"
| name | string | |
| run_as | "site" | "root" | |
| confirmation | string | null | |
| last_run_at | string | null | |
| last_status | null | "pending" | "running" | "succeeded" | "failed" | "timed_out" | "cancelled" |
Task
type "tasks"; fields under "attributes"
| task_type | string | |
| name | string | |
| status | "pending" | "running" | "succeeded" | "failed" | "timed_out" | "cancelled" | |
| exit_code | integer | null | |
| duration_ms | integer | null | |
| timeout | integer | |
| output_truncated | boolean | |
| created_at | string | null | |
| claimed_at | string | null | |
| finished_at | string | null |
User
type "users"; fields under "attributes"
| name | string | |
| string | ||
| two_factor_enabled | boolean | |
| created_at | string | null |
Team
type "teams"; fields under "attributes"
| name | string | |
| plan | string | |
| role | "owner" | "admin" | "developer" | "viewer" | |
| permissions | string[] | |
| members_count | integer | |
| servers_count | integer | |
| created_at | string | null |
Certificate
type "certificates"; fields under "attributes"
| kind | string | |
| authority | string | null | |
| status | "issuing" | "ready" | "active" | "inactive" | "failed" | "external" | "requested" | |
| names | string[] | |
| issuer | string | null | |
| fingerprint | string | null | |
| active | boolean | |
| valid_from | string | null | |
| expires_at | string | null | |
| last_error | string | null | |
| created_at | string | null |
Redirect
type "redirects"; fields under "attributes"
| position | integer | |
| match | string | |
| from | string | |
| to | string | |
| status_code | 301 | 302 | |
| created_at | string | null |
RedirectInput
| match | "exact" | "prefix" | "regex" | |
| from | string | |
| to | string | |
| status_code | 301 | 302 |
ServerUser
type "server-users"; fields under "attributes"
| username | string | |
| login | "key" | "password" | |
| sudo | boolean | |
| locked | boolean | |
| status | string | |
| status_message | string | null | |
| created_at | string | null |
LoginKey
type "login-keys"; fields under "attributes"
| name | string | |
| server_user | string | |
| key_type | string | null | |
| fingerprint | string | |
| status | string | |
| status_message | string | null | |
| created_at | string | null |
Database
type "databases"; fields under "attributes"
| name | string | |
| engine | string | |
| users | string[] | |
| status | string | |
| status_message | string | null | |
| created_at | string | null |
DatabaseUser
type "database-users"; fields under "attributes"
| username | string | |
| engine | string | |
| databases | string[] | |
| status | string | |
| status_message | string | null | |
| created_at | string | null |
BackgroundProcess
type "background-processes"; fields under "attributes"
| name | string | |
| preset | string | null | |
| command | string | null | Only with `servers:secrets`. |
| directory | string | null | |
| server_user | string | |
| processes | integer | |
| restart_policy | string | null | |
| restart_after_update | boolean | |
| status | string | |
| status_message | string | null | |
| created_at | string | null |
ScheduledJob
type "scheduled-jobs"; fields under "attributes"
| name | string | |
| command | string | null | Only with `servers:secrets`. |
| directory | string | null | |
| server_user | string | |
| frequency | string | |
| expression | string | |
| is_scheduler | boolean | |
| health | string | null | |
| last_ping_at | string | null | |
| last_exit_code | integer | null | |
| status | string | |
| status_message | string | null | |
| created_at | string | null |
Service
| unit | string | |
| active | string | |
| enabled | string | |
| version | string | null |
SecurityRule
type "security-rules"; fields under "attributes"
| action | "allow" | "deny" | |
| port | string | null | |
| protocol | string | |
| source | string | null | |
| comment | string | null | |
| managed | boolean | Added by Fuzops for a feature it runs. |
| status | string | |
| status_message | string | null | |
| created_at | string | null |
Script
type "scripts"; fields under "attributes"
| name | string | |
| description | string | null | |
| run_as | string | |
| timeout | integer | |
| variables | object[] | |
| updated_at | string | null |
Domain
type "domains"; fields under "attributes"
| name | string | |
| provider | string | null | |
| created_at | string | null |
DnsRecord
| id | string | null | |
| type | string | |
| name | string | |
| host | string | Name relative to the domain (`@` for the domain itself). |
| content | string | |
| ttl | integer | |
| priority | integer | null | |
| proxied | boolean | null |
DnsRecordInput
| id | string | Only when changing a record. |
| type | string | |
| host | string | |
| value | string | |
| ttl | integer | |
| priority | integer | |
| proxied | boolean |
CodeHostConnection
type "code-host-connections"; fields under "attributes"
| provider | string | |
| label | string | |
| account_name | string | null | |
| base_url | string | null | |
| auth_method | string | null | |
| connected_by | string | null | |
| created_at | string | null | |
| last_checked_at | string | null | |
| problem | string | null |
CloudAccount
type "cloud-accounts"; fields under "attributes"
| name | string | |
| provider | string | |
| provider_label | string | |
| validated_at | string | null | |
| servers_count | integer | |
| created_at | string | null |
OutputPage
| data | object[] | |
| meta | object | |
| links | object |
PageLinks
| first | string | null | |
| last | string | null | |
| prev | string | null | |
| next | string | null |
PageMeta
| current_page | integer | |
| last_page | integer | |
| per_page | integer | |
| total | integer | |
| from | integer | null | |
| to | integer | null |
Problem
RFC 9457 problem details.
| type | string | |
| title | string | |
| status | integer | |
| detail | string | |
| errors | object | |
| required_ability | string |