getNumberV2 — Get a Number as JSON
Takes the same parameters as getNumber and returns JSON on success. On failure the classic plain-text codes (NO_NUMBERS, NO_BALANCE, WRONG_MAX_PRICE:<price> ...) are returned.
GET ?action=getNumberV2&service=wa&country=62
{
"activationId": "184213",
"phoneNumber": "628123456789",
"activationCost": "12.50",
"currency": 949,
"countryCode": "62",
"canGetAnotherSms": true,
"activationTime": "2026-10-07 12:00:00",
"activationEndTime": "2026-10-07 12:20:00",
"activationOperator": "any"
}
| field | Description |
activationId | Activation id; used as id in getStatus / setStatus calls. |
phoneNumber | Phone number (with country code, no + sign). |
activationCost | Price (as a string, e.g. "12.50"); the amount that is finalised if the code arrives. |
currency | Currency: ISO-4217 numeric code (integer; e.g. 949 = TRY). |
countryCode | Country id. |
canGetAnotherSms | Whether another SMS can be requested on the same number (setStatus&status=3). |
activationTime | When the activation started (server time, Europe/Istanbul, UTC+3; Y-m-d H:i:s format, no time zone). |
activationEndTime | When the number's validity ends; the activation is cancelled after this if no code arrived. Same format and time zone as activationTime. |
activationOperator | Operator used (any = no preference). |
getStatusV2 — Status as JSON
The id value comes from the getNumber call. Once the code has arrived it returns JSON: the sms object contains dateTime (ISO-8601), code and text; call is currently always null. While there is no code yet, the response is the plain-text status, not JSON (STATUS_WAIT_CODE, STATUS_WAIT_RETRY:..., STATUS_CANCEL).
GET ?action=getStatusV2&id=184213
// when a code has arrived: JSON
{
"verificationType": 0,
"sms": {
"dateTime": "2026-10-07T12:00:41+03:00",
"code": "123456",
"text": "Your code: 123456"
},
"call": null
}
// while no code exists: plain-text status, not JSON
STATUS_WAIT_CODE
getActiveActivations — Open Activations
Lists the open activations on your account as JSON (id, service, number, amount, status and any received codes). activationStatus: "4" waiting for the code, "1" code received, "3" waiting for a resent SMS. The smsCode array is the authoritative signal that a code has arrived; do not rely on the status field alone. Use it to pick up pending work when your application restarts.
GET ?action=getActiveActivations
{
"status": "success",
"activeActivations": [
{
"activationId": "184213",
"serviceCode": "wa",
"phoneNumber": "628123456789",
"activationCost": "12.50",
"activationStatus": "1",
"smsCode": ["123456"],
"countryCode": "62"
}
]
}