Provision a server

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.
Body
Post server model
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.
Optional recurring billing frequency for the server subscription. monthly creates monthly billing (default when omitted). yearly creates yearly billing.
monthly, yearlySlug of the server image. Get this from the /images endpoint. You must pass either this parameter or snapshotId
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.
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.
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.
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.
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.
kvmResponse
Server provisioning initiated
Aliases - Domain names for the server as known by Webdock. First entry should be treated as the "Main Domain" for the server.
Server metadata such as default alias/domain flags, certificate run status, UI fields, billing helper fields, and automation toggles.
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.
True when this server currently has a pending scheduled cancellation/deletion (for example end-of-period deletion for billed servers).
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.
provisioning, running, stopped, error, rebooting, starting, stopping, reinstalling, suspendedServer 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.
container, kvmStill need help? Share an idea