Purchase server
This API endpoint allows you to purchase a new server using your
available balance. By default the server is provisioned for one month;
pass duration to purchase a longer initial term and benefit from the
duration discount tiers.
Documentation Index
Fetch the complete documentation index at: https://docs.rdp.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Body
ID of the plan to purchase.
ID of the region to deploy in.
1
ID of the distro or ISO image to install on the server.
Number of months to purchase the server for (1-12). The total
is calculated as plan.price * duration with the duration
discount tier applied:
- 3 months: 5% off
- 6 months: 10% off
- 12 months: 15% off
Other durations (1, 2, 4, 5, 7, 8, 9, 10, 11) receive no discount.
1 <= x <= 12Optional raw SSH public key (e.g. ssh-ed25519 AAAA... user@host)
to install on the new server. Only valid when distro_id
refers to a Linux distro — supplying it together with a
Windows ISO returns an error.
The key is provisioned via cloud-init at first boot. You do not need to register the key on the dashboard first.
8192"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExampleKeyDataHere user@example"
Response
The request was successful, and a new resource was created.
ID of the invoice created for this purchase.
Number of months the server was purchased for.
1
Total amount deducted from the user's balance after applying the duration discount tier.
102
ISO-8601 expiry timestamp for the new server.
"2027-05-04T12:00:00.000000Z"