REST API
What you do in the customer area, your scripts and CI can do too: VPSs, applications, firewall, disks, snapshots, billing and dedicated servers.
Tokens and security
- Tokens created in the customer area, with an expiry date of your choice.
- Limited scope: read-only, or read and write.
- Limits: 60 requests per minute for reads, 20 for writes.
- JSON errors, standard HTTP codes (422 validation, 403 permissions, 409 incompatible state).
Documentation
- OpenAPI (Swagger) documentation in the customer area.
- Hourly price of each VPS returned by the API, at the current rate.
- Same rules as the customer area: account limits, balance, outbound port 25 closed.
- cloud-init: pass a user_data at creation and the VPS sets itself up on first boot.
Create a VPS in one request
curl -X POST https://prolink.org/api/v1/projects/42/instances \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"instances": [{
"name": "web", "image_id": "…",
"vcpus": 2, "ram_mb": 4096, "disk_gb": 40,
"public_ip": true,
"user_data": "#cloud-config\npackages: [docker.io]" }]}'
Free trial