ServerCrate API for scripts, CI and agencies
The same REST API the portal runs on: backup vaults, cloud servers, S3, Proxmox offsite and Borg. JSON over HTTPS, with API tokens you create, scope and revoke yourself.
68 endpoints. Read, write or full-access tokens. Revoke any token at any time.
Authentication
Every request carries one API token as a bearer token. Base URL: https://portal.servercrate.net/api/v1
- Create a token in the portal under Security, API tokens.
- Pick a scope and an expiry. The secret is shown once; store it like a password.
- Send it as
Authorization: Bearer sc_pat_...on every request.
Errors come back as JSON with a detail message and the usual HTTP status. A token never reaches sign-in, two-factor, token management or admin, so a leaked token cannot lock you out of your account.
$ curl -sS \ -H "Authorization: Bearer $SC_TOKEN" \ https://portal.servercrate.net/api/v1/vault/
Token scopes
Give each tool the smallest scope it needs.
| Scope | Allows |
|---|---|
| Read | GET requests only: list and view your services. |
| Read and write | Also create and change things. No deletes, no billing or payments. |
| Full access | Everything your account can do, including deletes and billing. |
Built to be safe to automate
Checked against the live API with real tokens.
- Hashed at rest. Tokens carry 256 bits of randomness and we store only a hash; the secret is shown to you once.
- Scopes enforced on our side. A read token cannot create, a read-and-write token cannot delete.
- No way in to your account. Tokens are refused on sign-in, two-factor, token management and admin.
- Expire and revoke. Expired or revoked tokens stop working immediately.
- Rate limited. Repeated bad tokens from one address are locked out, and every client has a request ceiling.
Backup vaults
20 endpoints.
| Method | Path | What it does | Token scope |
|---|---|---|---|
GET | /api/v1/vault-locks | List Locks | Read |
POST | /api/v1/vault-locks/{vault_id} | Set Lock | Read and write |
GET | /api/v1/vault/ | List Vaults | Read |
GET | /api/v1/vault/devices | List Devices | Read |
POST | /api/v1/vault/devices | Register Device | Read and write |
PATCH | /api/v1/vault/devices/{device_id} | Update Device | Read and write |
DELETE | /api/v1/vault/devices/{device_id} | Delete Device | Full access |
POST | /api/v1/vault/first-backup-check | First Backup Check | Read and write |
GET | /api/v1/vault/machines | List Machines | Read |
POST | /api/v1/vault/restore-verified | Mark Restore Verified | Read and write |
GET | /api/v1/vault/snapshots | List Snapshots | Read |
POST | /api/v1/vault/snapshots | Create Snapshot | Read and write |
GET | /api/v1/vault/snapshots/auto | Sc G11 Auto Snapshots | Read |
DELETE | /api/v1/vault/snapshots/{snapshot_id} | Delete Snapshot | Full access |
POST | /api/v1/vault/{vault_id}/keep-active | Customer Keep Vault Active | Read and write |
PATCH | /api/v1/vault/{vault_id}/label | Set Vault Label | Read and write |
POST | /api/v1/vault/{vault_id}/maint-credential | Create Maint Credential | Read and write |
POST | /api/v1/vault/{vault_id}/reactivate | Customer Reactivate Vault | Read and write |
GET | /api/v1/vaults | List My Vaults | Read |
GET | /api/v1/vaults/overview | Vaults Overview | Read |
Cloud servers
22 endpoints.
| Method | Path | What it does | Token scope |
|---|---|---|---|
GET | /api/v1/vps/ | List Servers | Read |
GET | /api/v1/vps/os-templates | List Os Templates | Read |
GET | /api/v1/vps/plans | List Vps Plans | Read |
GET | /api/v1/vps/{server_id} | Get Server | Read |
GET | /api/v1/vps/{server_id}/backups | Server Backups | Read |
GET | /api/v1/vps/{server_id}/bandwidth | Server Bandwidth | Read |
POST | /api/v1/vps/{server_id}/cancel | Server Cancel | Read and write |
GET | /api/v1/vps/{server_id}/firewall | List Firewall | Read |
POST | /api/v1/vps/{server_id}/firewall | Add Firewall Rule | Read and write |
DELETE | /api/v1/vps/{server_id}/firewall/{rule_id} | Delete Firewall Rule | Full access |
PATCH | /api/v1/vps/{server_id}/label | Set Server Label | Read and write |
GET | /api/v1/vps/{server_id}/metrics | Server Metrics | Read |
GET | /api/v1/vps/{server_id}/panel | Server Panel | Read |
GET | /api/v1/vps/{server_id}/ports | List Ports | Read |
POST | /api/v1/vps/{server_id}/ports | Add Port | Read and write |
DELETE | /api/v1/vps/{server_id}/ports/{external_port} | Delete Port | Full access |
POST | /api/v1/vps/{server_id}/power | Server Power | Read and write |
POST | /api/v1/vps/{server_id}/reinstall | Reinstall Server | Read and write |
POST | /api/v1/vps/{server_id}/restore | Server Restore | Read and write |
POST | /api/v1/vps/{server_id}/resume | Server Cancel Resume | Read and write |
POST | /api/v1/vps/{server_id}/snapshots | Server Snapshot | Read and write |
GET | /api/v1/vps/{server_id}/status | Server Status | Read |
S3 object storage
11 endpoints.
| Method | Path | What it does | Token scope |
|---|---|---|---|
GET | /api/v1/s3/ | List S3 | Read |
GET | /api/v1/s3/protection | List Protection | Read |
POST | /api/v1/s3/tenants/{tenant_id}/key | Rotate Key | Read and write |
GET | /api/v1/s3/tenants/{tenant_id}/keys | List Scoped Keys | Read |
POST | /api/v1/s3/tenants/{tenant_id}/keys | Create Scoped Key | Read and write |
POST | /api/v1/s3/tenants/{tenant_id}/keys/{access}/revoke | Revoke Scoped Key | Read and write |
POST | /api/v1/s3/tenants/{tenant_id}/lock-bucket | Create Lock Bucket | Read and write |
POST | /api/v1/s3/tenants/{tenant_id}/lock-default | Set Lock Default | Read and write |
POST | /api/v1/s3/tenants/{tenant_id}/old-versions | Set Old Versions | Read and write |
POST | /api/v1/s3/tenants/{tenant_id}/protection | Set Protection | Read and write |
POST | /api/v1/s3/{subscription_id}/create | Create Bucket | Read and write |
Proxmox offsite
3 endpoints.
| Method | Path | What it does | Token scope |
|---|---|---|---|
GET | /api/v1/pbs/ | List Pbs | Read |
POST | /api/v1/pbs/tenants/{tenant_id}/label | Set Label | Read and write |
POST | /api/v1/pbs/{subscription_id}/create | Create Datastore | Read and write |
Borg repositories
5 endpoints.
| Method | Path | What it does | Token scope |
|---|---|---|---|
GET | /api/v1/borg/ | List Borg | Read |
POST | /api/v1/borg/tenants/{tenant_id}/key | Replace Key | Read and write |
POST | /api/v1/borg/tenants/{tenant_id}/maintenance | Open Maintenance | Read and write |
DELETE | /api/v1/borg/tenants/{tenant_id}/maintenance | Close Maintenance | Full access |
POST | /api/v1/borg/{subscription_id}/create | Create Repo | Read and write |
Notifications
7 endpoints.
| Method | Path | What it does | Token scope |
|---|---|---|---|
GET | /api/v1/notifications | List Notifications | Read |
DELETE | /api/v1/notifications/all | Delete All | Full access |
GET | /api/v1/notifications/prefs | Get Prefs | Read |
PUT | /api/v1/notifications/prefs | Update Prefs | Read and write |
POST | /api/v1/notifications/read-all | Mark All Read | Read and write |
DELETE | /api/v1/notifications/{nid} | Delete Notification | Full access |
POST | /api/v1/notifications/{nid}/read | Mark Read | Read and write |
Generated from the live API. A missing endpoint or a question: contact us.