API Reference

Build powerful applications with Bitcoin OS APIs

Base URL
https://api.bitcoin-os.com/v1
Authentication
Bearer Token
Rate Limit
1000 req/min

Compute

Contracts

Wallet

Storage

POST

/api/v1/compute/create

Create a new compute instance

Parameters

NameTypeRequiredDescription
cpu_coresintegerYesNumber of CPU cores (1-128)
memory_gbintegerYesMemory in GB (1-512)
storage_gbintegerNoStorage in GB (10-10000)
regionstringNoDeployment region

Example Request

curl -X POST https://api.bitcoin-os.com/v1/compute/create \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cpu_cores": 4,
    "memory_gb": 16,
    "storage_gb": 100,
    "region": "us-east-1"
  }'

Response

{
  "id": "cmp_1234567890",
  "status": "provisioning",
  "cpu_cores": 4,
  "memory_gb": 16,
  "storage_gb": 100,
  "region": "us-east-1",
  "created_at": "2024-01-15T10:00:00Z",
  "ip_address": "pending",
  "cost_per_hour": 0.45
}
12:00