https://{ourserver.com}/api/auth/mePOST /api/auth/me
Change the list of the disabled services
This request allows to add services to the blacklist preventing them to be used for SMS activation on your numbers.
This request might come in handy when you use your numbers for SMS
verification for your own purposes or projects. It will block these
services on your account entirely assigning them USED
status and preventing them to be issued to the clients.
Parameters
header1
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here |
Request Body
Payload for saveConfig request
application/jsonBodyobject
disabled_serviceobject
Examples
{
"disabled_service": {
"vkcom": "vkcom",
"facebook": "facebook"
}
}Responses
200Successful response with partner profile data
Successful response with partner profile data
application/jsonResponseobject
allowed_ipsstring[]
disabled_serviceobject
disabled_service_adminstring[]
settingsobject
ussdCommandsobject
disabled_templatesstring[]
balanceobject
Examples
Example response from Onlinesim server for successfuly modified service blacklist
{
"id": 12345,
"name": "partner_name",
"email": "partner@example.com",
"group": 3,
"block": false,
"telegram": null,
"telegram_key": null,
"comment": null,
"apikey": "<api_key>",
"allowed_ips": [],
"type": 0,
"country": "0",
"referral_id": null,
"disabled_service": {
"vkcom": "vkcom",
"facebook": "facebook"
},
"disabled_service_admin": [],
"settings": {
"ussdCommands": {},
"logLevel": "debug",
"number_notification": 65,
"balance_notification": 3500,
"disabled_templates": []
},
"created_at": "2024-01-15 10:00:00",
"updated_at": "2026-08-26 12:00:00",
"is_admin": false,
"balance": {
"sum": 100.5,
"block": 0,
"spend": 50,
"income": 150.5,
"sms_count": 10,
"purse": null,
"additional_info": null
}
}[
{
"response": "ERROR_WRONG_KEY"
}
]400Missing or incorred parameters (request must contain parameters in it's body with proper names as described in documentation)
Missing or incorred parameters (request must contain parameters in it's body with proper names as described in documentation)
application/jsonResponseobject
401Unauthorized. The request is missing or uses an invalid API key. Some endpoints may return a 200 status with an ERROR_WRONG_KEY message instead of 401 — check the response body
Unauthorized. The request is missing or uses an invalid API key. Some endpoints may return a 200 status with an ERROR_WRONG_KEY message instead of 401 — check the response body
text/plain403Forbidden. The request was understood but refused due to insufficient permissions
Forbidden. The request was understood but refused due to insufficient permissions
application/jsonResponseobject
errorobjectRequired
detailsobject[]Required
422Unprocessable Entity. The request was well-formed but contained semantic errors.
The response and message fields contain the same JSON string with detailed error mapping.
Parse this string as JSON to identify which fields failed validation.
Unprocessable Entity. The request was well-formed but contained semantic errors.
The response and message fields contain the same JSON string with detailed error mapping.
Parse this string as JSON to identify which fields failed validation.
application/json