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

  1. Create a token in the portal under Security, API tokens.
  2. Pick a scope and an expiry. The secret is shown once; store it like a password.
  3. 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.

List your vaults with a read-only token
$ curl -sS \
    -H "Authorization: Bearer $SC_TOKEN" \
    https://portal.servercrate.net/api/v1/vault/

Token scopes

Give each tool the smallest scope it needs.

ScopeAllows
ReadGET requests only: list and view your services.
Read and writeAlso create and change things. No deletes, no billing or payments.
Full accessEverything your account can do, including deletes and billing.

Built to be safe to automate

Checked against the live API with real tokens.

  1. Hashed at rest. Tokens carry 256 bits of randomness and we store only a hash; the secret is shown to you once.
  2. Scopes enforced on our side. A read token cannot create, a read-and-write token cannot delete.
  3. No way in to your account. Tokens are refused on sign-in, two-factor, token management and admin.
  4. Expire and revoke. Expired or revoked tokens stop working immediately.
  5. Rate limited. Repeated bad tokens from one address are locked out, and every client has a request ceiling.

Backup vaults

20 endpoints.

MethodPathWhat it doesToken scope
GET/api/v1/vault-locksList LocksRead
POST/api/v1/vault-locks/{vault_id}Set LockRead and write
GET/api/v1/vault/List VaultsRead
GET/api/v1/vault/devicesList DevicesRead
POST/api/v1/vault/devicesRegister DeviceRead and write
PATCH/api/v1/vault/devices/{device_id}Update DeviceRead and write
DELETE/api/v1/vault/devices/{device_id}Delete DeviceFull access
POST/api/v1/vault/first-backup-checkFirst Backup CheckRead and write
GET/api/v1/vault/machinesList MachinesRead
POST/api/v1/vault/restore-verifiedMark Restore VerifiedRead and write
GET/api/v1/vault/snapshotsList SnapshotsRead
POST/api/v1/vault/snapshotsCreate SnapshotRead and write
GET/api/v1/vault/snapshots/autoSc G11 Auto SnapshotsRead
DELETE/api/v1/vault/snapshots/{snapshot_id}Delete SnapshotFull access
POST/api/v1/vault/{vault_id}/keep-activeCustomer Keep Vault ActiveRead and write
PATCH/api/v1/vault/{vault_id}/labelSet Vault LabelRead and write
POST/api/v1/vault/{vault_id}/maint-credentialCreate Maint CredentialRead and write
POST/api/v1/vault/{vault_id}/reactivateCustomer Reactivate VaultRead and write
GET/api/v1/vaultsList My VaultsRead
GET/api/v1/vaults/overviewVaults OverviewRead

Cloud servers

22 endpoints.

MethodPathWhat it doesToken scope
GET/api/v1/vps/List ServersRead
GET/api/v1/vps/os-templatesList Os TemplatesRead
GET/api/v1/vps/plansList Vps PlansRead
GET/api/v1/vps/{server_id}Get ServerRead
GET/api/v1/vps/{server_id}/backupsServer BackupsRead
GET/api/v1/vps/{server_id}/bandwidthServer BandwidthRead
POST/api/v1/vps/{server_id}/cancelServer CancelRead and write
GET/api/v1/vps/{server_id}/firewallList FirewallRead
POST/api/v1/vps/{server_id}/firewallAdd Firewall RuleRead and write
DELETE/api/v1/vps/{server_id}/firewall/{rule_id}Delete Firewall RuleFull access
PATCH/api/v1/vps/{server_id}/labelSet Server LabelRead and write
GET/api/v1/vps/{server_id}/metricsServer MetricsRead
GET/api/v1/vps/{server_id}/panelServer PanelRead
GET/api/v1/vps/{server_id}/portsList PortsRead
POST/api/v1/vps/{server_id}/portsAdd PortRead and write
DELETE/api/v1/vps/{server_id}/ports/{external_port}Delete PortFull access
POST/api/v1/vps/{server_id}/powerServer PowerRead and write
POST/api/v1/vps/{server_id}/reinstallReinstall ServerRead and write
POST/api/v1/vps/{server_id}/restoreServer RestoreRead and write
POST/api/v1/vps/{server_id}/resumeServer Cancel ResumeRead and write
POST/api/v1/vps/{server_id}/snapshotsServer SnapshotRead and write
GET/api/v1/vps/{server_id}/statusServer StatusRead

S3 object storage

11 endpoints.

MethodPathWhat it doesToken scope
GET/api/v1/s3/List S3Read
GET/api/v1/s3/protectionList ProtectionRead
POST/api/v1/s3/tenants/{tenant_id}/keyRotate KeyRead and write
GET/api/v1/s3/tenants/{tenant_id}/keysList Scoped KeysRead
POST/api/v1/s3/tenants/{tenant_id}/keysCreate Scoped KeyRead and write
POST/api/v1/s3/tenants/{tenant_id}/keys/{access}/revokeRevoke Scoped KeyRead and write
POST/api/v1/s3/tenants/{tenant_id}/lock-bucketCreate Lock BucketRead and write
POST/api/v1/s3/tenants/{tenant_id}/lock-defaultSet Lock DefaultRead and write
POST/api/v1/s3/tenants/{tenant_id}/old-versionsSet Old VersionsRead and write
POST/api/v1/s3/tenants/{tenant_id}/protectionSet ProtectionRead and write
POST/api/v1/s3/{subscription_id}/createCreate BucketRead and write

Proxmox offsite

3 endpoints.

MethodPathWhat it doesToken scope
GET/api/v1/pbs/List PbsRead
POST/api/v1/pbs/tenants/{tenant_id}/labelSet LabelRead and write
POST/api/v1/pbs/{subscription_id}/createCreate DatastoreRead and write

Borg repositories

5 endpoints.

MethodPathWhat it doesToken scope
GET/api/v1/borg/List BorgRead
POST/api/v1/borg/tenants/{tenant_id}/keyReplace KeyRead and write
POST/api/v1/borg/tenants/{tenant_id}/maintenanceOpen MaintenanceRead and write
DELETE/api/v1/borg/tenants/{tenant_id}/maintenanceClose MaintenanceFull access
POST/api/v1/borg/{subscription_id}/createCreate RepoRead and write

Notifications

7 endpoints.

MethodPathWhat it doesToken scope
GET/api/v1/notificationsList NotificationsRead
DELETE/api/v1/notifications/allDelete AllFull access
GET/api/v1/notifications/prefsGet PrefsRead
PUT/api/v1/notifications/prefsUpdate PrefsRead and write
POST/api/v1/notifications/read-allMark All ReadRead and write
DELETE/api/v1/notifications/{nid}Delete NotificationFull access
POST/api/v1/notifications/{nid}/readMark ReadRead and write

Generated from the live API. A missing endpoint or a question: contact us.