single-service activations

Get the code from the received SMS

GEThttps://onlinesim.io/stubs/handler_api.php?action=getStatus

Returns the code from the current SMS of the operation (the full text: getFullSms). After setStatus with status=3 the current SMS is the next one.

  • STATUS_WAIT_CODE — no SMS yet (also while the number is still being issued)
  • BAD_STATUS — no operation with this id on your account
  • BAD_ACTION — id is missing, or the operation is in another state (finished, expired)

Security

Parameters

query2
NameTypeDescription
action*string

Method name: getStatus

Enum:getStatus
id*integer
≥ 1

Operation ID from getNumber

Example:65904893

Responses

200STATUS_OK:<code> or a status / error
Content-Typetext/plain
Schema
schemaoneOf
One Of
[0]string
Pattern:^STATUS_OK:
[1]string
Enum:STATUS_WAIT_CODEBAD_STATUS
[2]string
Error answered as text by every action (also by the JSON ones):
  • BAD_KEY — the API key is wrong or missing
  • BANNED — the account is blocked
  • BAD_ACTION — unknown action or an error without its own code (for example a temporary error or too many concurrent requests); check the request and repeat it later
  • Too many requests. Please wait a moment before trying again. — the converter's limit of getNumber, getRentNumber, setStatus and setRentStatus (3 requests per second, 150 per 30 seconds)
Enum:BAD_KEYBANNEDBAD_ACTIONToo many requests. Please wait a moment before trying again.

Examples

code

Code received

STATUS_OK:877613
wait

No SMS yet

STATUS_WAIT_CODE

Code Samples

Generating examples...