Reference
Using the Fuzops API
Create an API token, call the Fuzops API from your own scripts, and what it covers. The full list of requests is in the API reference.
Last updated 1 min readView as Markdown
The API lets a script or another program work with your team's servers and sites without signing in as you: list servers and sites, publish an update, read an update's steps, run a saved script, manage addresses, HTTPS, redirects, the settings file, database users, background processes, scheduled jobs and security rules, domains and their records. Most people never need it.
The complete list of requests, with examples, is in the API reference.
Create a token#
- Open Team and settings › API tokens and choose Create token.
- Give it a name and choose what it may do (its abilities), such as reading sites or publishing updates. Give it only what your script needs.
- Copy the token. It is shown only once.


A token belongs to one team. It can only do what your role allows, reaches only the servers and sites you reach, and stops working if you leave the team.
Call the API#
Send the token in the Authorization header of each request. The address of the API is shown on the API tokens page.
curl -H "Authorization: Bearer YOUR_TOKEN" \
-H "Accept: application/json" \
https://YOUR-FUZOPS-ADDRESS/api/v1/sites
- Lists come in pages (
page,per_page, at most 100 per page). - Errors follow one format (problem details) with a plain message.
- Scripts, access keys and secrets are never returned. A site's settings file is returned only to a token with the right to read secrets, and a new password only once, when it is created.
- Requests are limited per minute; the response headers say how many are left.
What the API does not do yet#
Creating or deleting servers is done in the app, not through the API.
Related#
Still stuck? Get help