# sms-verification-number ## Auth - Auth is via `api_key` query parameter. - Always include `lang`. - The API supports GET and POST on the same handler base. ## Core endpoints - `getBalance` - `getCountryAndOperators` - `getPrices` - `getServicesAndCost` - `getServicesAndCostWithStatistics` - `getNumber` - `getNumberV2` - `setStatus` - `getStatus` - `getCurrentActivationsList` ## Key responses - `getBalance` returns a numeric balance string. - `getCountryAndOperators` returns country records with operator lists. - `getNumber` returns `ACCESS_NUMBER:ID:NUMBER` on success. - `getNumberV2` returns JSON with `activationId`, `phoneNumber`, `activationCost`, `currency`, `countryCode`, `canGetAnotherSms`, `activationTime`, and `activationOperator`. - `getStatus` returns `STATUS_WAIT_CODE`, `STATUS_CANCEL`, or `STATUS_OK:CODE`. ## Status changes - `3` requests another SMS. - `6` finishes the number. - `8` cancels the number, only when no SMS has been received yet. ## Useful errors - `NO_BALANCE` - `NO_NUMBERS` - `WRONG_MAX_PRICE:MIN_PRICE` - `BAD_ACTION` - `BAD_KEY` - `BAD_LANG` - `NO_ACTIVATION` - `ERROR_SQL` - `ERROR_API` - `REQUEST_LIMIT` ## Practical notes - Prefer `getServicesAndCostWithStatistics` when the task needs price and availability together. - Use `maxPrice` when the user wants a price ceiling. - Use `getCurrentActivationsList` when the task needs a list of active or historical orders.