Book Appointment Now
API Documentation
REST API · v1
Manage RezaHosting VPS Programmatically
A clean JSON REST API for the same NVMe KVM platform you use in the client area. Deploy instances in under 60 seconds, take off-node snapshots, resize plans, and read live usage metrics from your own tooling, CI pipeline, or control panel.
$ curl -X POST https://api.rezahosting.space/v1/servers \
-H "Authorization: Bearer $REZA_KEY" \
-d '{"plan":"pro","region":"ams","os":"ubuntu-24.04"}'
✔ 201 Created · 47s to build
{
"id": "vps-ams-042",
"status": "active",
"ipv4": "203.0.113.42", "region": "ams"
OVERVIEW
Introduction
The RezaHosting Store API is organized around REST. It uses predictable resource URLs, returns JSON, and relies on standard HTTP verbs and response codes. Authenticate with a bearer token, send JSON request bodies, and you can script the full server lifecycle without touching the dashboard.
https://api.rezahosting.space/v1 over HTTPS. Plain HTTP requests are rejected, and TLS 1.2 or newer is required.Every plan the API can create is a true KVM instance with dedicated vCPU and RAM pinned to your subscription, NVMe RAID-10 storage, and full root access, unmanaged by default. Pricing returned by the API is always in USD and matches the client area, with no hidden setup fees.
START HERE
Authentication
Create an API key in your client area under Account → API Keys, then pass it as a bearer token in the Authorization header. Keys are scoped to your account and can be revoked at any time.
curl https://api.rezahosting.space/v1/servers \ -H "Authorization: Bearer rza_live_9f2c8a..." \ -H "Content-Type: application/json"
Requests without a valid key return 401 Unauthorized. A key that is valid but lacks permission for the resource returns 403 Forbidden.
CORE RESOURCE
Servers
A server is a single NVMe KVM VPS instance. Create, inspect, reboot, resize, and destroy servers through these endpoints. Provisioning is automated, so a create call returns as soon as the build is queued and the instance is usually reachable within 60 seconds.
POST/serversCreate and deploy a new VPS›
Deploys a new instance from a plan and region. The response includes the server ID and a status of new while it builds.
Request body
{
"plan": "pro", // starter | pro | scale
"region": "ams", // ams | fra | lhr | par | nyc ...
"os": "ubuntu-24.04", // one-click image or custom ISO
"ssh_keys": ["fp_a1b2c3"] // optional, injected at boot
}
Response
{
"id": "vps-ams-042",
"status": "new",
"plan": "pro",
"region": "ams",
"vcpu": 2,
"ram_gb": 4,
"disk_gb": 80,
"price_usd_month": 12.00,
"created_at": "2026-11-18T03:12:40Z"
}
GET/serversList all servers on the account›
Returns a paginated array of servers. Use the page and per_page query parameters; per_page accepts up to 100.
{
"total": 3,
"servers": [
{ "id": "vps-ams-042", "status": "active", "region": "ams" },
{ "id": "vps-fra-017", "status": "active", "region": "fra" }
]
}
GET/servers/{id}Retrieve one server›
Returns the full object for a single instance, including IP addresses, current plan, and the next billing date.
PUT/servers/{id}Resize CPU, RAM, or disk›
Change the plan of a running server. The new size takes effect at the next scheduled reboot, and billing is prorated to your current cycle. Downgrades are applied the same way.
{ "plan": "scale" }
POST/servers/{id}/rebootGraceful or forced reboot›
Sends an ACPI shutdown by default. Pass {"type":"hard"} for an immediate power cycle if the guest is unresponsive.
DELETE/servers/{id}Destroy a server›
Destroys the instance and releases its IP. Snapshots are retained for 7 days so you can recover a mistake, then all data is permanently deleted from our storage and off-site backups. This action cannot be undone after that window.
BACKUPS
Snapshots
Every volume is snapshotted daily and stored outside its node, so a failed disk never takes your only copy with it. You can also trigger snapshots on demand and restore them with a single call. Snapshots are standard on Pro and Scale plans.
POST/servers/{id}/snapshotsCreate an on-demand snapshot›
{
"id": "snap-8821",
"server": "vps-ams-042",
"state": "in_progress",
"location": "off-node"
}
POST/snapshots/{id}/restoreRestore a server from a snapshot›
Restores the volume to the state captured in the snapshot. The server is briefly offline during the restore, and the current disk is itself snapshotted first so the operation is reversible.
CATALOG
Regions & Plans
Read the live catalog before you deploy. Regions returns the nine datacenter locations we operate; plans returns each size with its dedicated resources and monthly price in USD.
GET/regionsList available locations›
{
"regions": [
{ "code": "ams", "city": "Amsterdam", "available": true },
{ "code": "fra", "city": "Frankfurt", "available": true },
{ "code": "nyc", "city": "New York", "available": true }
]
}
GET/plansList plans and USD pricing›
Prices are shown in USD and are exclusive of any applicable taxes, which are calculated at checkout by the payment provider. There are no setup fees on any plan.
{
"plans": [
{ "slug": "starter", "vcpu": 1, "ram_gb": 2, "disk_gb": 40, "price_usd": 5.00 },
{ "slug": "pro", "vcpu": 2, "ram_gb": 4, "disk_gb": 80, "price_usd": 12.00 },
{ "slug": "scale", "vcpu": 4, "ram_gb": 8, "disk_gb": 160, "price_usd": 26.00 }
]
}
OBSERVABILITY
Usage Metrics
Pull CPU, memory, disk, and bandwidth counters for any server to drive autoscaling or your own dashboards. Metrics are sampled every minute and retained for 30 days.
GET/servers/{id}/metricsTime-series usage for a server›
{
"server": "vps-ams-042",
"window": "1h",
"cpu_avg": 0.34,
"mem_avg": 0.58,
"net_in_mbps": 460,
"transfer_used_gb": 812,
"transfer_quota_gb": 6144
}
We notify you before you reach the transfer quota, and overage is only charged if you explicitly enable it. The API never bills silently.
FAIR USE
Rate Limits
Each API key may make up to 120 requests per minute. Every response carries headers so you can pace your client and back off before you are throttled.
| Header | Meaning |
|---|---|
| X-RateLimit-Limit | Requests allowed in the current window (120). |
| X-RateLimit-Remaining | Requests left before the window resets. |
| X-RateLimit-Reset | Unix timestamp when the window resets. |
| Retry-After | Seconds to wait, sent only with a 429 response. |
Exceeding the limit returns 429 Too Many Requests. Use exponential backoff based on Retry-After rather than retrying immediately.
REFERENCE
Errors
The API uses conventional HTTP status codes. Codes in the 2xx range mean success, 4xx indicate a problem with the request, and 5xx signal a fault on our side. Every error body includes a machine-readable code and a human-readable message.
| Status | Meaning |
|---|---|
| 200 OK | The request succeeded and the body holds the result. |
| 201 Created | A resource such as a server or snapshot was created. |
| 202 Accepted | The action is queued; poll the resource for completion. |
| 400 Bad Request | The JSON body or a parameter is malformed. |
| 401 Unauthorized | No valid API key was supplied. |
| 403 Forbidden | The key is valid but lacks permission for the resource. |
| 404 Not Found | The resource does not exist on your account. |
| 429 Too Many Requests | Rate limit exceeded; back off per Retry-After. |
| 500 Server Error | Something failed on our side. Safe to retry. |
{
"error": {
"code": "region_unavailable",
"message": "The selected region is at capacity. Choose another region."
}
}
EVENTS
Webhooks
Register a URL to receive events instead of polling. We deliver a JSON payload by HTTPS POST for lifecycle changes such as server.active, snapshot.completed, and invoice.paid. Each delivery is signed with an HMAC in the X-Reza-Signature header so you can verify it came from us.
{
"event": "server.active",
"created_at": "2026-11-18T03:13:27Z",
"data": { "id": "vps-ams-042", "status": "active" }
}
invoice.paid are notifications only. The API never accepts, processes, or stores card numbers. All payment is handled through PayPal and provider-hosted card checkout, so no payment credentials ever pass through your integration.Refunds requested within the 14-day money-back window on a first order are returned to the original payment method within 5 business days, in line with our Terms of Service and Refund Policy. One-time setup fees, add-ons, and renewals are non-refundable.
Need Help Wiring It Up?
Send us the endpoint and the response you are getting and an engineer will help you debug it, usually within 60 business minutes. API access is included on every plan at no extra cost.
Contact Support