The Calagopus API supports two authentication methods: session cookies (used automatically by the browser) and API keys (for programmatic access from scripts, CLI tools, or integrations).Documentation Index
Fetch the complete documentation index at: https://mintlify.com/calagopus/panel/llms.txt
Use this file to discover all available pages before exploring further.
Session cookies
When you log in through the panel UI, the server sets a signed session cookie. All subsequent requests made from the browser include this cookie automatically. You do not need to manage session cookies manually unless you are building a browser-based integration.Session cookies are intended for interactive browser sessions. For automated or programmatic access, create an API key instead.
API keys
API keys let you authenticate without a browser session. You pass the key in theAuthorization header as a Bearer token.
Bearer prefix is stripped, leaving a 48-character key).
Creating an API key
Create a new key
Click Create API Key and enter a name for the key. Optionally restrict the key to specific IP addresses and configure the permission scopes.
API key scopes
Each API key carries three separate sets of permissions. A key can only grant permissions that your own account already holds — you cannot escalate privileges through a key.Controls access to account-level operations such as
account.infos, api-keys.read, api-keys.create, servers.read, and servers.view.Controls access to admin-level operations such as
users.read, servers.create, nodes.delete, and nests.update. Only relevant if your account has admin rights.Controls access to individual server operations such as
control.start, files.read, backups.create, and databases.read.Optional list of IP addresses or CIDR ranges allowed to use this key. If empty, requests from any IP are accepted.
Optional expiry timestamp. The key becomes invalid after this time.
Example: creating an API key via the API
key field. This is the only time the full key is returned.
Common authentication errors
| Status | Error message | Cause |
|---|---|---|
401 | missing authorization | No Authorization header or session cookie was sent. |
401 | invalid authorization header | The Authorization header is present but has the wrong length. |
401 | invalid api key | The key does not match any active key in the database. |
401 | invalid session | The session cookie is invalid or has expired. |
403 | ip address not allowed for this api key | The request came from an IP not in the key’s allowed_ips list. |
403 | two-factor authentication required | The account requires 2FA but it is not enabled. |
401 | unauthorized | Admin API: your account does not have any admin permissions. |