Skip to content

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.

https://internal.fuzops.com/api/v1
https://internal.fuzops.com/api/v1/openapi.yaml

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.

Parameters
ParameterSent inDescription
pagequery integer
per_pagequery integer
filter[status]queryOnly 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers

Get a server

GET/servers/{server}

Ability: servers:read.

Parameters
ParameterSent inDescription
server *pathServer 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>

List the sites of a server

GET/servers/{server}/sites

Ability: sites:read.

Parameters
ParameterSent inDescription
server *pathServer ULID string
pagequery integer
per_pagequery 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/sites

Tasks

List the tasks of a server

GET/servers/{server}/tasks

Ability: tasks:read. Newest first. Scripts are never included.

Parameters
ParameterSent inDescription
server *pathServer ULID string
pagequery integer
per_pagequery integer
filter[type]querye.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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/tasks

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.

Parameters
ParameterSent inDescription
server *pathServer ULID string
Idempotency-KeyheaderSend 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

Request body
script *stringBash script. A shebang is added when missing.
timeout60 | 300 | 900 | 1800 | 3600
namestringTask 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/commands

Sites

List sites

GET/sites

Ability: sites:read.

Parameters
ParameterSent inDescription
pagequery integer
per_pagequery 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites

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.

Parameters
ParameterSent inDescription
Idempotency-KeyheaderSend 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

Request body
server *stringServer ULID
domain *string
type *string
repositorystring
branchstring
php_versionstring
aliasesstring[]
databaseboolean
deploy_after_installboolean
run_asstringWhich 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_usernamestringWith `run_as: new`: the name of the new account (lowercase letters, digits, `_` and `-`).
httpsbooleanTurn 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_cachebooleanSpeed up with page caching (FastCGI cache), PHP kinds only, with the standard settings of Speed up with caching. Skipped for other kinds.
wildcardbooleanAlso answer on every subdomain (*.DOMAIN). HTTPS for every subdomain needs the domain's DNS connected under Domains.
livewirebooleanLaravel 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites

Get a site

GET/sites/{site}

Ability: sites:read.

Parameters
ParameterSent inDescription
site *pathSite 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>

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).

Parameters
ParameterSent inDescription
site *pathSite ULID string

JSON body

Request body
confirm_domain *string
delete_filesboolean
  • 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>

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.

Parameters
ParameterSent inDescription
site *pathSite 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/deployment-steps

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.

Parameters
ParameterSent inDescription
site *pathSite 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/quick-commands

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.

Parameters
ParameterSent inDescription
site *pathSite ULID string
command *pathQuick command ULID string
Idempotency-KeyheaderSend 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/quick-commands/<command>/run

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.

Parameters
ParameterSent inDescription
site *pathSite 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/environment

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).

Parameters
ParameterSent inDescription
site *pathSite ULID string

JSON body

Request body
environmentstring | 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
curl -X PUT -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/environment

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).

Parameters
ParameterSent inDescription
site *pathSite 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/php-pool

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.

Parameters
ParameterSent inDescription
site *pathSite ULID string

JSON body

Request body
contentstring
settingsstring
accept_warningsboolean
  • 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
curl -X PUT -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/php-pool

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.

Parameters
ParameterSent inDescription
site *pathSite 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/laravel

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.

Parameters
ParameterSent inDescription
site *pathSite ULID string
Idempotency-KeyheaderSend 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

Request body
stop_queue_workersboolean
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/laravel/horizon

Turn off Horizon

DELETE/sites/{site}/laravel/horizon

Ability: sites:manage. Stops Horizon after its running jobs and removes its restart step.

Parameters
ParameterSent inDescription
site *pathSite 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/laravel/horizon

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.

Parameters
ParameterSent inDescription
site *pathSite ULID string
Idempotency-KeyheaderSend 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

Request body
address"site" | "alias" | "preview"
aliasstring | null
max_connectionsinteger | nullMost 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/laravel/reverb

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.

Parameters
ParameterSent inDescription
site *pathSite ULID string

JSON body

Request body
remove_linesboolean
  • 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/laravel/reverb

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.

Parameters
ParameterSent inDescription
site *pathSite ULID string
pagequery integer
per_pagequery integer
statusquery "queued" | "running" | "succeeded" | "failed" | "cancelled"
triggerquery "manual" | "webhook" | "rollback" | "install" | "force"
fromquery string
toquery 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/deployments

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.

Parameters
ParameterSent inDescription
site *pathSite ULID string
Idempotency-KeyheaderSend 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/deployments

Get a deployment

GET/deployments/{deployment}

Ability: sites:read. Status, commit, author, timings and the response measured after it went live.

Parameters
ParameterSent inDescription
deployment *pathDeployment 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/deployments/<deployment>

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).

Parameters
ParameterSent inDescription
deployment *pathDeployment 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/deployments/<deployment>

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.

Parameters
ParameterSent inDescription
deployment *pathDeployment ULID string
Idempotency-KeyheaderSend 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/deployments/<deployment>/force

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.

Parameters
ParameterSent inDescription
deployment *pathDeployment ULID string
cursorquery integer
limitquery 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/deployments/<deployment>/output

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.

Parameters
ParameterSent inDescription
deployment *pathDeployment 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/deployments/<deployment>/cancel

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.

Parameters
ParameterSent inDescription
deployment *pathDeployment ULID string
Idempotency-KeyheaderSend 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/deployments/<deployment>/rollback

Site addresses

List HTTPS certificates

GET/sites/{site}/certificates

Ability: sites:read. Never the private key or the certificate itself.

Parameters
ParameterSent inDescription
site *pathSite 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/certificates

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).

Parameters
ParameterSent inDescription
site *pathSite ULID string
Idempotency-KeyheaderSend 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

Request body
names *string[]
email *stringWhere the certificate authority sends expiry notices.
authority"letsencrypt" | "zerossl"
skip_dns_checkboolean
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/certificates

Turn HTTPS off

POST/sites/{site}/certificates/deactivate

Ability: sites:manage. The site answers on plain http only; the certificates are kept.

Parameters
ParameterSent inDescription
site *pathSite 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/certificates/deactivate

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.

Parameters
ParameterSent inDescription
site *pathSite 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/aliases

Add an address

POST/sites/{site}/aliases

Ability: sites:manage.

Parameters
ParameterSent inDescription
site *pathSite ULID string

JSON body

Request body
hostname *string
redirectboolean
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/aliases

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.

Parameters
ParameterSent inDescription
site *pathSite ULID string
alias *pathThe address, e.g. shop.example.com string

JSON body

Request body
redirectboolean
wwwstring
  • 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
curl -X PUT -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/aliases/<alias>

Remove an address

DELETE/sites/{site}/aliases/{alias}

Ability: sites:manage.

Parameters
ParameterSent inDescription
site *pathSite ULID string
alias *pathThe 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/aliases/<alias>

List redirects

GET/sites/{site}/redirects

Ability: sites:read. In the order they are checked.

Parameters
ParameterSent inDescription
site *pathSite 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/redirects

Add a redirect

POST/sites/{site}/redirects

Ability: sites:manage. Returns the redirect with meta.task, the task that applies it.

Parameters
ParameterSent inDescription
site *pathSite ULID string

JSON body

Request 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/redirects

Change a redirect

PUT/sites/{site}/redirects/{redirect}

Ability: sites:manage.

Parameters
ParameterSent inDescription
site *pathSite ULID string
redirect *pathRedirect ULID string

JSON body

Request 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
curl -X PUT -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/redirects/<redirect>

Remove a redirect

DELETE/sites/{site}/redirects/{redirect}

Ability: sites:manage.

Parameters
ParameterSent inDescription
site *pathSite ULID string
redirect *pathRedirect 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/sites/<site>/redirects/<redirect>

Server tools

List server users

GET/servers/{server}/users

Ability: servers:read. Accounts Fuzops created on the server.

Parameters
ParameterSent inDescription
server *pathServer 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/users

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.

Parameters
ParameterSent inDescription
server *pathServer ULID string
Idempotency-KeyheaderSend 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

Request body
username *string
sitestringSite ULID the account belongs to.
login"key" | "password"
password_mode"generate" | "custom"
passwordstring
sudoboolean
confirm_sudoboolean
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/users

Delete a server user

DELETE/servers/{server}/users/{user}

Ability: servers:manage.

Parameters
ParameterSent inDescription
server *pathServer ULID string
user *pathServer user ULID string

JSON body

Request body
confirm *stringType 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/users/<user>

List login keys (SSH keys)

GET/servers/{server}/login-keys

Ability: servers:read. Name, account and fingerprint.

Parameters
ParameterSent inDescription
server *pathServer 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/login-keys

Add a login key

POST/servers/{server}/login-keys

Ability: servers:manage. A key for root needs allow_root: true.

Parameters
ParameterSent inDescription
server *pathServer ULID string
Idempotency-KeyheaderSend 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

Request body
name *string
system_user *string
public_key *string
allow_rootboolean
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/login-keys

Remove a login key

DELETE/servers/{server}/login-keys/{key}

Ability: servers:manage.

Parameters
ParameterSent inDescription
server *pathServer ULID string
key *pathLogin 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/login-keys/<key>

List databases

GET/servers/{server}/databases

Ability: servers:read.

Parameters
ParameterSent inDescription
server *pathServer 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/databases

Create a database

POST/servers/{server}/databases

Ability: servers:manage.

Parameters
ParameterSent inDescription
server *pathServer ULID string
Idempotency-KeyheaderSend 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

Request 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/databases

Delete a database

DELETE/servers/{server}/databases/{database}

Ability: servers:manage. A copy is saved on the server first.

Parameters
ParameterSent inDescription
server *pathServer ULID string
database *pathDatabase ULID string

JSON body

Request body
confirm *stringType 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/databases/<database>

List database users

GET/servers/{server}/database-users

Ability: servers:read. Never their passwords.

Parameters
ParameterSent inDescription
server *pathServer 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/database-users

Create a database user

POST/servers/{server}/database-users

Abilities: servers:manage and servers:secrets. The password is returned once, in meta.password.

Parameters
ParameterSent inDescription
server *pathServer ULID string
Idempotency-KeyheaderSend 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

Request body
engine *"mysql" | "postgresql"
username *string
databasesstring[]Database ULIDs it may use.
password_mode"generate" | "custom"
passwordstring
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/database-users

Delete a database user

DELETE/servers/{server}/database-users/{databaseUser}

Ability: servers:manage.

Parameters
ParameterSent inDescription
server *pathServer ULID string
databaseUser *pathDatabase user ULID string

JSON body

Request body
confirm *stringType 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/database-users/<databaseUser>

List background processes (daemons)

GET/servers/{server}/background-processes

Ability: servers:read. command is only filled in for a token with servers:secrets.

Parameters
ParameterSent inDescription
server *pathServer 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/background-processes

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...).

Parameters
ParameterSent inDescription
server *pathServer ULID string
Idempotency-KeyheaderSend 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

Request body
namestring
commandstring
directorystring
userstring
processesinteger
sitestring
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/background-processes

Change a background process

PUT/servers/{server}/background-processes/{process}

Ability: servers:manage. 409 while a change is still running.

Parameters
ParameterSent inDescription
server *pathServer ULID string
process *pathBackground process ULID string

JSON body

Request body
namestring
commandstring
directorystring
userstring
processesinteger
  • 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
curl -X PUT -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/background-processes/<process>

Stop and remove a background process

DELETE/servers/{server}/background-processes/{process}

Ability: servers:manage.

Parameters
ParameterSent inDescription
server *pathServer ULID string
process *pathBackground 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/background-processes/<process>

List scheduled jobs (cron)

GET/servers/{server}/scheduled-jobs

Ability: servers:read. command is only filled in for a token with servers:secrets.

Parameters
ParameterSent inDescription
server *pathServer 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/scheduled-jobs

Add a scheduled job

POST/servers/{server}/scheduled-jobs

Ability: servers:manage. Same fields as the form in the app.

Parameters
ParameterSent inDescription
server *pathServer ULID string
Idempotency-KeyheaderSend 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

Request body
namestring
commandstring
userstring
frequencystring
expressionstring
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/scheduled-jobs

Change a scheduled job

PUT/servers/{server}/scheduled-jobs/{job}

Ability: servers:manage. 409 while a change is still running.

Parameters
ParameterSent inDescription
server *pathServer ULID string
job *pathScheduled job ULID string

JSON body

Request body
namestring
commandstring
userstring
frequencystring
expressionstring
  • 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
curl -X PUT -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/scheduled-jobs/<job>

Remove a scheduled job

DELETE/servers/{server}/scheduled-jobs/{job}

Ability: servers:manage.

Parameters
ParameterSent inDescription
server *pathServer ULID string
job *pathScheduled 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/scheduled-jobs/<job>

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.

Parameters
ParameterSent inDescription
server *pathServer 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/services

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.

Parameters
ParameterSent inDescription
server *pathServer 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/recommended-settings

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.

Parameters
ParameterSent inDescription
server *pathServer ULID string

JSON body

Request body
keysstring[]
groupstring
allow_restartboolean
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/recommended-settings/apply

Check the services again

POST/servers/{server}/services/status

Ability: servers:manage.

Parameters
ParameterSent inDescription
server *pathServer 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/services/status

Restart, reload, start or stop a service

POST/servers/{server}/services/{service}/control

Ability: commands:run.

Parameters
ParameterSent inDescription
server *pathServer ULID string
service *pathService name, e.g. nginx, php8.4-fpm, mysql, redis-server string

JSON body

Request 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/services/<service>/control

List security rules (firewall)

GET/servers/{server}/security-rules

Ability: servers:read.

Parameters
ParameterSent inDescription
server *pathServer 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/security-rules

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.

Parameters
ParameterSent inDescription
server *pathServer ULID string
Idempotency-KeyheaderSend 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

Request body
action"allow" | "deny"
portstring
protocol"tcp" | "udp" | "any"
sourcestring | null
commentstring
confirm_sshboolean
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/security-rules

Remove a security rule

DELETE/servers/{server}/security-rules/{rule}

Ability: servers:manage.

Parameters
ParameterSent inDescription
server *pathServer ULID string
rule *pathSecurity 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/servers/<server>/security-rules/<rule>

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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/scripts

Run a saved script

POST/scripts/{script}/run

Ability: commands:run. One task per server.

Parameters
ParameterSent inDescription
script *pathScript ULID string
Idempotency-KeyheaderSend 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

Request body
servers *string[]Server ULIDs
variablesobject
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/scripts/<script>/run

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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/domains

List a domain's records

GET/domains/{zone}/records

Ability: sites:read. Read live from the domain account (502 when it cannot be reached).

Parameters
ParameterSent inDescription
zone *pathDomain 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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/domains/<zone>/records

Add a record

POST/domains/{zone}/records

Ability: domains:manage.

Parameters
ParameterSent inDescription
zone *pathDomain ULID string

JSON body

Request body
idstringOnly when changing a record.
type *string
host *string
value *string
ttl *integer
priorityinteger
proxiedboolean
  • 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
curl -X POST -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/domains/<zone>/records

Change a record

PUT/domains/{zone}/records

Ability: domains:manage. Send the record's id with the new values.

Parameters
ParameterSent inDescription
zone *pathDomain ULID string

JSON body

Request body
idstringOnly when changing a record.
type *string
host *string
value *string
ttl *integer
priorityinteger
proxiedboolean
  • 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
curl -X PUT -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/domains/<zone>/records

Remove a record

DELETE/domains/{zone}/records

Ability: domains:manage.

Parameters
ParameterSent inDescription
zone *pathDomain ULID string

JSON body

Request 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
curl -X DELETE -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/domains/<zone>/records

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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/connections/code-hosts

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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/connections/cloud-accounts

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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/user

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
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/team

This document

GET/openapi.yaml

  • 200OpenAPI 3.1 YAML
curl -X GET -H "Authorization: Bearer vxo_..." -H "Accept: application/json" https://internal.fuzops.com/api/v1/openapi.yaml

Objects

Server

type "servers"; fields under "attributes"

Server fields
namestring
server_type"app" | "database" | "load_balancer"
providerstring
status"pending" | "provisioning" | "awaiting_agent" | "configuring" | "active" | "disconnected" | "failed" | "deleting"
status_messagestring | null
ip_addressstring | null
private_ip_addressstring | null
regionstring | null
sizestring | null
database_enginestring | null
osstring | null
archstring | null
agent_versionstring | null
sites_countinteger
last_seen_atstring | null
created_atstring | null

Site

type "sites"; fields under "attributes"

Site fields
domainstring
aliasesstring[]
site_type"laravel" | "nuxt" | "node" | "static"
statusstring
repositorystring | null
branchstring
web_directorystring
php_versionstring | null
push_to_deployboolean
releases_to_keepinteger
created_atstring | null

Deployment

type "deployments"; fields under "attributes"

Deployment fields
status"queued" | "running" | "succeeded" | "failed" | "cancelled"
trigger"manual" | "webhook" | "rollback" | "install" | "force"
releasestring | null
branchstring | null
commit_hashstring | null
commit_messagestring | null
created_atstring | null
started_atstring | null
finished_atstring | null
duration_secondsinteger | null
forcedbooleanDeployed again on purpose (force deploy)
commit_shortstring | null
commit_bodystring | nullFull commit message
author_namestring | null
author_emailstring | null
checksobject[]Response measured after it went live, one entry per place it was measured from

DeploymentStep

type "deployment-steps"; fields under "attributes"

DeploymentStep fields
namestring
descriptionstring | null
phase"built_in" | "before_switch" | "after_switch"
run_as"site" | "root"
enabledboolean
built_inboolean
updated_atstring | null

QuickCommand

type "quick-commands"; fields under "attributes"

QuickCommand fields
namestring
run_as"site" | "root"
confirmationstring | null
last_run_atstring | null
last_statusnull | "pending" | "running" | "succeeded" | "failed" | "timed_out" | "cancelled"

Task

type "tasks"; fields under "attributes"

Task fields
task_typestring
namestring
status"pending" | "running" | "succeeded" | "failed" | "timed_out" | "cancelled"
exit_codeinteger | null
duration_msinteger | null
timeoutinteger
output_truncatedboolean
created_atstring | null
claimed_atstring | null
finished_atstring | null

User

type "users"; fields under "attributes"

User fields
namestring
emailstring
two_factor_enabledboolean
created_atstring | null

Team

type "teams"; fields under "attributes"

Team fields
namestring
planstring
role"owner" | "admin" | "developer" | "viewer"
permissionsstring[]
members_countinteger
servers_countinteger
created_atstring | null

Certificate

type "certificates"; fields under "attributes"

Certificate fields
kindstring
authoritystring | null
status"issuing" | "ready" | "active" | "inactive" | "failed" | "external" | "requested"
namesstring[]
issuerstring | null
fingerprintstring | null
activeboolean
valid_fromstring | null
expires_atstring | null
last_errorstring | null
created_atstring | null

Redirect

type "redirects"; fields under "attributes"

Redirect fields
positioninteger
matchstring
fromstring
tostring
status_code301 | 302
created_atstring | null

RedirectInput

RedirectInput fields
match"exact" | "prefix" | "regex"
fromstring
tostring
status_code301 | 302

ServerUser

type "server-users"; fields under "attributes"

ServerUser fields
usernamestring
login"key" | "password"
sudoboolean
lockedboolean
statusstring
status_messagestring | null
created_atstring | null

LoginKey

type "login-keys"; fields under "attributes"

LoginKey fields
namestring
server_userstring
key_typestring | null
fingerprintstring
statusstring
status_messagestring | null
created_atstring | null

Database

type "databases"; fields under "attributes"

Database fields
namestring
enginestring
usersstring[]
statusstring
status_messagestring | null
created_atstring | null

DatabaseUser

type "database-users"; fields under "attributes"

DatabaseUser fields
usernamestring
enginestring
databasesstring[]
statusstring
status_messagestring | null
created_atstring | null

BackgroundProcess

type "background-processes"; fields under "attributes"

BackgroundProcess fields
namestring
presetstring | null
commandstring | nullOnly with `servers:secrets`.
directorystring | null
server_userstring
processesinteger
restart_policystring | null
restart_after_updateboolean
statusstring
status_messagestring | null
created_atstring | null

ScheduledJob

type "scheduled-jobs"; fields under "attributes"

ScheduledJob fields
namestring
commandstring | nullOnly with `servers:secrets`.
directorystring | null
server_userstring
frequencystring
expressionstring
is_schedulerboolean
healthstring | null
last_ping_atstring | null
last_exit_codeinteger | null
statusstring
status_messagestring | null
created_atstring | null

Service

Service fields
unitstring
activestring
enabledstring
versionstring | null

SecurityRule

type "security-rules"; fields under "attributes"

SecurityRule fields
action"allow" | "deny"
portstring | null
protocolstring
sourcestring | null
commentstring | null
managedbooleanAdded by Fuzops for a feature it runs.
statusstring
status_messagestring | null
created_atstring | null

Script

type "scripts"; fields under "attributes"

Script fields
namestring
descriptionstring | null
run_asstring
timeoutinteger
variablesobject[]
updated_atstring | null

Domain

type "domains"; fields under "attributes"

Domain fields
namestring
providerstring | null
created_atstring | null

DnsRecord

DnsRecord fields
idstring | null
typestring
namestring
hoststringName relative to the domain (`@` for the domain itself).
contentstring
ttlinteger
priorityinteger | null
proxiedboolean | null

DnsRecordInput

DnsRecordInput fields
idstringOnly when changing a record.
typestring
hoststring
valuestring
ttlinteger
priorityinteger
proxiedboolean

CodeHostConnection

type "code-host-connections"; fields under "attributes"

CodeHostConnection fields
providerstring
labelstring
account_namestring | null
base_urlstring | null
auth_methodstring | null
connected_bystring | null
created_atstring | null
last_checked_atstring | null
problemstring | null

CloudAccount

type "cloud-accounts"; fields under "attributes"

CloudAccount fields
namestring
providerstring
provider_labelstring
validated_atstring | null
servers_countinteger
created_atstring | null

OutputPage

OutputPage fields
dataobject[]
metaobject
linksobject

PageMeta

PageMeta fields
current_pageinteger
last_pageinteger
per_pageinteger
totalinteger
frominteger | null
tointeger | null

Problem

RFC 9457 problem details.

Problem fields
typestring
titlestring
statusinteger
detailstring
errorsobject
required_abilitystring