Skip to main content

Request headers

string
required
The service user’s API token in the Bearer YOUR_TOKEN format. The school owner issues the token in the admin panel: Manage → School → For developers → API keys — see the “Authentication” section for details.
integer
required
The numeric ID of the seller — the account the school belongs to. Copy it on the API keys page, in the Integration data → Identifiers card. The token’s permissions are checked against this ID.
integer
required
The numeric ID of the school, found in the same place as Seller-Id. The value must match the seller’s school — otherwise a 400 error with cause: "ForbiddenSchoolMismatch" is returned.
Requires authentication and the “School User Management” permission (SchoolManageUsers).
To find several users at once, use Find by a list of identifiers.

Query parameters

To find a user, pass one of the parameters listed below
The search is performed by login (email/phone/domain), then by Telegram ID, then by the external identifier extId. If several parameters are passed, they are checked in order login → tgId → extId, and the first user found is returned: for example, if no one matches login, the search continues by tgId. If no user is found by any parameter, user: null is returned (this is not an error; the response code is 200).
string
User login, 2 to 50 characters. It can be an email address, a phone number in international format or a domain login (domain) — by default it looks like id12345, but a custom one can be set when creating/updating the user. The value is passed in the query string, so encode it (encodeURIComponent): without encoding, the + sign in a phone number turns into a space — pass %2B9876543210.
integer
The user’s Telegram ID. An integer.
string
The user’s external identifier from your system (1 to 50 characters) — the value passed in extId when creating or updating the user.
A user’s login can be:
  • An email address (for example: [email protected])
  • A phone number in international format (for example: +9876543210)
  • The user’s domain (for example, id12345)
You must pass at least one of the parameters. Check order: login → tgId → extId — the first user found is returned.

Permission requirements

Finding a user requires the “School User Management” permission (SchoolManageUsers).
The service user must be authenticated by token and have the appropriate access permissions for the specified school.
The search is performed only within the specified school. Users from other schools will not be found.

Updated: 2026-09-25 14:33 UTC