{"ok": true, "name": "SIBANI API", "version": "1", "format": "json", "method": "GET", "docs_html": "https://sibaniapi.com/#api", "docs_json": "https://sibaniapi.com/api/docs.json", "base": {"action": "https://sibaniapi.com/sub/api/", "action_alias": "https://sibaniapi.com/api/", "rest": "https://sibaniapi.com/api/user/"}, "auth": {"query": ["apiKey", "api_key", "key", "apikay"], "headers": ["X-Api-Key"], "note": "Send /api in the official bot to get your key. ping needs no key."}, "servers": ["main", "1", "2", "3"], "actions": [{"action": "ping", "auth": false, "params": [], "example": "https://sibaniapi.com/sub/api/?action=ping", "ok": {"ok": true, "service": "sibani-api"}, "error": null}, {"action": "getBalance", "auth": true, "params": [{"name": "apiKey", "type": "string", "required": true}], "example": "https://sibaniapi.com/sub/api/?apiKey=YOUR_API_KEY&action=getBalance", "rest": "https://sibaniapi.com/api/user/getBalance?apiKey=YOUR_API_KEY", "ok": {"ok": true, "balance": "12.34", "currency": "USD"}, "error": {"ok": false, "error": "BAD_KEY"}}, {"action": "getCountries", "auth": true, "params": [{"name": "apiKey", "type": "string", "required": true}], "example": "https://sibaniapi.com/sub/api/?apiKey=YOUR_API_KEY&action=getCountries", "ok": {"ok": true, "result": {"currency": "USD", "servers": {"main": {"label": "Main stock", "countries": {"US": "0.20"}, "availability": {"US": 12}}, "1": {"label": "Server 1", "countries": {"US": "0.50"}, "availability": {"US": 80}}}}}, "error": {"ok": false, "error": "BAD_KEY"}}, {"action": "getInfo", "auth": true, "params": [{"name": "apiKey", "type": "string", "required": true}], "example": "https://sibaniapi.com/sub/api/?apiKey=YOUR_API_KEY&action=getInfo", "ok": {"ok": true, "result": {"user_id": 123456, "balance": "12.34", "currency": "USD", "active_orders": 2}}, "error": {"ok": false, "error": "BAD_KEY"}}, {"action": "getOrders", "auth": true, "params": [{"name": "apiKey", "type": "string", "required": true}], "example": "https://sibaniapi.com/sub/api/?apiKey=YOUR_API_KEY&action=getOrders", "ok": {"ok": true, "result": {"count": 1, "orders": [{"phone": "+1555\u2026", "hash": "a1b2c3", "iso": "US", "code": ""}]}}, "error": {"ok": false, "error": "BAD_KEY"}}, {"action": "getNumber", "auth": true, "buy": true, "params": [{"name": "apiKey", "type": "string", "required": true}, {"name": "country", "type": "string", "required": true, "example": "US"}, {"name": "server", "type": "string", "required": false, "example": "main | 1 | 2 | 3", "note": "If omitted, cheapest in-stock server is used."}], "example": "https://sibaniapi.com/sub/api/?apiKey=YOUR_API_KEY&action=getNumber&country=US&server=1", "ok": {"ok": true, "msg": "success", "result": {"phone": "+15551234567", "hash": "a1b2c3d4", "price": "0.50", "password": "", "server": "1", "server_label": "Server 1"}}, "error": {"ok": false, "error": "NO_NUMBERS"}}, {"action": "getCode", "auth": true, "params": [{"name": "apiKey", "type": "string", "required": true}, {"name": "number", "type": "string", "required": true}, {"name": "hash", "type": "string", "required": true}], "example": "https://sibaniapi.com/sub/api/?apiKey=YOUR_API_KEY&action=getCode&number=+15551234567&hash=a1b2c3d4", "ok": {"ok": true, "msg": "success", "result": {"status": "Received", "number": "+15551234567", "code": "12345", "password": ""}}, "error": {"ok": false, "error": "WAITING"}}, {"action": "getLogout", "auth": true, "params": [{"name": "apiKey", "type": "string", "required": true}, {"name": "number", "type": "string", "required": false}, {"name": "hash", "type": "string", "required": false}], "example": "https://sibaniapi.com/sub/api/?apiKey=YOUR_API_KEY&action=getLogout&number=+15551234567&hash=a1b2c3d4", "ok": {"ok": true, "msg": "success", "result": {"status": "Logged out successfully"}}, "error": {"ok": false, "error": "BAD_ORDER"}}], "errors": [{"code": "BAD_KEY", "msg": "Missing or invalid apiKey"}, {"code": "API_BLOCKED", "msg": "API disabled for this account"}, {"code": "BANNED", "msg": "User is banned"}, {"code": "BAD_COUNTRY", "msg": "country is required (ISO2, e.g. US)"}, {"code": "BAD_SERVER", "msg": "server must be main | 1 | 2 | 3"}, {"code": "NO_NUMBERS", "msg": "No stock for this country/server"}, {"code": "NO_BALANCE", "msg": "Not enough balance"}, {"code": "RATE_LIMITED", "msg": "Wait before next purchase"}, {"code": "WAITING", "msg": "Code not received yet"}, {"code": "BAD_ORDER", "msg": "Order not found"}, {"code": "USE_BOT", "msg": "Buy from the clone bot, not this API"}, {"code": "NOT_FOUND", "msg": "Unknown action"}]}