Get the profile
GEThttps://onlinesim.io/api/getProfile.php
Returns the account of the key owner: settings used by other methods (number_country, number_reject, webhook_url), API access, locale and currency. GET only.
Security
Parameters
query1
| Name | Type | Description |
|---|---|---|
lang | string | Language of the texts in the answer (country and service names, status texts): Enum: frderuenzh |
Responses
200Profile or a common error
Content-Type
application/jsonSchema
schemaoneOf
One Of
[0]object
[1]object
429HTTP 429: more than 400 requests per minute from one profile (from one IP for requests without a key), or more than 200 requests per minute from one profile to getNum, getPrice, getState and setOperationOk together
Content-Type
application/jsonSchema
schemaobject
responsestringRequired
Error code. The codes any method can return are listed in the introduction; each method lists its own.
The list is not closed: treat an unknown code as a generic error and log it.Examples
Rate limit
Request rate limit exceeded
{
"response": "TRY_AGAIN_LATER"
}456HTTP 456: the API key is invalid or the OAuth token has expired. Public methods answer the same way when an invalid key is sent
Content-Type
application/jsonSchema
schemaobject
responsestringRequired
Error code. The codes any method can return are listed in the introduction; each method lists its own.
The list is not closed: treat an unknown code as a generic error and log it.Examples
Invalid key
Invalid API key or expired token
{
"response": "ERROR_WRONG_KEY"
}Code Samples
Generating examples...