Regions API
Available service regions
Base URL: https://api.wayscloud.services
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /v1/regions | List regions |
GET | /v1/regions/{region_code} | Get region |
GET | /v1/regions/{region_code}/pricing | Get pricing |
GET /v1/regions
List regions
Get available regions with service availability (storage, database, VPS, LLM).
Response:
| Field | Type | Description |
|---|---|---|
regions | array | |
total | integer |
Example:
bash
curl https://api.wayscloud.services/v1/regions \
-H "X-API-Key: wayscloud_pat_abc12_YOUR_SECRET"Response:
json
{
"regions": [
{
"code": "oslo",
"name": "Oslo, Norway",
"country": "NO",
"status": "active"
},
{
"code": "stockholm",
"name": "Stockholm, Sweden",
"country": "SE",
"status": "active"
}
],
"total": 2
}GET /v1/regions/
Get region
Get region details: available services, location, and pricing.
Response:
| Field | Type | Description |
|---|---|---|
code | string | |
name | string | |
country | string | |
available_services | array | |
status | string | Values: active, maintenance, deprecated |
Example:
bash
curl https://api.wayscloud.services/v1/regions/{region_code} \
-H "X-API-Key: wayscloud_pat_abc12_YOUR_SECRET"Response:
json
{
"code": "oslo",
"name": "Oslo, Norway",
"country": "NO",
"available_services": [
"database",
"storage",
"vps",
"dns",
"llm"
],
"status": "active"
}GET /v1/regions/{region_code}/pricing
Get pricing
Get service prices for a specific region.
Response:
| Field | Type | Description |
|---|---|---|
region | string | |
currency | string | |
services | object |
Example:
bash
curl https://api.wayscloud.services/v1/regions/{region_code}/pricing \
-H "X-API-Key: wayscloud_pat_abc12_YOUR_SECRET"Response:
json
{
"region": "oslo",
"currency": "NOK",
"services": {
"vps": {
"vps-2gb-1cpu": 99,
"vps-4gb-2cpu": 199,
"vps-8gb-4cpu": 399
},
"storage": {
"per_gb_month": 0.5
},
"database": {
"postgresql_per_gb": 2.5,
"mariadb_per_gb": 2.0
}
}
}