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
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/servers | List all servers in your account |
| POST | /v1/servers | Deploy a new bare metal server |
| GET | /v1/servers/:id | Get details for a specific server |
| DELETE | /v1/servers/:id | Delete a server |
| POST | /v1/servers/:id/reboot | Reboot a server |
| GET | /v1/plans | List available server plans |
| GET | /v1/locations | List available datacenter locations |
| GET | /v1/images | List 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 RegistryReady to Get Started?
Sign up for API access and start automating your infrastructure today