API Docs

TavoroHost API Documentation - REST API for NVMe VPS Management
Developer Platform

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.

Version v1 · stable Protocol HTTPS only Format JSON Auth Bearer token Base URL api.tavorohost.quest

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.

Before you start

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.

httpbase url
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.

EnvironmentBase URLPurpose
Productionapi.tavorohost.quest/v1Live resources billed to your account
Sandboxsandbox-api.tavorohost.quest/v1Non-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.

bashauthenticate
curl https://api.tavorohost.quest/v1/servers \
  -H "Authorization: Bearer TH_live_9f2c8a41d6e7b035" \
  -H "Content-Type: application/json"
Keep tokens secure

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

PrefixTypeDescription
TH_live_ProductionOperates on real, billable resources
TH_test_SandboxRead/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.

HeaderMeaning
X-RateLimit-LimitMaximum requests allowed in the window
X-RateLimit-RemainingRequests left in the current window
X-RateLimit-ResetUnix timestamp when the window resets
Retry-AfterSeconds 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.

Tip

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.

jsonpagination envelope
{
  "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

GET /v1/servers
Returns a paginated list of every server on the account, newest first.
bashrequest
curl "https://api.tavorohost.quest/v1/servers?page=1&per_page=25" \
  -H "Authorization: Bearer TH_live_9f2c8a41d6e7b035"
json200 OK · response
{
  "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

POST /v1/servers
Provisions a new NVMe VPS. The instance is normally deployed within 60 seconds; the response returns immediately with status queued.
ParameterTypeRequiredDescription
regionstringrequiredRegion ID, e.g. sgp-01. See Regions.
planstringrequiredPlan slug, e.g. vc2-4c-8gb. See Plans.
os_idintegerrequiredOperating system image ID.
labelstringoptionalFriendly name shown in the client area.
ssh_key_idsarrayoptionalSSH keys injected on first boot.
snapshot_idstringoptionalRestore a new server from a snapshot.
backupsbooleanoptionalEnable daily automated snapshots. Default false.
user_datastringoptionalCloud-init script run on first boot.
bashrequest
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]
  }'
json202 Accepted · response
{
  "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.

GET /v1/servers/{server_id}
Retrieve full details for one server, including current usage counters.
POST /v1/servers/{server_id}/halt
Gracefully powers off the instance through an ACPI shutdown signal.
POST /v1/servers/{server_id}/reboot
Reboots the guest operating system.
PUT /v1/servers/{server_id}/modify
Resizes the plan (CPU, RAM, disk). The server must be powered off; data is preserved.
POST /v1/servers/{server_id}/rebuild
Reinstalls the operating system or restores a snapshot. This erases the current disk.
DELETE /v1/servers/{server_id}
Destroys the server and releases its resources. This action is irreversible.

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.

GET /v1/regions
Lists all regions and whether each currently accepts new deployments.
json200 OK · response
{
  "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.

GET /v1/plans?region={region_id}
Returns plans available in a region with pricing in USD.
json200 OK · response
{
  "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.

GET /v1/snapshots
Lists all snapshots on the account with size and status.
POST /v1/servers/{server_id}/snapshot
Creates a snapshot from a running or powered-off server. The server is briefly I/O quiesced.
bashrequest
curl -X POST "https://api.tavorohost.quest/v1/servers/srv_7fa21c9e/snapshot" \
  -H "Authorization: Bearer TH_live_9f2c8a41d6e7b035" \
  -d '{ "description": "pre-release backup" }'
DELETE /v1/snapshots/{snapshot_id}
Permanently removes a snapshot and stops its storage charge.

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.

GET /v1/ssh-keys
Lists stored SSH keys with fingerprint and creation date.
POST /v1/ssh-keys
Adds a new public key to the account.
bashrequest
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.

GET /v1/servers/{server_id}/usage?period=30d
Returns bandwidth, CPU, RAM and disk usage for the requested period.
json200 OK · response
{
  "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.

CodeStatusMeaning
200OKRequest succeeded and the body contains the result.
201CreatedA new resource was created successfully.
202AcceptedThe action was queued and runs asynchronously.
204No ContentSuccess with an empty response body, e.g. after delete.
400Bad RequestThe request body or parameters are malformed.
401UnauthorizedMissing or invalid API token.
403ForbiddenThe token is valid but lacks permission for the action.
404Not FoundThe resource does not exist on the account.
409ConflictThe action conflicts with the current server state.
422UnprocessableValidation failed on one or more fields.
429Too Many RequestsRate limit exceeded; slow down and retry.
500Server ErrorAn 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.

json422 Unprocessable Entity · error
{
  "error": {
    "code": "validation_failed",
    "message": "The selected plan is not available in region sgp-01.",
    "field": "plan",
    "request_id": "req_01HTZ8K3P9"
  }
}
Error codeHTTPTypical cause
invalid_token401Token was revoked or mistyped.
insufficient_scope403Read-only token used for a write action.
validation_failed422A required field is missing or invalid.
quota_exceeded403Account reached its server or snapshot limit.
server_busy409Another action is still running on the server.
rate_limited429Too 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.
Acceptable use

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
Response within one business day · Sandbox tokens available on request