TavoroHost API Documentation
A secure, predictable REST API for provisioning and managing NVMe VPS instances, snapshots, regions, SSH keys and bandwidth — built for automation, CI pipelines and custom control panels.
01Introduction
The TavoroHost API is a RESTful interface that exposes every core operation of your cloud account. Each request is served over HTTPS, returns JSON, and uses standard HTTP verbs and status codes, so you can integrate with any language or HTTP client that speaks REST.
With the API you can create and destroy NVMe VPS instances, attach and restore snapshots, manage SSH keys, query region availability, and read real-time bandwidth and resource usage. It is the same interface that powers the TavoroHost client area, which means anything you can do in the dashboard you can automate.
Generate an API token from the Account → API section of your client area. Tokens carry the same permissions as your account, so keep them secret and never embed them in public repositories or client-side code.
What you can build
- Automated provisioning — spin up a server the moment a customer signs up on your platform.
- CI/CD and testing — create disposable instances per pipeline and tear them down on completion.
- Custom dashboards — surface usage, billing and power state inside your own tooling.
- Backup orchestration — schedule snapshot creation and retention with cron or a workflow engine.
02Base URL & Versioning
All API endpoints are relative to a single versioned base URL. The version is part of the path so that breaking changes never affect existing integrations.
https://api.tavorohost.quest/v1
Requests made over plain HTTP are rejected. The current stable version is v1. When a new major version is released, the previous one continues to receive security fixes for a minimum of twelve months, and every change is announced in the changelog.
| Environment | Base URL | Purpose |
|---|---|---|
Production | api.tavorohost.quest/v1 | Live resources billed to your account |
Sandbox | sandbox-api.tavorohost.quest/v1 | Non-billable testing with mock servers |
03Authentication
The API uses Bearer token authentication. Include your secret token in the Authorization header of every request. Tokens are scoped to your account and can be revoked at any time from the client area.
curl https://api.tavorohost.quest/v1/servers \
-H "Authorization: Bearer TH_live_9f2c8a41d6e7b035" \
-H "Content-Type: application/json"
Send the token only over HTTPS, store it in a secrets manager or environment variable, and rotate it periodically. A leaked token allows full control of your infrastructure. Requests without a valid token return 401 Unauthorized.
Token types
| Prefix | Type | Description |
|---|---|---|
TH_live_ | Production | Operates on real, billable resources |
TH_test_ | Sandbox | Read/write against mock data, never billed |
04Rate Limits
Rate limits protect the platform from abuse and keep response times consistent for every customer. Limits are applied per token using a sliding window. Every response includes headers that describe your current allowance.
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Maximum requests allowed in the window |
X-RateLimit-Remaining | Requests left in the current window |
X-RateLimit-Reset | Unix timestamp when the window resets |
Retry-After | Seconds to wait, sent only with 429 |
The default allowance is 600 requests per minute per token. Exceeding it returns 429 Too Many Requests. Back off using the Retry-After value and retry with exponential backoff.
Cache read-only data such as regions and plans — they change rarely. Poll server status at a sensible interval instead of in a tight loop.
05Pagination
List endpoints return a paginated envelope. Use the page and per_page query parameters; per_page accepts values from 1 to 100 and defaults to 25.
{
"meta": {
"current_page": 1,
"per_page": 25,
"total": 48,
"total_pages": 2
},
"data": [ /* array of resources */ ]
}
06Servers
The Servers resource is the heart of the API. A server represents a single NVMe VPS instance with its vCPU, memory, storage, IP addresses and power state.
List servers
curl "https://api.tavorohost.quest/v1/servers?page=1&per_page=25" \
-H "Authorization: Bearer TH_live_9f2c8a41d6e7b035"
{
"meta": { "current_page": 1, "per_page": 25, "total": 3, "total_pages": 1 },
"data": [
{
"id": "srv_7fa21c9e",
"label": "web-prod-01",
"status": "active",
"power": "on",
"plan": "vc2-4c-8gb",
"region": "sgp-01",
"os": "Ubuntu 24.04 LTS",
"main_ip": "198.51.100.24",
"vcpu": 4,
"ram_mb": 8192,
"disk_gb": 160,
"created_at": "2026-11-02T08:14:00Z"
}
]
}
Create server
| Parameter | Type | Required | Description |
|---|---|---|---|
region | string | required | Region ID, e.g. sgp-01. See Regions. |
plan | string | required | Plan slug, e.g. vc2-4c-8gb. See Plans. |
os_id | integer | required | Operating system image ID. |
label | string | optional | Friendly name shown in the client area. |
ssh_key_ids | array | optional | SSH keys injected on first boot. |
snapshot_id | string | optional | Restore a new server from a snapshot. |
backups | boolean | optional | Enable daily automated snapshots. Default false. |
user_data | string | optional | Cloud-init script run on first boot. |
curl -X POST "https://api.tavorohost.quest/v1/servers" \
-H "Authorization: Bearer TH_live_9f2c8a41d6e7b035" \
-H "Content-Type: application/json" \
-d '{
"region": "sgp-01",
"plan": "vc2-4c-8gb",
"os_id": 387,
"label": "web-prod-01",
"backups": true,
"ssh_key_ids": [1042]
}'
{
"server": {
"id": "srv_7fa21c9e",
"status": "queued",
"power": "off",
"label": "web-prod-01",
"region": "sgp-01",
"plan": "vc2-4c-8gb",
"main_ip": null,
"created_at": "2026-11-13T02:20:11Z"
}
}
Server actions
Power and lifecycle operations are triggered against a single server resource. Each action returns 202 Accepted and runs asynchronously.
07Regions
Regions describe the data centre locations where servers can be deployed, together with their availability. Use this endpoint to build a location picker in your own interface.
{
"data": [
{ "id": "sgp-01", "city": "Singapore", "country": "SG", "available": true },
{ "id": "fra-01", "city": "Frankfurt", "country": "DE", "available": true },
{ "id": "nyc-01", "city": "New York", "country": "US", "available": true }
]
}
08Plans
Plans define the fixed combinations of vCPU, memory, NVMe storage and monthly bandwidth available in each region, along with the recurring price.
{
"data": [
{
"slug": "vc2-2c-4gb",
"vcpu": 2,
"ram_mb": 4096,
"disk_gb": 80,
"transfer_tb": 4,
"monthly_price": 9.90,
"currency": "USD"
}
]
}
09Snapshots
Snapshots capture the full disk state of a server so it can be restored later or used as the image for a new instance. They are stored independently of the source server.
curl -X POST "https://api.tavorohost.quest/v1/servers/srv_7fa21c9e/snapshot" \
-H "Authorization: Bearer TH_live_9f2c8a41d6e7b035" \
-d '{ "description": "pre-release backup" }'
10SSH Keys
Register public SSH keys once and inject them into any new server at creation time, so you never deploy a machine that relies on password authentication.
curl -X POST "https://api.tavorohost.quest/v1/ssh-keys" \
-H "Authorization: Bearer TH_live_9f2c8a41d6e7b035" \
-H "Content-Type: application/json" \
-d '{
"name": "ci-deploy",
"ssh_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA..."
}'
11Bandwidth & Usage
Read live resource and transfer counters for a server. Metrics are sampled at one-minute resolution and are ideal for graphing usage or triggering autoscaling logic.
{
"bandwidth": { "used_tb": 1.42, "quota_tb": 4, "period": "30d" },
"cpu": { "avg_percent": 18.6, "peak_percent": 74.2 },
"memory": { "avg_mb": 2140, "peak_mb": 3980 },
"disk": { "used_gb": 37.5, "total_gb": 160 }
}
12HTTP Status Codes
The API returns conventional HTTP status codes. A 2xx code means the request succeeded, 4xx indicates a problem with the request, and 5xx signals an issue on the platform side.
| Code | Status | Meaning |
|---|---|---|
200 | OK | Request succeeded and the body contains the result. |
201 | Created | A new resource was created successfully. |
202 | Accepted | The action was queued and runs asynchronously. |
204 | No Content | Success with an empty response body, e.g. after delete. |
400 | Bad Request | The request body or parameters are malformed. |
401 | Unauthorized | Missing or invalid API token. |
403 | Forbidden | The token is valid but lacks permission for the action. |
404 | Not Found | The resource does not exist on the account. |
409 | Conflict | The action conflicts with the current server state. |
422 | Unprocessable | Validation failed on one or more fields. |
429 | Too Many Requests | Rate limit exceeded; slow down and retry. |
500 | Server Error | An unexpected error occurred on the platform. |
13Error Handling
Every failed request returns a consistent JSON error object with a machine-readable code, a human-readable message, and a request_id that support can use to trace the call.
{
"error": {
"code": "validation_failed",
"message": "The selected plan is not available in region sgp-01.",
"field": "plan",
"request_id": "req_01HTZ8K3P9"
}
}
| Error code | HTTP | Typical cause |
|---|---|---|
invalid_token | 401 | Token was revoked or mistyped. |
insufficient_scope | 403 | Read-only token used for a write action. |
validation_failed | 422 | A required field is missing or invalid. |
quota_exceeded | 403 | Account reached its server or snapshot limit. |
server_busy | 409 | Another action is still running on the server. |
rate_limited | 429 | Too many requests in the current window. |
14Best Practices
- Use idempotency keys. Send an Idempotency-Key header on POST requests so a retried call never creates a duplicate server.
- Poll status, do not assume. After a create or action, poll GET /servers/{id} until status becomes active.
- Retry with backoff. On 429 and 5xx, retry with exponential backoff and jitter rather than a fixed delay.
- Store secrets safely. Keep tokens in environment variables or a vault, and scope sandbox tokens for testing.
- Watch the changelog. Subscribe to release notes so you learn about deprecations well before they take effect.
API access is subject to the TavoroHost Terms of Service and Acceptable Use Policy. Automated provisioning must respect the published rate limits, and resources may not be used for activity prohibited under those policies.
Need a hand integrating?
Our engineers help you wire the API into your platform, review automation scripts and set up higher rate limits for production workloads.
Talk to our team