Introduction Русская версия | Last update: 17.05.2025
Authorization
Authorization using an API key is used if access to your personal account is required. Such requests must contain the following headers:
Authorization: Bearer {API Key}
API key, string
The API key can be obtained in the bot itself (Profile -> API)
Warning
Only you should have access to the API key.
Interaction with API
https://userapi.getdomain.sbs
base URL
Content-Type: application/json
for POST requests
Errors
If the request was processed with an error, you will receive the result in the following format:
{ "ok": false, "error_code": "EXAMPLE_ERROR" }
Error code | Description |
---|---|
AUTHORIZATION_REQUIRED |
Authorization required (invalid API key, header not passed) |
REQUIRED_PARAMETRS_MISSED |
Required parameters are missing |
USER_BANNED |
Permanent blocking in the bot (contact support for information) |
RATE_LIMIT |
Maximum number of requests per minute exceeded |
REQUIRED_SUBSCRIPTION |
An active Prime subscription is required for access. |
INTERNAL_SERVER_ERROR |
Internal server error |