Teraswitch

Developer API

Automate your infrastructure with our RESTful API and Terraform provider

Quick Start

# List available servers
curl -X GET "https://api.teraswitch.com/v1/servers" \
  -H "Authorization: Bearer YOUR_API_KEY"

# Deploy a new server
curl -X POST "https://api.teraswitch.com/v1/servers" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "plan": "xeon-gold-6342",
    "location": "lax1",
    "hostname": "web-server-01",
    "os": "ubuntu-22.04"
  }'

# Get server details
curl -X GET "https://api.teraswitch.com/v1/servers/SERVER_ID" \
  -H "Authorization: Bearer YOUR_API_KEY"

API Endpoints

MethodEndpointDescription
GET/v1/serversList all servers in your account
POST/v1/serversDeploy a new bare metal server
GET/v1/servers/:idGet details for a specific server
DELETE/v1/servers/:idDelete a server
POST/v1/servers/:id/rebootReboot a server
GET/v1/plansList available server plans
GET/v1/locationsList available datacenter locations
GET/v1/imagesList available operating system images

API Features

API Keys

Generate and manage API keys for secure programmatic access

Comprehensive Docs

Detailed documentation with examples in multiple languages

Webhooks

Real-time notifications for server events and status changes

Rate Limiting

Fair usage policies with generous rate limits

SDKs

Official libraries for Python, Go, Node.js, and more

REST API

Standard RESTful API with JSON responses

Integration & Automation

Terraform Provider

Manage infrastructure as code with our official Terraform provider

View on Registry

CLI Tool

Command-line interface for managing servers from your terminal

View on GitHub

SDKs & Libraries

Official libraries for Python, Go, Node.js, Ruby, and more

Browse SDKs

Ready to Get Started?

Sign up for API access and start automating your infrastructure today