{
    "openapi": "3.1.0",
    "info": {
        "title": "DediJet public API",
        "version": "1.1",
        "summary": "Live dedicated server plans, prices, stock, locations, OS images and status.",
        "description": "DediJet rents bare-metal dedicated servers in 8 locations across 6 countries (North America, Europe and Asia-Pacific), paid in cryptocurrency (Bitcoin, Monero, Ethereum, USDT and Solana) with email-only accounts: no KYC and no ID. In-stock servers are online in under 2 minutes after payment confirmation, from $59 per month with no setup fee. The public endpoints are read-only, need no API key and allow cross-origin requests. Responses are cached for 60 seconds (30 for status). Account endpoints (servers, balance, top-ups, SSH keys) use personal API tokens and are documented at https://dedijet.com/docs/api.",
        "termsOfService": "https://dedijet.com/legal/terms",
        "contact": {
            "name": "DediJet support",
            "url": "https://dedijet.com/support"
        }
    },
    "externalDocs": {
        "description": "API documentation",
        "url": "https://dedijet.com/docs/api"
    },
    "servers": [
        {
            "url": "https://dedijet.com/api/v1"
        }
    ],
    "tags": [
        {
            "name": "catalog",
            "description": "Plans, locations and operating systems"
        },
        {
            "name": "status",
            "description": "Service status"
        }
    ],
    "paths": {
        "/plans": {
            "get": {
                "tags": [
                    "catalog"
                ],
                "security": [],
                "operationId": "listPlans",
                "summary": "List dedicated server plans",
                "description": "Every configuration with specifications, monthly price in USD and EUR (excluding VAT), live stock and the locations where it is offered.",
                "parameters": [
                    {
                        "name": "family",
                        "in": "query",
                        "required": false,
                        "description": "Only plans of this family.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "entry",
                                "performance",
                                "enterprise",
                                "storage",
                                "gpu"
                            ]
                        }
                    },
                    {
                        "name": "location",
                        "in": "query",
                        "required": false,
                        "description": "Only plans offered in this location.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "nyc",
                                "mia",
                                "lax",
                                "lon",
                                "ams",
                                "fra",
                                "sin",
                                "tyo"
                            ]
                        }
                    },
                    {
                        "name": "in_stock",
                        "in": "query",
                        "required": false,
                        "description": "Set to 1 or true for in-stock plans only.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "1",
                                "true"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Plans",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PlanList"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/plans/{id}": {
            "get": {
                "tags": [
                    "catalog"
                ],
                "security": [],
                "operationId": "getPlan",
                "summary": "Get one plan",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "xeon-e-2236",
                                "ryzen-5-3600",
                                "xeon-e-2388g",
                                "ryzen-5-7600",
                                "ryzen-7-9700x",
                                "ryzen-9-9950x",
                                "ryzen-9-7950x3d",
                                "epyc-4464p",
                                "epyc-7443p",
                                "epyc-9354p",
                                "epyc-9654",
                                "storage-64tb",
                                "storage-240tb",
                                "gpu-rtx-4000-ada",
                                "gpu-l40s"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Plan",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PlanResponse"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/locations": {
            "get": {
                "tags": [
                    "catalog"
                ],
                "security": [],
                "operationId": "listLocations",
                "summary": "List data center locations",
                "responses": {
                    "200": {
                        "description": "Locations",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/LocationList"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/locations/{id}": {
            "get": {
                "tags": [
                    "catalog"
                ],
                "security": [],
                "operationId": "getLocation",
                "summary": "Get one location",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "nyc",
                                "mia",
                                "lax",
                                "lon",
                                "ams",
                                "fra",
                                "sin",
                                "tyo"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Location",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/LocationResponse"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/os": {
            "get": {
                "tags": [
                    "catalog"
                ],
                "security": [],
                "operationId": "listOperatingSystems",
                "summary": "List one-click operating system images",
                "responses": {
                    "200": {
                        "description": "Operating system images",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OsList"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/status": {
            "get": {
                "tags": [
                    "status"
                ],
                "security": [],
                "operationId": "getStatus",
                "summary": "Current status of every location and component",
                "responses": {
                    "200": {
                        "description": "Status",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/StatusResponse"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "Plan": {
                "type": "object",
                "required": [
                    "id",
                    "name",
                    "family",
                    "cpu",
                    "memory",
                    "storage",
                    "network",
                    "price",
                    "availability",
                    "links"
                ],
                "properties": {
                    "id": {
                        "type": "string",
                        "examples": [
                            "ryzen-9-9950x"
                        ]
                    },
                    "name": {
                        "type": "string",
                        "examples": [
                            "AMD Ryzen 9 9950X"
                        ]
                    },
                    "family": {
                        "type": "string",
                        "enum": [
                            "entry",
                            "performance",
                            "enterprise",
                            "storage",
                            "gpu"
                        ]
                    },
                    "cpu": {
                        "type": "object",
                        "properties": {
                            "model": {
                                "type": "string"
                            },
                            "cores": {
                                "type": "integer"
                            },
                            "threads": {
                                "type": "integer"
                            },
                            "base_ghz": {
                                "type": "number"
                            },
                            "boost_ghz": {
                                "type": "number"
                            },
                            "architecture": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "l3_cache_mb": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            }
                        }
                    },
                    "memory": {
                        "type": "object",
                        "properties": {
                            "size_gb": {
                                "type": "integer"
                            },
                            "type": {
                                "type": "string"
                            },
                            "ecc": {
                                "type": "boolean"
                            }
                        }
                    },
                    "storage": {
                        "type": "string",
                        "examples": [
                            "2 × 2 TB NVMe"
                        ]
                    },
                    "gpu": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "model": {
                                        "type": "string"
                                    },
                                    "memory": {
                                        "type": "string"
                                    }
                                }
                            }
                        ]
                    },
                    "network": {
                        "type": "object",
                        "properties": {
                            "port": {
                                "type": "string"
                            },
                            "bandwidth": {
                                "type": "string",
                                "const": "unmetered"
                            },
                            "ipv4": {
                                "type": "integer"
                            },
                            "ipv6": {
                                "type": "string"
                            },
                            "ddos_protection": {
                                "type": "boolean"
                            }
                        }
                    },
                    "price": {
                        "type": "object",
                        "properties": {
                            "monthly": {
                                "type": "object",
                                "properties": {
                                    "usd": {
                                        "type": "number"
                                    },
                                    "eur": {
                                        "type": "number"
                                    }
                                }
                            },
                            "setup_fee": {
                                "type": "number"
                            },
                            "currency_note": {
                                "type": "string"
                            }
                        }
                    },
                    "availability": {
                        "type": "object",
                        "properties": {
                            "in_stock": {
                                "type": "boolean"
                            },
                            "delivery": {
                                "type": "string",
                                "enum": [
                                    "instant",
                                    "sold_out"
                                ]
                            },
                            "locations": {
                                "type": "array",
                                "items": {
                                    "type": "string",
                                    "enum": [
                                        "nyc",
                                        "mia",
                                        "lax",
                                        "lon",
                                        "ams",
                                        "fra",
                                        "sin",
                                        "tyo"
                                    ]
                                }
                            },
                            "alternative": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Suggested in-stock plan when sold out."
                            }
                        }
                    },
                    "links": {
                        "type": "object",
                        "properties": {
                            "page": {
                                "type": "string",
                                "format": "uri"
                            },
                            "order": {
                                "type": "string",
                                "format": "uri"
                            }
                        }
                    }
                }
            },
            "PlanList": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Plan"
                        }
                    },
                    "meta": {
                        "type": "object",
                        "properties": {
                            "count": {
                                "type": "integer"
                            },
                            "in_stock": {
                                "type": "integer"
                            },
                            "generated_at": {
                                "type": "string",
                                "format": "date-time"
                            }
                        }
                    }
                }
            },
            "PlanResponse": {
                "type": "object",
                "properties": {
                    "data": {
                        "$ref": "#/components/schemas/Plan"
                    }
                }
            },
            "Location": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "enum": [
                            "nyc",
                            "mia",
                            "lax",
                            "lon",
                            "ams",
                            "fra",
                            "sin",
                            "tyo"
                        ]
                    },
                    "iata": {
                        "type": "string"
                    },
                    "city": {
                        "type": "string"
                    },
                    "country": {
                        "type": "string"
                    },
                    "country_code": {
                        "type": "string"
                    },
                    "region": {
                        "type": "string"
                    },
                    "coordinates": {
                        "type": "object",
                        "properties": {
                            "lat": {
                                "type": "number"
                            },
                            "lon": {
                                "type": "number"
                            }
                        }
                    },
                    "plans": {
                        "type": "integer"
                    },
                    "plans_in_stock": {
                        "type": "integer"
                    },
                    "links": {
                        "type": "object",
                        "properties": {
                            "page": {
                                "type": "string",
                                "format": "uri"
                            }
                        }
                    }
                }
            },
            "LocationList": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Location"
                        }
                    },
                    "meta": {
                        "type": "object",
                        "properties": {
                            "count": {
                                "type": "integer"
                            }
                        }
                    }
                }
            },
            "LocationResponse": {
                "type": "object",
                "properties": {
                    "data": {
                        "$ref": "#/components/schemas/Location"
                    }
                }
            },
            "OsImage": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "family": {
                        "type": "string"
                    },
                    "version": {
                        "type": "string"
                    },
                    "support": {
                        "type": "string"
                    },
                    "typical_install_minutes": {
                        "type": "integer"
                    },
                    "license": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "usd_per_core_month": {
                                        "type": "number"
                                    },
                                    "min_cores": {
                                        "type": "integer"
                                    }
                                }
                            }
                        ]
                    }
                }
            },
            "OsList": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/OsImage"
                        }
                    },
                    "meta": {
                        "type": "object",
                        "properties": {
                            "count": {
                                "type": "integer"
                            },
                            "custom_iso": {
                                "type": "boolean"
                            }
                        }
                    }
                }
            },
            "StatusResponse": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "overall": {
                                "type": "string"
                            },
                            "since": {
                                "type": "string",
                                "format": "date"
                            },
                            "locations": {
                                "type": "object",
                                "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                        "city": {
                                            "type": "string"
                                        },
                                        "components": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                }
                            },
                            "ongoing": {
                                "type": "integer"
                            },
                            "scheduled": {
                                "type": "integer"
                            },
                            "updated_at": {
                                "type": "string",
                                "format": "date-time"
                            }
                        }
                    }
                }
            },
            "Error": {
                "type": "object",
                "properties": {
                    "error": {
                        "type": "object",
                        "properties": {
                            "code": {
                                "type": "string"
                            },
                            "message": {
                                "type": "string"
                            },
                            "docs": {
                                "type": "string",
                                "format": "uri"
                            }
                        }
                    }
                }
            }
        }
    }
}