REST API
Base https://<hostname>:2444/api/v1, JSON in and out. Token: Authorization: Bearer tpk_… (or X-API-Token). Create tokens in root → API Tokens (owner only); the token is shown once and stored as SHA-256. Each token has scopes and an optional IP/CIDR allow-list. Five failed authentications from an address in 15 minutes → 429 with Retry-After. The API can be switched off (503). Every change is audited as api:<token name>.
| Request | Scope | |
|---|---|---|
GET /ping |
– | token check, version, scopes |
GET /packages |
packages:read | |
GET /accounts?search=&status=&limit=&offset= |
accounts:read | |
GET /accounts/{user} |
accounts:read | account + usage |
POST /accounts |
accounts:write | domain, email, package (id, slug or name), optional username, password, php, no_welcome. 201; returns password when it was generated |
POST /accounts/{user}/suspend |
accounts:write | optional reason; idempotent |
POST /accounts/{user}/unsuspend |
accounts:write | idempotent |
POST /accounts/{user}/package |
accounts:write | package |
POST /accounts/{user}/password |
accounts:write | password |
POST /accounts/{user}/email |
accounts:write | email |
POST /accounts/{user}/terminate |
accounts:write | confirm = username |
POST /accounts/{user}/sso |
sso | optional to (e.g. /email); one-time link valid 120 s |
GET /usage |
usage:read | disk and bandwidth for all accounts |
Port 443: root → API Tokens → Also answer on port 443 serves the same API at https://<hostname>/api/v1 for billing systems whose host blocks port 2444. Root tokens there must come from an address in the root panel allow list.
Reseller tokens: resellers create their own tokens in the reseller panel (port 2448, API Tokens). They use the same requests but only see and change that reseller's own clients and packages; POST /accounts creates the account under the reseller and counts against its limits, and sso needs the reseller's login right.
Errors: {"error": "...", "code": "..."} with 401 unauthorized, 403 forbidden/ip_denied, 404 not_found, 409 conflict, 422 invalid, 429 rate_limited, 502 agent error, 503 disabled.
Server CLI
tivro status
tivro doctor
tivro update | tivro update apply | tivro update status | tivro update rollback
tivro decrypt-backup tivro-system-….tar.gz.enc out.tar.gz
tivro license | tivro license check
tivro services
tivro service nginx restart
tivro call system.info
tivro call php.versions
tivro call ssl.list '{"username":"alice"}'
tivro call web.rebuild
tivro call db.list '{"username":"alice"}'
tivro call fs.query '{"username":"alice","op":"list","params":{"path":"/public_html"}}'
tivro call dns.zone.get '{"zone":"example.com"}'
tivro call mail.spec '{"username":"alice"}'
tivro call mail.queue
tivro call mail.ratelimit
tivro call mail.rebuild
tivro call firewall.list
tivro call firewall.block '{"addr":"203.0.113.7","minutes":60,"reason":"abuse"}'
tivro call firewall.unblock '{"addr":"203.0.113.7"}'
tivro call security.events
tivro call modsec.status
tivro call security.clamav '{"action":"status"}'
tivro call backup.list '{"dest":{"id":"local","type":"local"},"username":"alice"}'
tivro call cron.get '{"username":"alice"}'
tivro call ftp.sessions
tivro call proc.list '{"username":"alice"}'
tivro call stats.bandwidth '{"domains":["example.com"],"from":"2026-10-01","to":"2026-10-31"}'
tivro call app.scan '{"username":"alice"}'
tivro call wp.info '{"username":"alice","path":"/public_html","php":"8.3"}'
Panel admin tools:
TIVRO_PANEL_CONFIG=/etc/tivro/panel.php /opt/remi/php83/root/usr/bin/php /usr/local/tivro/panel/bin/admin.php list
... admin.php reset-password <user>
... admin.php disable-2fa <user>
Ports
| Port | Service |
|---|---|
| 21, 30000-30100 | FTP / FTPS (Pure-FTPd), passive range |
| 2443 | Client panel |
| 2444 | Root panel |
| 2445 | Webmail (Roundcube) |
| 2448 | Reseller panel |
| 53 tcp/udp | PowerDNS |
| 25, 465, 587 | SMTP (Postfix), submission needs auth |
| 143, 993, 110, 995 | IMAP, POP3 (Dovecot), TLS required before login |
| 127.0.0.1:8081 | PowerDNS API |
| 127.0.0.1:11332 | rspamd milter |
| 2446 | Cluster API (mutual TLS, pinned certificates) |
| 127.0.0.1:8080 | Apache behind Nginx (ModSecurity) |
| /run/tivro/agent.sock | Root agent |