Change Number Status

Changes activation status using the legacy setStatus action.

GET http://privatesms.vip/stubs/handler_api.php?api_key={apikey}&action=setStatus&id={activation_id}&status={status}

Request Parameters

NameDescription
api_keyPersonal API key from the client account.
actionMust be setStatus.
idActivation ID returned by getNumber or getNumberV2.
status1 = ready, 3 = request another SMS, 6 = complete, 8 = cancel.

Response Examples

200 OK

ACCESS_READY

200 OK

ACCESS_ACTIVATION

200 OK

ACCESS_CANCEL

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.
404NO_ACTIVATIONActivation was not found.
400BAD_STATUSUnsupported status value or invalid state transition.
403EARLY_CANCEL_DENIEDCancellation is blocked during the first minute.
RUEN