Manage your infrastructure as code
Automate Tres Cloud with the REST API, the official Terraform provider or
MCP. Servers, networking, IPs, backups — all programmatic,
with a single tres_ key.
Provider live · registry.terraform.io/providers/tresteknoloji/tres
terraform {
required_providers {
tres = { source = "tresteknoloji/tres" }
}
}
resource "tres_server" "web" {
name = "web-01"
location = "tr-ist-1"
image = "ubuntu-24.04"
cpu = 2
ram = 4
ipv4 = true
}
Three ways, one infrastructure
The same account, the same tres_ key. Pick the one that fits your workflow.
REST API
A predictable REST API with Bearer tokens. Create a server, assign an IP, take a snapshot, write a firewall rule — all from one consistent endpoint.
JSON · Bearer tres_… · rate-limit
API reference (OpenAPI)Terraform
The official tresteknoloji/tres provider. Version your infrastructure in HCL, review it as a team, and provision it with terraform apply.
tres_server · tres_firewall · tres_network
Terraform RegistryMCP
Add Tres to your AI as a connector; spin up servers, take backups and build networks in natural language.
Claude · ChatGPT · Gemini · Copilot
Explore MCPYour first call in minutes
In the panel, from Account & access → API
generate a tres_ key; the rest is below.
# make your key an environment variable
export TRES_TOKEN="tres_•••••••••"
# list your servers
curl https://api.tresteknoloji.com/v1/servers \
-H "Authorization: Bearer $TRES_TOKEN"
# create a new server
curl -X POST https://api.tresteknoloji.com/v1/servers \
-H "Authorization: Bearer $TRES_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"web-01","location":"tr-ist-1","image":"ubuntu-24.04","cpu":2,"ram":4}'
terraform {
required_providers {
tres = { source = "tresteknoloji/tres" }
}
}
# token is read from the TRES_TOKEN environment variable
provider "tres" {}
resource "tres_server" "web" {
name = "web-01"
location = "tr-ist-1"
image = "ubuntu-24.04"
cpu = 2
ram = 4
}
For all endpoints, fields and schemas, see the live API reference.
What you can manage as code
Everything you do in the panel is available in the API and Terraform too.
tres_server
tres_kubernetes
tres_ssh_key
tres_floating_ip
tres_firewall
tres_snapshot
tres_network
tres_bucket
tres_database
tres_volume
Generate a key, provision your first server as code
Open your account, grab your tres_ key from the panel and start with the API, Terraform or MCP.