{
  "info": {
    "name": "Mane SMS API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "api_key",
      "value": "YOUR_API_KEY"
    }
  ],
  "item": [
    {
      "name": "Account",
      "item": [
        {
          "name": "getBalance",
          "request": {
            "method": "GET",
            "description": "Current account balance in US dollars.",
            "url": {
              "raw": "https://localhost:10000/stubs/handler_api.php?action=getBalance&api_key={{api_key}}",
              "protocol": "https",
              "host": [
                "localhost"
              ],
              "port": "10000",
              "path": [
                "stubs",
                "handler_api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "getBalance"
                },
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Buy numbers",
      "item": [
        {
          "name": "getNumber",
          "request": {
            "method": "GET",
            "description": "Buys a number for a service and country. The price is charged to your balance immediately.",
            "url": {
              "raw": "https://localhost:10000/stubs/handler_api.php?action=getNumber&service=wa&country=187&maxPrice=0.50&fixedPrice=true&api_key={{api_key}}",
              "protocol": "https",
              "host": [
                "localhost"
              ],
              "port": "10000",
              "path": [
                "stubs",
                "handler_api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "getNumber"
                },
                {
                  "key": "service",
                  "value": "wa",
                  "description": "Service code, e.g. wa for WhatsApp.",
                  "disabled": false
                },
                {
                  "key": "country",
                  "value": "187",
                  "description": "Numeric country id (e.g. 187 = United States) or an ISO code (US).",
                  "disabled": false
                },
                {
                  "key": "maxPrice",
                  "value": "0.50",
                  "description": "Highest price in USD you will pay. We sell the cheapest number at or under it; if even the cheapest is dearer you get WRONG_MAX_PRICE and nothing is bought. With fixedPrice=true it is the exact price to buy instead.",
                  "disabled": true
                },
                {
                  "key": "fixedPrice",
                  "value": "true",
                  "description": "Set to true to buy at exactly maxPrice, one of the price tiers listed by getPricesV2 (better delivery costs more). A price that is not on the list answers NO_NUMBERS.",
                  "disabled": true
                },
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            }
          }
        },
        {
          "name": "getNumberV2",
          "request": {
            "method": "GET",
            "description": "Same purchase as getNumber, but a successful answer is a JSON object with the number, price and times.",
            "url": {
              "raw": "https://localhost:10000/stubs/handler_api.php?action=getNumberV2&service=wa&country=187&maxPrice=0.50&fixedPrice=true&api_key={{api_key}}",
              "protocol": "https",
              "host": [
                "localhost"
              ],
              "port": "10000",
              "path": [
                "stubs",
                "handler_api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "getNumberV2"
                },
                {
                  "key": "service",
                  "value": "wa",
                  "description": "Service code, e.g. wa for WhatsApp.",
                  "disabled": false
                },
                {
                  "key": "country",
                  "value": "187",
                  "description": "Numeric country id or ISO code.",
                  "disabled": false
                },
                {
                  "key": "maxPrice",
                  "value": "0.50",
                  "description": "Highest price in USD you will pay (the exact price with fixedPrice=true).",
                  "disabled": true
                },
                {
                  "key": "fixedPrice",
                  "value": "true",
                  "description": "true = buy at exactly maxPrice, a tier from getPricesV2.",
                  "disabled": true
                },
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Status & activations",
      "item": [
        {
          "name": "getStatus",
          "request": {
            "method": "GET",
            "description": "Checks whether the SMS for an activation has arrived.",
            "url": {
              "raw": "https://localhost:10000/stubs/handler_api.php?action=getStatus&id=66f1c0a2b3d4e5f6a7b8c9d0&api_key={{api_key}}",
              "protocol": "https",
              "host": [
                "localhost"
              ],
              "port": "10000",
              "path": [
                "stubs",
                "handler_api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "getStatus"
                },
                {
                  "key": "id",
                  "value": "66f1c0a2b3d4e5f6a7b8c9d0",
                  "description": "Activation id returned by getNumber.",
                  "disabled": false
                },
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            }
          }
        },
        {
          "name": "getStatusV2",
          "request": {
            "method": "GET",
            "description": "Like getStatus, but the answer is JSON: a verification type and an sms block once the code has arrived.",
            "url": {
              "raw": "https://localhost:10000/stubs/handler_api.php?action=getStatusV2&id=66f1c0a2b3d4e5f6a7b8c9d0&api_key={{api_key}}",
              "protocol": "https",
              "host": [
                "localhost"
              ],
              "port": "10000",
              "path": [
                "stubs",
                "handler_api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "getStatusV2"
                },
                {
                  "key": "id",
                  "value": "66f1c0a2b3d4e5f6a7b8c9d0",
                  "description": "Activation id returned by getNumber.",
                  "disabled": false
                },
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            }
          }
        },
        {
          "name": "getActiveActivations",
          "request": {
            "method": "GET",
            "description": "Your numbers that are still waiting for an SMS, plus the ones that finished in the last 30 minutes. Newest first.",
            "url": {
              "raw": "https://localhost:10000/stubs/handler_api.php?action=getActiveActivations&start=0&limit=50&api_key={{api_key}}",
              "protocol": "https",
              "host": [
                "localhost"
              ],
              "port": "10000",
              "path": [
                "stubs",
                "handler_api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "getActiveActivations"
                },
                {
                  "key": "start",
                  "value": "0",
                  "description": "Offset for paging.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "50",
                  "description": "How many to return (default 50, max 100).",
                  "disabled": true
                },
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            }
          }
        },
        {
          "name": "setStatus",
          "request": {
            "method": "GET",
            "description": "Changes an activation: cancel it for a refund, ask for another SMS, or mark it finished.",
            "url": {
              "raw": "https://localhost:10000/stubs/handler_api.php?action=setStatus&id=66f1c0a2b3d4e5f6a7b8c9d0&status=8&api_key={{api_key}}",
              "protocol": "https",
              "host": [
                "localhost"
              ],
              "port": "10000",
              "path": [
                "stubs",
                "handler_api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "setStatus"
                },
                {
                  "key": "id",
                  "value": "66f1c0a2b3d4e5f6a7b8c9d0",
                  "description": "Activation id returned by getNumber.",
                  "disabled": false
                },
                {
                  "key": "status",
                  "value": "8",
                  "description": "8 = cancel and refund, 6 = finish, 3 = request another SMS, 1 = ready.",
                  "disabled": false
                },
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Prices & availability",
      "item": [
        {
          "name": "getPrices",
          "request": {
            "method": "GET",
            "description": "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.",
            "url": {
              "raw": "https://localhost:10000/stubs/handler_api.php?action=getPrices&service=wa&country=187&api_key={{api_key}}",
              "protocol": "https",
              "host": [
                "localhost"
              ],
              "port": "10000",
              "path": [
                "stubs",
                "handler_api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "getPrices"
                },
                {
                  "key": "service",
                  "value": "wa",
                  "description": "Only this service code.",
                  "disabled": true
                },
                {
                  "key": "country",
                  "value": "187",
                  "description": "Only this country (numeric id or ISO code).",
                  "disabled": true
                },
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            }
          }
        },
        {
          "name": "getPricesV2",
          "request": {
            "method": "GET",
            "description": "Every price tier for a service and country. Higher prices buy numbers with better delivery. Buy a tier with getNumber and fixedPrice=true.",
            "url": {
              "raw": "https://localhost:10000/stubs/handler_api.php?action=getPricesV2&service=wa&country=187&api_key={{api_key}}",
              "protocol": "https",
              "host": [
                "localhost"
              ],
              "port": "10000",
              "path": [
                "stubs",
                "handler_api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "getPricesV2"
                },
                {
                  "key": "service",
                  "value": "wa",
                  "description": "Only this service code.",
                  "disabled": true
                },
                {
                  "key": "country",
                  "value": "187",
                  "description": "Only this country (numeric id or ISO code).",
                  "disabled": true
                },
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Catalog",
      "item": [
        {
          "name": "getServicesList",
          "request": {
            "method": "GET",
            "description": "All services you can buy numbers for, with the code to use as the service parameter.",
            "url": {
              "raw": "https://localhost:10000/stubs/handler_api.php?action=getServicesList&api_key={{api_key}}",
              "protocol": "https",
              "host": [
                "localhost"
              ],
              "port": "10000",
              "path": [
                "stubs",
                "handler_api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "getServicesList"
                },
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            }
          }
        },
        {
          "name": "getCountries",
          "request": {
            "method": "GET",
            "description": "All countries, with the numeric id to use as the country parameter.",
            "url": {
              "raw": "https://localhost:10000/stubs/handler_api.php?action=getCountries&api_key={{api_key}}",
              "protocol": "https",
              "host": [
                "localhost"
              ],
              "port": "10000",
              "path": [
                "stubs",
                "handler_api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "getCountries"
                },
                {
                  "key": "api_key",
                  "value": "{{api_key}}"
                }
              ]
            }
          }
        }
      ]
    }
  ]
}