v2

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
NameTypeDescription
Authorization*string

see more here

Request Body

Content-Typeapplication/json
Schema
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 notifications
telegram_keyinteger
Only the value 0 is used: it unlinks the Telegram botEnum:0
pursestring | nullNullable
Withdrawal details
additional_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-Typeapplication/json
Schema
schemaobject
idinteger
Partner account IDExample:1234
namestring
LoginExample:AccountName
emailstring
Email addressFormat:emailExample:user@example.com
apikeystring
API key of the accountExample:abcdef1234567890
allowed_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:2
blockboolean
true if the account is blockedExample:false
telegramstring | nullNullable
Telegram usernameExample:username
telegram_keyinteger | nullNullable
ID of the link to the Telegram botExample:123456789
commentstring | 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:0
typeinteger
Hardware type label of the profile (reference only, does not affect number issue)Example:0
created_atstring
Account creation time, server time (Moscow)Example:2024-01-15 10:00:00
updated_atstring
Last change of the account, server time (Moscow)Example:2026-08-26 12:00:00
is_adminboolean
true for an administrator accountExample:false
balanceobjectBalance 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-Typetext/html
Schema
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-Typeapplication/json
Schema
schemaobject
responsestringRequired
JSON string: field => list of error messages
messagestringRequired
The same JSON string

Examples

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...