GET /api/getState.php
Get information on numbers with active operations
Returns detailed information on all active numbers you have (or specific one).
It allows you to check the status of operations of your account and read the messages received on ordered numbers.
For example, you can use this request to get a list of all SMS from active numbers to process them.
In fact, this is a representation of active operations section ("My numbers") from the user dashboard.
.png)
Security
- apikey
- BearerAuth
- OAuth2 (Scopes: sms-scope)
sms-scope: grants access to manage numbers for the SMS receiving service from Onlinesim
Parameters
| Name | Type | Description |
|---|---|---|
tzid | integer≥ 1 | Operation ID Example: 10000 |
message_to_code | integer | 'SMS display mode:
Enum: 01Example:1 |
orderby | string | 'Sorting order:
Enum: ascdescDefault:ascExample:asc |
msg_list | integer≥ 0, ≤ 1 | 'Message list display mode:
Enum: 01Example:1 |
clean | integer≥ 0, ≤ 1 | 'Message display mode (only for msg_list = 0):
Enum: 01Example:1 |
lang | string | Response language: Enum: frderuenzhDefault:ruExample:en |
Responses
200
‘Successful response for getState request: the server returns
detailed information on active numbers of your account or throws an
exception.’
Code Samples
No code samples available