Change the list of the disabled services
POSThttps://{ourserver.com}/api/auth/me
Changes the settings of your partner account and returns the account. Only the fields you pass are changed.
The main use is the blacklist of services (disabled_service): the services on it are not issued on
your numbers. This is useful when you use your numbers for SMS verification in your own projects.
Parameters
header1
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here |
Request Body
Content-Type
application/jsonSchema
schemaobject
disabled_serviceobject | nullNullableBlacklist of services, replaces the current one. An object whose values (or an array whose items) are service names from the services list. null or an empty object clears the list.
telegramstring | nullNullable
Telegram username for notificationstelegram_keyinteger
Only the value 0 is used: it unlinks the Telegram botEnum:0pursestring | nullNullable
Withdrawal detailsadditional_infostring | nullNullable
Additional withdrawal details (for example, the bank name)settingsobjectSettings of the account and of the gateway software. The passed keys replace the stored ones; keys you do not pass are kept (inside integrations.skyline, single keys are merged).
Examples
blacklist
Blacklist VK and Facebook
{
"disabled_service": {
"vkcom": "vkcom",
"facebook": "facebook"
}
}Responses
200The account after the change
Content-Type
application/jsonSchema
schemaobject
idinteger
Partner account IDExample:1234namestring
LoginExample:AccountNameemailstring
Email addressFormat:emailExample:user@example.comapikeystring
API key of the accountExample:abcdef1234567890allowed_ipsstring[]IP addresses the API accepts requests from. Empty: any address.Example:[
"192.168.1.1"
]
groupinteger
Account group: 0 — not activated, 2 — partner providing numbers for SMS receiving, 3 — also for rent, 4 — also for rent with extensionExample:2blockboolean
true if the account is blockedExample:falsetelegramstring | nullNullable
Telegram usernameExample:usernametelegram_keyinteger | nullNullable
ID of the link to the Telegram botExample:123456789commentstring | nullNullable
Comment on the accountExample:settingsobject
Account settings (see the request). ussdCommands, logLevel, number_notification, balance_notification and disabled_templates are always present; an empty ussdCommands comes as [].disabled_serviceobjectBlacklist of services: the key and the value are the service name. An empty object if the list is empty.Example:{
"vkcom": "vkcom"
}
disabled_service_adminstring[]Services disabled for your numbers by the administrator
referral_idinteger | nullNullable
Referrer IDExample:countrystring
Country label of the profile (reference only, does not affect number issue)Example:0typeinteger
Hardware type label of the profile (reference only, does not affect number issue)Example:0created_atstring
Account creation time, server time (Moscow)Example:2024-01-15 10:00:00updated_atstring
Last change of the account, server time (Moscow)Example:2026-08-26 12:00:00is_adminboolean
true for an administrator accountExample:falsebalanceobjectBalance of the account
Examples
success39 lines
The blacklist is changed
{
"id": 12345,
"name": "partner_name",
"email": "partner@example.com",
"apikey": "<api_key>",
"allowed_ips": [],
"group": 2,
"block": false,
"telegram": null,
"telegram_key": null,
"comment": null,
"settings": {
"ussdCommands": [],
"logLevel": "debug",
"number_notification": 65,
"balance_notification": 3500,
"disabled_templates": []
},
"disabled_service": {
"vkcom": "vkcom",
"facebook": "facebook"
},
"disabled_service_admin": [],
"referral_id": null,
"country": "0",
"type": 0,
"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
}
}401No API key, or the key does not exist. The body is the plain text Unauthorized.
A request with Accept: application/json gets HTTP 200 with {"response":"ERROR_WRONG_KEY"} instead.
Content-Type
text/htmlSchema
schemastring
Enum:Unauthorized.Example:Unauthorized.422Invalid fields. response and message hold the same JSON string that maps each invalid field to
its error messages: parse it to see what failed.
Content-Type
application/jsonSchema
schemaobject
responsestringRequired
JSON string: field => list of error messagesmessagestringRequired
The same JSON stringExamples
disabledServiceNotList
disabled_service passed as a string
{
"response": "{\"disabled_service\":[\"The disabled service must be an array.\"]}",
"message": "{\"disabled_service\":[\"The disabled service must be an array.\"]}"
}Code Samples
Generating examples...