{
    "openapi": "3.1.1",
    "info": {
        "title": "BookMyHost Cloud public API",
        "version": "1.0.0",
        "description": "Anonymous, read-only access to BookMyHost Cloud plans, prices, live promotions and site settings. No API key. Cloud servers run on AMD EPYC and the latest Intel Xeon 6960P with DDR5 ECC RAM and Gen5 NVMe. Prices for INR exclude GST; money fields are integers in minor units (paise, cents). The same data is available to AI agents over MCP at https://bookmyhost.com/mcp/public (server card: https://bookmyhost.com/.well-known/mcp.json). Account, ordering and management endpoints are not part of this document.",
        "contact": {
            "name": "BookMyHost Cloud support",
            "email": "support@bookmyhost.com",
            "url": "https://bookmyhost.com/contact"
        }
    },
    "servers": [
        {
            "url": "https://my.bookmyhost.com/api/v1",
            "description": "BookMyHost Cloud"
        }
    ],
    "security": [],
    "x-agentic-access": {
        "version": "1.0",
        "autonomous_use": "allowed",
        "authentication": {
            "public": "None: /public/* and the MCP server at /mcp/public need no key and are read-only.",
            "account": "Bearer API key from Developer > API keys, bound to one account. Read-only unless created full-access; destructive operations also need the key restricted to specific IP addresses."
        },
        "rate_limits": {
            "window_seconds": 60,
            "public_api": {
                "requests": 120,
                "per": "client IP"
            },
            "public_mcp": {
                "requests": 60,
                "per": "client IP"
            },
            "account_api": {
                "read": 300,
                "write": 60,
                "per": "API key"
            },
            "account_mcp": {
                "requests": 120,
                "per": "API key"
            },
            "headers": [
                "RateLimit-Limit",
                "RateLimit-Remaining",
                "RateLimit-Policy",
                "RateLimit-Reset",
                "Retry-After",
                "X-RateLimit-Limit",
                "X-RateLimit-Remaining"
            ],
            "on_limit": "HTTP 429; wait Retry-After seconds, then retry with backoff."
        },
        "billing_guardrails": {
            "public": "Public endpoints and the public MCP server cannot order, pay or change anything; calls are free.",
            "account": "Orders and renewals take the prepaid wallet balance first, then the payment gateway. A top-up pays only renewals that are already due; future renewals are paid from the wallet on their due date. Servers bill hourly from creation until destroyed. A read-only key cannot create charges. Destroying data requires an IP-restricted key.",
            "idempotency": "Send Idempotency-Key on every POST, PUT, PATCH and DELETE so a retried order or top-up is not placed twice."
        },
        "idempotency": {
            "header": "Idempotency-Key",
            "methods": [
                "POST",
                "PUT",
                "PATCH",
                "DELETE"
            ],
            "retention_hours": 24,
            "replay_header": "Idempotent-Replayed",
            "conflicts": [
                "409 idempotency_in_progress",
                "422 idempotency_key_reused"
            ]
        },
        "pagination": "Lists return a plain array; send page and per_page (max 100) for {items, meta}.",
        "usage_policy": "Identify your client in User-Agent, cache public answers for 300 seconds, and stay inside the rate limits. Do not create accounts or orders without the account owner's instruction.",
        "terms": "https://my.bookmyhost.com/terms"
    },
    "tags": [
        {
            "name": "Public",
            "description": "Anonymous, read-only."
        }
    ],
    "paths": {
        "/public/catalog": {
            "get": {
                "operationId": "publicCatalogCatalog",
                "summary": "Public catalogue",
                "tags": [
                    "Public"
                ],
                "description": "Plans, prices for every billing term, the à-la-carte rate card, the term ladder, the custom-size limits (`builder`) and the \"Build your server\" entry sizes (`entry_sizes`: CV1-1-10 and W2-4-50 today, the cheapest servers sold, priced off the rate card below `builder.min` exactly as the storefront lists them), and `named_sizes` (the three ready sizes of the general segment named Starter, Standard and Pro, each with `for`, plan, config, hourly and monthly price and `order_path`, plus `build_your_own` with its from-price; fewer or none for a seller with fewer general plans) for one seller's storefront. For a reseller, `listings` holds every product it chose to sell (any type, new products included) with display name, icon, specs, every-term price and order path. Identify the seller by host, `key` or `seller`.\n\nAdditionally rate limited per user and per address; over the limit answers 429 with error.code rate_limited and a Retry-After header.",
                "x-bmh-rate-limit": {
                    "limiter": "public"
                },
                "x-bmh-audience": "public",
                "security": [],
                "x-bmh-public": true,
                "parameters": [
                    {
                        "name": "currency",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "INR",
                                "USD"
                            ]
                        }
                    },
                    {
                        "name": "seller",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 8
                        }
                    },
                    {
                        "name": "key",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "RateLimit-Limit": {
                                "$ref": "#/components/headers/RateLimit-Limit"
                            },
                            "RateLimit-Remaining": {
                                "$ref": "#/components/headers/RateLimit-Remaining"
                            },
                            "RateLimit-Policy": {
                                "$ref": "#/components/headers/RateLimit-Policy"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/OkEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "description": "Endpoint-specific payload."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                }
            }
        },
        "/public/promos": {
            "get": {
                "operationId": "publicCatalogPromos",
                "summary": "Public promotions",
                "tags": [
                    "Public"
                ],
                "description": "The offers running now (one-time first-recharge bonus for every customer who has not used it, no code needed; KYC welcome credit) with minimum, cap, expiry and terms link, read live from configuration. Identify the seller by host, `key` or `seller`.\n\nAdditionally rate limited per user and per address; over the limit answers 429 with error.code rate_limited and a Retry-After header.",
                "x-bmh-rate-limit": {
                    "limiter": "public"
                },
                "x-bmh-audience": "public",
                "security": [],
                "x-bmh-public": true,
                "parameters": [
                    {
                        "name": "seller",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 8
                        }
                    },
                    {
                        "name": "key",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "RateLimit-Limit": {
                                "$ref": "#/components/headers/RateLimit-Limit"
                            },
                            "RateLimit-Remaining": {
                                "$ref": "#/components/headers/RateLimit-Remaining"
                            },
                            "RateLimit-Policy": {
                                "$ref": "#/components/headers/RateLimit-Policy"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/OkEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "description": "Endpoint-specific payload."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                }
            }
        },
        "/public/quote": {
            "get": {
                "operationId": "publicCatalogQuote",
                "summary": "Public price quote",
                "tags": [
                    "Public"
                ],
                "description": "Price an arbitrary vCPU / RAM / NVMe / S3 shape for every billing term, as the storefront builder shows it. The shape is clamped to the catalogue's `builder.min` / `builder.max`; the cheapest server sold is the catalogue's `entry_sizes` row, not a quote below the minimum.\n\nAdditionally rate limited per user and per address; over the limit answers 429 with error.code rate_limited and a Retry-After header.",
                "x-bmh-rate-limit": {
                    "limiter": "public"
                },
                "x-bmh-audience": "public",
                "security": [],
                "x-bmh-public": true,
                "parameters": [
                    {
                        "name": "vcpu",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "ram_gb",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "disk_gb",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "s3_gb",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 0
                        }
                    },
                    {
                        "name": "currency",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "INR",
                                "USD"
                            ]
                        }
                    },
                    {
                        "name": "seller",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 8
                        }
                    },
                    {
                        "name": "key",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "RateLimit-Limit": {
                                "$ref": "#/components/headers/RateLimit-Limit"
                            },
                            "RateLimit-Remaining": {
                                "$ref": "#/components/headers/RateLimit-Remaining"
                            },
                            "RateLimit-Policy": {
                                "$ref": "#/components/headers/RateLimit-Policy"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/OkEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "description": "Endpoint-specific payload."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                }
            }
        },
        "/public/site": {
            "get": {
                "operationId": "publicCatalogSite",
                "summary": "Public site settings",
                "tags": [
                    "Public"
                ],
                "description": "Brand, links and public tracking ids for one seller's storefront — everything a self-hosted site needs besides the catalogue. A reseller on the new storefront also gets `theme` (colours, font, hero style) and `pages` (menu items).\n\nAdditionally rate limited per user and per address; over the limit answers 429 with error.code rate_limited and a Retry-After header.",
                "x-bmh-rate-limit": {
                    "limiter": "public"
                },
                "x-bmh-audience": "public",
                "security": [],
                "x-bmh-public": true,
                "parameters": [
                    {
                        "name": "seller",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 8
                        }
                    },
                    {
                        "name": "key",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "headers": {
                            "RateLimit-Limit": {
                                "$ref": "#/components/headers/RateLimit-Limit"
                            },
                            "RateLimit-Remaining": {
                                "$ref": "#/components/headers/RateLimit-Remaining"
                            },
                            "RateLimit-Policy": {
                                "$ref": "#/components/headers/RateLimit-Policy"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/OkEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "description": "Endpoint-specific payload."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                }
            }
        }
    },
    "components": {
        "responses": {
            "RateLimited": {
                "description": "Too many requests. Wait RateLimit-Reset (= Retry-After) seconds.",
                "headers": {
                    "Retry-After": {
                        "$ref": "#/components/headers/Retry-After"
                    },
                    "RateLimit-Reset": {
                        "$ref": "#/components/headers/RateLimit-Reset"
                    },
                    "RateLimit-Limit": {
                        "$ref": "#/components/headers/RateLimit-Limit"
                    },
                    "RateLimit-Policy": {
                        "$ref": "#/components/headers/RateLimit-Policy"
                    }
                },
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        },
        "headers": {
            "RateLimit-Reset": {
                "description": "Seconds until the window resets. Sent on 429.",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "RateLimit-Policy": {
                "description": "The quota policy, e.g. `300;w=60` = 300 requests per 60 seconds.",
                "schema": {
                    "type": "string"
                }
            },
            "RateLimit-Remaining": {
                "description": "Requests left in the current window (also sent as X-RateLimit-Remaining).",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "RateLimit-Limit": {
                "description": "Requests allowed in the current 60-second window (also sent as X-RateLimit-Limit).",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            }
        },
        "schemas": {
            "OkEnvelope": {
                "type": "object",
                "required": [
                    "ok",
                    "data"
                ],
                "properties": {
                    "ok": {
                        "const": true
                    },
                    "data": []
                }
            }
        }
    }
}