ServerAvatarDocs
API Reference

API Reference

OSS Panel API — authentication, endpoints, and payload shapes.

Reference documentation for the OSS Panel HTTP API — authentication, endpoints, request and response shapes, and error semantics.

Everything the panel's own interface does, it does through this API. Servers, sites, applications, deployments, SSL, databases and backups are all reachable from a script holding a token.

Authentication

Get a bearer token, send it, know when it expires — plus the cookie-session alternative, permissions, rate limits and error shapes.

Applications

Create, provision and manage applications: site types, domains, certificates, deployments, Git, containers.

Application features

Files, logs, PHP, environment, password protection, web firewall, bot blocker, Fail2ban, staging, clone, workers.

Databases

Engines, databases, users, import and export, per-database backups, monitoring.

Backups and storage

Storage destinations, backup plans, backups, restores and downloads.

Git accounts and registries

Connect Git providers and Docker registry logins; list repositories and branches.

Docker

Networks, volumes, limits, containerised databases and image lookup.

System users and SSH keys

Accounts on the server, their passwords, shells, sudo and SSH keys.

Firewall and Fail2ban

Firewall rules and switch, rules added outside the panel, Fail2ban settings, ignore list and bans.

PHP, Node.js and build tools

Versions, defaults, php.ini, extensions, ionCube, npm and the build toolchain.

Server operations

Metrics and processes, services, logs, background operations, cron jobs, disk cleaner, server activity log.

Settings, setup and server sync

Hostname, SSH, updates, swap, Redis, reboot, the setup catalogue and syncing a migrated server.

Central connection and add-ons

The Central token, and the add-on routes only Central can call.

Administration

Users, roles, permissions, panel-wide activity and error logs, the self-check and panel updates.

Public and account endpoints

Health, branding, your profile and password, permissions, time zones and the deploy webhook.

Looking for setup and operational guidance instead? See the OSS Panel guide.

Conventions

These hold across every endpoint.

Base URL — https://<your-panel-host>/api.

Response envelope — a named top-level key, never a generic data wrapper:

{"user": {"id": 1, "username": "admin"}}
{"applications": [{"id": 1, "name": "shop"}]}

Timestamps — DD-MM-YYYY HH:mm:ss, each with a _human sibling: created_at_human: "3 minutes ago".

Pagination — page-based. Pass ?page=N&per_page=20; the response carries meta: {current_page, per_page, total, last_page}.

Localisation — send Accept-Language to get error messages and permission titles in one of the eight supported locales.

Each page below groups the endpoints of one area, with the permission each needs, the parameters and their limits, an example request and response, and the errors. The example responses show the main fields and are written from the panel's code, not captured from a live server: a real response may carry more.

Your own install also serves a generated reference for every route at /docs/api-reference.

On this page