GEThttps://onlinesim.io/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
sms-scope- grants access to manage numbers for the SMS receiving service from Onlinesim
Parameters
query6
| Name | Type | Description |
|---|---|---|
tzid | string | Operation ID, returned by the server when a number is issued (in response to a getNum or getRentNum request). The list of active operations of the profile with their IDs can also be obtained via getState - for receiving operations, and via getRentState - for rental operations. If the operation ID is not passed, the response will contain data on all operations |
message_to_code | integer | SMS display mode:
Enum: 01Default:1 |
orderby | string | Sort order of SMS messages by their time of receipt:
Enum: ascdescDefault:desc |
msg_list | integer | SMS message list display mode:
Enum: 01 |
clean | integer≥ 0, ≤ 1 | Message display mode (only for msg_list = 0):
Enum: 01 |
lang | string | Response language:
Please note that the translation applies only to string field values, such as service names or country names. Field names themselves, error messages, and standard values (for example, true/false for boolean fields) remain in English Enum: frderuenzhDefault:ru |
Responses
200Successful response for getState request: the server returns
detailed information on active numbers of your account or throws an
exception
Successful response for getState request: the server returns
detailed information on active numbers of your account or throws an
exception
schemaoneOf
[0]object[]
[1]object
[2]object
[3]object
Examples
Success — array of operations
[
{
"tzid": 10000,
"response": "TZ_NUM_WAIT",
"number": "+37360000000",
"country": 373,
"service": "telegram",
"sum": 14,
"time": 596,
"msg": "123456",
"form": "index"
}
]