API Reference
Call ServerAvatar Central from your own scripts. Base URL, headers, response shapes, pagination, errors and rate limits.
The Central API is the same HTTP API the Central panel uses. Your organizations, servers, integrations and account all have routes here. You can call them from a script, a CI job or any tool that sends HTTPS requests with JSON.
This reference covers the routes a customer uses. This page has the rules that apply to every route. Each group of routes has its own page.
Authentication
Login token or personal API token: how to get one, send it and renew it, and which routes refuse the personal token.
Account
Your profile, in-app notifications and notification channels.
Organizations
Organizations, members, roles and permissions, the sidebar menu and the activity log.
Integrations
Cloud providers, Git accounts, backup storage accounts and Cloudflare.
Servers
List, create, connect and delete servers. Managed servers, deleted servers and sharing.
Server panel
The server screens: dashboard, settings, system users, firewall, Fail2ban, cron jobs, services, PHP, Node.js, Docker, logs, sync and databases.
Applications
Create and manage applications: domains and SSL, files, logs, PHP, environment, deployment, staging, workers, security and containers.
Backups
Backups, restores and downloads, and the backup plans of applications and databases.
Billing and add-ons
Wallet, payments and cards, add-ons, Control Panel, White-label, Log Monitoring, Premium Hosting Care, WP Toolkit and referral.
For how to do the same things in the panel, see the Central guide.
Base URL
Every route starts with /api/v1 on your Central API address:
https://<api-address>/api/v1Replace <api-address> with the API address of your Central. The How to use it panel on Account → API access shows an example request on that address. See API access.
All paths on these pages are relative to the base URL. GET /organizations means GET https://<api-address>/api/v1/organizations.
Request headers
Send these on every request:
| Header | Value | Notes |
|---|---|---|
Accept | application/json | Always send it. The API answers in JSON. |
Content-Type | application/json | For requests with a body. A route that uploads a file, such as the organization logo, takes multipart/form-data instead. |
Authorization | Bearer <token> | Every route except sign-in and sign-up. See Authentication. |
Accept-Language | A language code, for example en | Optional. Messages come back in that language if your Central supports it, and in English if it does not. The answer has a Content-Language header with the language used. |
In a JSON body, booleans are true and false, not strings.
Response shape
A successful answer has a data key. A change also has a short message:
{
"data": {
"id": 590,
"name": "Acme Studio"
},
"message": "Organization updated."
}Some routes answer with only a message, for example a delete:
{
"message": "Organization deleted."
}A few routes answer 204 No Content with an empty body. The page for the route says so.
Dates are ISO 8601 with a time zone, for example 2026-11-25T01:19:42+00:00. Ids are whole numbers. A field with no value is null.
Lists and pagination
Most lists are paged. Pass page (from 1) and per_page (1 to 50) in the query string. The answer has data, links and meta:
{
"data": [ { "id": 145, "name": "docs-shots" } ],
"links": {
"first": "https://<api-address>/api/v1/organizations/590/servers?page=1",
"last": "https://<api-address>/api/v1/organizations/590/servers?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://<api-address>/api/v1/organizations/590/servers",
"per_page": 12,
"to": 1,
"total": 1
}
}The default page size differs from list to list. meta.per_page shows the one used, and links.next is null on the last page. The answer also has a meta.links list of page links for a page bar; you can ignore it. A few short lists are not paged and have only data: the organization list and the role list.
Many lists also take search (at most 100 characters), a filter or a sort. The page for the list shows them.
Errors
Every error has a message in plain words. Many also have a code you can test for in a script. A validation error lists the fields that failed.
| Status | Meaning | Body |
|---|---|---|
401 | The token is missing, expired or revoked. | code is unauthenticated. |
403 | You are known, but not allowed. | The message says why. Some answers have a code: account_banned, email_not_verified, api_token_not_allowed or link_invalid. |
404 | The item does not exist, or you are not a member of its organization. | code is not_found. |
422 | The input did not pass validation. | message, and an errors object with a list of messages for each field. |
429 | Too many requests. | message, and a Retry-After header with the number of seconds to wait. |
A 401:
{
"message": "Please log in to continue.",
"code": "unauthenticated"
}A 422:
{
"message": "The name field is required.",
"errors": {
"name": [
"The name field is required."
]
}
}A 403 for a member whose role lacks the permission the route needs has no code:
{
"message": "You do not have permission to do this in this organization."
}Ask the organization owner for the permission. See Roles and permissions.
email_not_verified only stops two actions: creating a managed server and redeeming a promo code. Every other organization route works while your email is not verified.
Rate limits
The default limit is 240 requests a minute. It counts per signed-in user, and per IP address for requests with no token. The administrator of your Central can change it. Every answer has two headers:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed a minute. |
X-RateLimit-Remaining | Requests left in the current minute. |
When you pass the limit, Central answers 429:
{
"message": "Too many attempts. Please try again in 60 seconds."
}The Retry-After header holds the number of seconds. Wait that long before you try again.
A few routes have a lower limit of their own, for example sign-in, two-factor codes and password changes. Their pages give the numbers.
Make a first call
Replace <token> with your token (see Authentication), then list the organizations you belong to:
curl https://<api-address>/api/v1/organizations \
-H "Accept: application/json" \
-H "Authorization: Bearer <token>"Every item has an id. Most routes take an organization id in the path, for example /organizations/590/servers. Use the id from this list.