Skip to content

GET /stubs/handler_api.php?action=getStatus

Get short code from received SMS

This request returns a short code contained in SMS received by the specified number (to see the full text of the message, check getFullSms request).

TIP

This request can be used when you're sure that no other information in message is worth to store or use in future, other than a code. Otherwise consider using getFullSms request.

Security

  • api_key
  • BearerAuth
  • OAuth2 (Scopes: sms-scope)
    • sms-scope: grants access to manage numbers for the SMS receiving service from Onlinesim

Parameters

NameTypeDescription
action*string

Method name, in this case `getStatus

Enum:getStatusDefault:getStatus
id*integer
≥ 1

Operation ID (according to getNumber or getStatus responses)

Example:10000

Responses

200

Successful getStatus response from the server: either returns
short code from a received SMS or throws an exception.

Code Samples