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
| Name | Description |
api_key | Personal API key from the client account. |
action | Must be setStatus. |
id | Activation ID returned by getNumber or getNumberV2. |
status | 1 = ready, 3 = request another SMS, 6 = complete, 8 = cancel. |
Error Responses
| Status | Server response | Description |
| 401 | BAD_KEY | The API key is invalid. |
| 400 | BAD_ACTION | The action value is invalid. |
| 500 | SERVER ERROR | Unexpected internal server error. |
| 403 | BANNED | The account is disabled. |
| 404 | NO_ACTIVATION | Activation was not found. |
| 400 | BAD_STATUS | Unsupported status value or invalid state transition. |
| 403 | EARLY_CANCEL_DENIED | Cancellation is blocked during the first minute. |