Welcome to the Baraclouds API. This documentation covers all available endpoints and how to use them.
The Baraclouds API is a RESTful API that allows you to programmatically manage your cloud resources. All requests should be made over HTTPS.
All API requests require authentication using an API key. Include your API key in the X-API-Key header.
curl -X GET https://api.baraclouds.com/v1/status \ -H "X-API-Key: YOUR_API_KEY"
https://api.baraclouds.com/v1
/vms
[
{
"id": "vm-123456",
"name": "my-server",
"instance_type": "t2.micro",
"region": "us-east-1",
"status": "running",
"ip_address": "10.0.1.42",
"created_at": "2026-03-10T10:30:00Z"
}
]
/vms
{
"name": "my-server",
"instance_type": "t2.micro",
"region": "us-east-1",
"tags": "web,production"
}
{
"message": "VM created successfully",
"vm_id": "vm-123456",
"ip_address": "10.0.1.42"
}
/vms/{vm_id}/start
{
"message": "VM starting",
"vm_id": "vm-123456",
"status": "starting"
}
/vms/{vm_id}/stop
{
"message": "VM stopped",
"vm_id": "vm-123456"
}
/vms/{vm_id}
{
"message": "VM deleted successfully"
}
/billing/credits
{
"amount": 50,
"payment_method": "credit_card"
}
{
"message": "Credits added successfully",
"new_balance": 150.00
}
/billing/history
[
{
"id": 1,
"amount": 50.00,
"description": "Credit purchase",
"status": "completed",
"timestamp": "2026-03-10T10:30:00Z"
}
]
| Type | vCPU | RAM | Storage | Price/Hour |
|---|---|---|---|---|
| t2.micro | 1 | 1 GB | 30 GB | $0.0116 |
| t2.small | 1 | 2 GB | 50 GB | $0.023 |
| t2.medium | 2 | 4 GB | 100 GB | $0.0464 |
| c5.large | 2 | 4 GB | 200 GB | $0.085 |
| c5.xlarge | 4 | 8 GB | 400 GB | $0.17 |
| r5.large | 2 | 16 GB | 500 GB | $0.126 |
| p3.2xlarge | 8 | 64 GB | 1 TB | $3.06 |