Get Number

Reserves a number and returns activation ID and phone number in the classic text format.

GET http://privatesms.vip/stubs/handler_api.php?api_key={apikey}&action=getNumber&service={service}&country={country}&maxPrice={maxPrice}

Request Parameters

NameDescription
api_keyPersonal API key from the client account.
actionMust be getNumber.
serviceService code from getServicesList.
countryCountry ID from getCountries.
maxPriceOptional maximum price filter.

Response Examples

200 OK

ACCESS_NUMBER:9f6d4d1d-3096-49cf-a9ce-4ef6d58a8ef8:15551234567

Error Responses

StatusServer responseDescription
401BAD_KEYThe API key is invalid.
400BAD_ACTIONThe action value is invalid.
500SERVER ERRORUnexpected internal server error.
403BANNEDThe account is disabled.
404BAD_SERVICEUnknown service code.
404BAD_COUNTRYUnknown country ID.
403NO_BALANCEAccount balance is too low for activation requests.
409NO_NUMBERSThe service or country is valid, but there is no available number in the current pool.
400BALANCE_MUST_BE_MORE_30Legacy compatibility response code.
RUEN