1.4 KiB
1.4 KiB
sms-verification-number
Auth
- Auth is via
api_keyquery parameter. - Always include
lang. - The API supports GET and POST on the same handler base.
Core endpoints
getBalancegetCountryAndOperatorsgetPricesgetServicesAndCostgetServicesAndCostWithStatisticsgetNumbergetNumberV2setStatusgetStatusgetCurrentActivationsList
Key responses
getBalancereturns a numeric balance string.getCountryAndOperatorsreturns country records with operator lists.getNumberreturnsACCESS_NUMBER:ID:NUMBERon success.getNumberV2returns JSON withactivationId,phoneNumber,activationCost,currency,countryCode,canGetAnotherSms,activationTime, andactivationOperator.getStatusreturnsSTATUS_WAIT_CODE,STATUS_CANCEL, orSTATUS_OK:CODE.
Status changes
3requests another SMS.6finishes the number.8cancels the number, only when no SMS has been received yet.
Useful errors
NO_BALANCENO_NUMBERSWRONG_MAX_PRICE:MIN_PRICEBAD_ACTIONBAD_KEYBAD_LANGNO_ACTIVATIONERROR_SQLERROR_APIREQUEST_LIMIT
Practical notes
- Prefer
getServicesAndCostWithStatisticswhen the task needs price and availability together. - Use
maxPricewhen the user wants a price ceiling. - Use
getCurrentActivationsListwhen the task needs a list of active or historical orders.