Skip to main content
Servers

Provision a server

Asynchronous Request

You need to query the Server Configurations endpoints first in order to gather appropriate data for this method. Before choosing profileSlug, inspect available profiles for capabilities required by the intended workload. For managed WordPress, select a profile where wordpressManagementIncluded=true; profiles where it is false cannot use Webdock managed WordPress operations. Apply capability filtering first, then optimize for price/resources among eligible profiles.

Provisioning is asynchronous and typically completes in less than 1 minute, but may in some rare cases take up to 3 minutes (desktop images and restores from snapshots or archives can take longer). Track it with the returned X-Callback-ID: poll getEvents with that callbackId every 5-15 seconds until status is finished or error; waiting/working mean it is still running, not that it is stuck. The server status stays provisioning until then, and deleteServer and other server actions return 400 while the server is provisioning.

POST
/servers
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Post server model

archivedServerIdinteger

Archived server ID from which to restore (re-provision) the server. Use IDs from GET /servers/archived. The restored server re-uses the archived server's slug and its virtualization type is taken from the archive. When the archive entry reports a non-null requiredDiskMiB, the selected profileSlug must provide at least that many MiB of disk or provisioning is rejected. You must pass exactly one of imageSlug, snapshotId or archivedServerId.

billingFrequencyenum<string> | nulldefault:monthly

Optional recurring billing frequency for the server subscription. monthly creates monthly billing (default when omitted). yearly creates yearly billing.

Available options: monthly, yearly
imageSlugstring

Slug of the server image. Get this from the /images endpoint. You must pass either this parameter or snapshotId

locationIdstringrequired

ID of the location. Get this from the /locations endpoint.

namestringrequired

Name of the server

profileSlugstringrequired

Slug of the server profile. Get this from the /profiles endpoint. Select profileSlug by required capability first, then optimize for cost/resources among eligible profiles. For managed WordPress workflows, select only profiles where wordpressManagementIncluded=true.

slugstring

Suggested Slug (shortname) of the server. Up to 12 alphanumeric chars. This slug is effectively your server ID and anything submitted in this field is merely your suggestion for a slug. If omitted or the suggested slug is already taken, the system will automatically generate an appropriate unique slug based on your server Name or suggestion. Always check the return from this method to determine the actual slug your server ended up receiving.

snapshotIdinteger

Snapshot ID from which to create the server. Use IDs from GET /servers/{serverSlug}/snapshots for regular snapshots. To restore an archived server use archivedServerId instead. You must pass exactly one of imageSlug, snapshotId or archivedServerId.

userScriptIdinteger | string | null

Optional. Account or library script numeric id, or the slug string from script list or detail responses. If provided, the script is deployed to /root/auto-deploy-script and executed once provisioning finishes (after all provisioning actions, including SSL certificate generation). The script is executed from the command line; ensure it has a valid shebang (e.g. #!/bin/bash, #!/usr/bin/env python3) and is self-contained. Use this to auto-deploy software, credentials, or other setup steps.

virtualizationenum<string>default:kvm

Virtualization type for your new server. LXD Containers have been deprecated and you can no longer provision new servers using container virtualization. Provisioning from a snapshot will now auto-select the virtualization based on the image type and enable you to spin up images of LXD container instances via. the API. Any new server must be KVM virtualized however. This means this property is now essentially ignored, but kept for backwards compatibility.

Available options: kvm

Response

application/json

Server provisioning initiated

X-Callback-IDstringheader

CallbackID

SSHPasswordAuthEnabledbooleandefault:false

SSH Password Authentication Enabled for this Server

WordPressLockDownbooleandefault:false

Wordpress lockdown status

aliasesstring[]

Aliases - Domain names for the server as known by Webdock. First entry should be treated as the "Main Domain" for the server.

datestring

Creation date/time

descriptionstring

Server Description (what's installed here?) as entered by admin in Server Metadata

imagestring

Server image

imageDataobject

ServerImage model

ipv4string | null

IPv4 address

ipv6string | null

IPv6 address

lastcheckedstring | null

Last time the platform checked this server for utilization metrics

locationstring | null

Location ID of the server

metadataobject

Server metadata such as default alias/domain flags, certificate run status, UI fields, billing helper fields, and automation toggles.

namestring

Server name

nextActionDatestring | null

Date sourced from server metadata.invoice_date. Often used as the next billing/lifecycle action date (including scheduled end-of-period cancellation/deletion when applicable), but may be null.

notesstring

Notes as entered by admin in Server Metadata

passwordlessSudoEnabledbooleandefault:false

Passwordless sudo enabled for this Server

pendingDeletionbooleandefault:false

True when this server currently has a pending scheduled cancellation/deletion (for example end-of-period deletion for billed servers).

profilestring | null

Server profile

profileDataobject

ServerProfile model

secondary_ipsobject[]

Secondary IP addresses assigned to this server

servicesobject

Service information attached to this server.

slugstring

Server slug

snapshotRunTimeinteger

Last known snapshot runtime (seconds)

statusenum<string>

Server lifecycle status. Active compute servers use statuses such as provisioning/running/stopped/error/rebooting/starting/stopping/reinstalling. Archived servers returned through suspended inventory views use status=suspended.

Available options: provisioning, running, stopped, error, rebooting, starting, stopping, reinstalling, suspended
virtualizationenum<string>

Server virtualization type indicating whether it's a Webdock LXD VPS or a KVM Virtual Machine. Container virtualization has been deprecated so you will only see this value for legacy servers.

Available options: container, kvm
webServerenum<string>

Webserver type

Available options: Apache, Nginx, None