Skip to main content

Batch sync users

POST /stm/srvapi/v1/member/sync Authentication: required (see Overview) Pushes users from your system in batches, so that the meeting client can show them in its contact list and let people pick participants from it. If you only use “Get a login-free token” to join meetings, you do not need to sync first: that endpoint creates the user on the spot when a display name is included. Up to 1,000 users per request. Users are identified by user_id: a user who does not exist yet is created, and an existing one is updated, so both full and incremental pushes work. For existing users, nickname, real_name, and department always take the values from the current request (omitting department clears it), while avatar, mobile, password_hash / salt, and camera_disabled / share_disabled keep their current values when omitted. Only one sync can run per app at a time. Concurrent calls are rejected with a “too frequent, please wait” error, so push the next batch after the previous one returns. A failure on one user does not affect the others; results are split by user_id into the success and fail maps. Request parameters The request body is a JSON array. The fields of each element are listed below.
string
required
User ID, i.e. the user’s unique ID in your system (max length 100)
string
required
In-meeting display name (max length 100) Example: Alice
string
Real name. Defaults to nickname when empty (max length 100)
string
Leave empty to keep the current avatar; an existing avatar is not cleared (max length 300)
string
Mobile number. For display only and not used to identify the user, which relies solely on user_id. Leave empty to keep the current value (max length 100)
string
Pass only if the user also needs to sign in to the meeting page with an account and password: the lowercase hex of sha256(password + salt), sent together with salt. Omit to leave unchanged (max length 100)
string
Salt used to compute password_hash. Can be empty (max length 100)
string
Organization name, a flat string rather than a hierarchy (max length 100) Example: Procurement Dept. 1
boolean
Disable camera
boolean
Disable sharing (screen and whiteboard)
Request example:
Response parameters
object
Users that succeeded. Both the key and the value are the user_id you passed
object
Users that failed. The key is the user_id and the value is the failure reason
Response example:

Get a login-free token

POST /stm/srvapi/v1/member/grant Authentication: required (see Overview) Call this in real time when the user clicks “Join meeting” to get a login-free token. Add it to the meeting page URL and the user joins without signing in. data is the token string itself. When you include nickname and other profile fields, a user who does not exist is created on the spot and an existing one is updated, so you do not need to call “Batch sync users” first. Just pass the latest display name and avatar each time. Passing only user_id for a user who has never been synced returns an error, because without a display name the user would have no name in the meeting. Request parameters
string
required
User ID, same as the user_id in member/sync (max length 100)
string
In-meeting display name (max length 100)
string
Real name. Defaults to nickname when empty (max length 100)
string
Avatar URL. Leave empty to keep the current avatar (max length 300)
string
Mobile number. For display only and not used to identify the user, which relies solely on user_id. Leave empty to keep it unchanged (max length 100)
boolean
Disable camera
boolean
Disable sharing (screen and whiteboard)
Request example:
Response parameters
string
Response data
Response example:

Query users and online status

POST /stm/srvapi/v1/member/info Authentication: required (see Overview) Queries synced user profiles in batches by user_id. The response includes is_online, which you can use to show online status in your UI. Nonexistent user_id values are omitted from the response. Request parameters
array<string>
List of user IDs, i.e. the user_id values passed when syncing
Request example:
Response parameters
string
User ID
string
Mobile number
string
Display name
string
Real name
string
Avatar
boolean
Whether the user is online
integer
Creation time, Unix timestamp in seconds
boolean
Disable camera
boolean
Sharing disabled
Response example:

Delete users

POST /stm/srvapi/v1/member/remove Authentication: required (see Overview) Deletes users in batches by user_id (for example, when employees leave). A deleted user can no longer get a token to join meetings. Nonexistent user_id values are ignored. Request parameters
array<string>
List of user IDs, i.e. the user_id values passed when syncing
Request example:
Response parameters data is null Response example: