VPSie home

Developer zone

The API, Terraform provider, command line and Go SDK, with a first call you can run in a minute.

One API under every tool

The console, the command line, Terraform and the Go SDK call the same API.

ConsoleCLIvpsiecliTerraformvpsie/vpsieGo SDKgovpsieVPSie APIJSON over HTTPSYour serversstorage, network
export VPSIE_TOKEN=<your access token>
curl -H "Vpsie-Auth: $VPSIE_TOKEN" \
     https://api.vpsie.com/apps/v2/datacenter

Create an API client or a personal access token in the console, send it in the Vpsie-Auth header and call the API. On a private install, use your own API host; the path after the host is the same.

API reference Try it live Documentation

Tools

API

REST API

JSON in and out for servers, storage, networking, DNS, Kubernetes and billing.

  • Published reference with live calls
IaC

Terraform and OpenTofu

The vpsie/vpsie provider manages servers, networks, storage and Kubernetes as code.

  • Import existing resources
  • Registry: vpsie/vpsie
CLI

Command line

vpsiecli for scripts and CI: servers, snapshots, firewalls, projects and billing from your shell. Destructive commands ask first.

  • One binary for Linux, macOS and Windows
SDK

Go SDK

govpsie is the typed Go client for the API. MPL-2.0 license, source on GitHub.

  • Documented on pkg.go.dev
Build

cloud-init

Add a first-boot script to Linux images, or to a one-click app, to configure a server as it starts.

  • Works with Terraform
Mobile

Mobile app

Operate servers, tickets and billing from your phone with the same account.

  • See the mobile app page

First call in five steps

Create a client

In the console, open API access and create a client or a personal access token.

Get a token

Exchange the client ID and secret for a short-lived token, or use the personal token.

Send the header

Put the token in the vpsie-auth header on every request.

Call /datacenter

A successful reply proves the name, route and token work.

Read the reference

Every endpoint, field and example is in the API reference.

Good habits

Small rules that keep automation safe.

Least privilege

Give each token only the roles the job needs, and rotate it on a schedule.

Keep tokens out of code

Read them from your secret store or CI variables, never from the repository.

Plan for errors

Check status codes, retry only safe calls and log the request that failed.

Authenticate the right way

The same token rules apply in curl, the command line, the SDK and Terraform.

Personal access token

Create one in the console, set an expiry date and send it in the Vpsie-Auth header on every request. You can disable or delete one token without touching the others.

API client for automation

An API client has a client ID and a secret. The secret is shown once when it is issued or rotated, so store it in your secret manager at that moment.

Scope it tightly

Bind a token to an ACL role so it reaches only what the job needs. Restrict it to an allow-list of addresses, or block ranges with a deny-list.

Stored as digests

Tokens and client secrets are kept as SHA-256 digests, and client sign-ins appear in the audit log in the console and the API.

Quickstart for each tool

Each example is a static sample. Exact fields and flags are in the API reference and the guides.

Terraform or OpenTofu

Terraform 1.0 or later, or OpenTofu 1.6 or later. Export the token as VPSIE_ACCESS_TOKEN so it never lands in configuration or state files.

terraform {
  required_providers {
    vpsie = {
      source = "vpsie/vpsie"
    }
  }
}

provider "vpsie" {}

resource "vpsie_tag" "prod" {
  name  = "production"
  color = "#ff0000"
}

Then run terraform init, terraform plan and terraform apply. Most resources support terraform import, so servers you already run come under code without a rebuild. The provider is open source and installs from source today; publication to the Terraform and OpenTofu registries is in progress.

Command line

The tool reads the token from ~/.vpsie/vpsiecli.yaml and stops with an error if the file is missing. It sends the token in the same Vpsie-Auth header.

vpsiecli datacenters list
vpsiecli server create --resourceIdentifier <plan-id> \
    --osIdentifier <image-id> --dcIdentifier <datacenter-id> \
    --hostname web-01 --sshKeyIdentifier <ssh-key-id>
vpsiecli server status <vmIdentifier>
vpsiecli snapshot create --name before-upgrade --vmIdentifier <vmIdentifier>

Go SDK

govpsie is the official Go client and the engine behind the Terraform provider. You create a client with your token, call the service clients (31 of them, including load balancers, registries, databases and Kubernetes) and receive API failures as Go errors. It is open source under the MPL-2.0 license.

What the API returns

One response shape, so client code stays short.

Response shape

JSON over HTTPS. Replies carry an error flag, the data and a total, for example { "error": false, "data": [ ... ], "total": 12 }.

Paging

Lists accept offset and limit. Ask for the next page until you have read the total.

Queued work

Long operations such as creating a server are queued. You poll the resource until it reports ready instead of holding a connection open.

Reference

More than 800 documented endpoints in an OpenAPI 3.0 reference with a live try-it panel. You can download the document to generate your own client.

Developer questions

Where is the API reference?

At apidocs.vpsie.com. It is an OpenAPI 3.0 reference with a try-it panel, and the document can be downloaded.

Does it work on a private or air-gapped install?

Yes. Point the tools at your own API host. The path after the host is the same, and nothing here needs an outside service.

Can the console and Terraform manage the same server?

Yes. A server made in Terraform shows up in the console, and the reverse, because both use the same API.

Which features can my token reach?

Your license and the modules on it decide. A call to a service your license does not include is refused by the platform with a message.

Related pages

Each page has the detail behind the line above.

Documentation Mobile apps Platform FAQ