{"openapi":"3.0.3","info":{"title":"Mane SMS API","version":"1.0.0","description":"Plain-text SMS-Activate-style API. Every call is GET or POST to one URL with `action` and `api_key`. A missing or wrong key returns `BAD_KEY` (HTTP 401).\n\n**getBalance** — Current account balance in US dollars.\n\n**getNumber** — Buys a number for a service and country. The price is charged to your balance immediately.\n\n**getNumberV2** — Same purchase as getNumber, but a successful answer is a JSON object with the number, price and times.\n\n**getStatus** — Checks whether the SMS for an activation has arrived.\n\n**getStatusV2** — Like getStatus, but the answer is JSON: a verification type and an sms block once the code has arrived.\n\n**getActiveActivations** — Your numbers that are still waiting for an SMS, plus the ones that finished in the last 30 minutes. Newest first.\n\n**setStatus** — Changes an activation: cancel it for a refund, ask for another SMS, or mark it finished.\n\n**getPrices** — Cheapest price and total stock, keyed by country id and then service code. Narrow it with service and/or country. For every price tier use getPricesV2.\n\n**getPricesV2** — Every price tier for a service and country. Higher prices buy numbers with better delivery. Buy a tier with getNumber and fixedPrice=true.\n\n**getServicesList** — All services you can buy numbers for, with the code to use as the service parameter.\n\n**getCountries** — All countries, with the numeric id to use as the country parameter."},"servers":[{"url":"https://localhost:10000"}],"paths":{"/stubs/handler_api.php":{"get":{"summary":"Call an API method","operationId":"handler","parameters":[{"name":"action","in":"query","required":true,"schema":{"type":"string","enum":["getBalance","getNumber","getNumberV2","getStatus","getStatusV2","getActiveActivations","setStatus","getPrices","getPricesV2","getServicesList","getCountries"]}},{"name":"api_key","in":"query","required":true,"schema":{"type":"string"},"example":"YOUR_API_KEY"},{"name":"service","in":"query","required":false,"description":"Only this service code.","schema":{"type":"string"},"example":"wa"},{"name":"country","in":"query","required":false,"description":"Only this country (numeric id or ISO code).","schema":{"type":"string"},"example":"187"},{"name":"maxPrice","in":"query","required":false,"description":"Highest price in USD you will pay (the exact price with fixedPrice=true).","schema":{"type":"string"},"example":"0.50"},{"name":"fixedPrice","in":"query","required":false,"description":"true = buy at exactly maxPrice, a tier from getPricesV2.","schema":{"type":"string"},"example":"true"},{"name":"id","in":"query","required":false,"description":"Activation id returned by getNumber.","schema":{"type":"string"},"example":"66f1c0a2b3d4e5f6a7b8c9d0"},{"name":"start","in":"query","required":false,"description":"Offset for paging.","schema":{"type":"string"},"example":"0"},{"name":"limit","in":"query","required":false,"description":"How many to return (default 50, max 100).","schema":{"type":"string"},"example":"50"},{"name":"status","in":"query","required":false,"description":"8 = cancel and refund, 6 = finish, 3 = request another SMS, 1 = ready.","schema":{"type":"string"},"example":"8"}],"responses":{"200":{"description":"Plain text or JSON, depending on the action","content":{"text/plain":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"object"}}}},"401":{"description":"BAD_KEY"}}}}}}