Retrieves, for each of the specified encrypted rooms, the members who are waiting for the room's E2E key and have an E2E public key. Members who already have a room key or a suggested key are not returned, and the authenticated user is excluded. Up to 50 users are returned per room, and rooms with no waiting users are left out of the response.
If E2E encryption is disabled in the workspace, usersWaitingForE2EKeys is an empty object.
Changelog
| Version | Description |
|---|---|
| 6.10.0 | Added |
The user ID.
The authentication token.
The IDs of the rooms to check. To check several rooms, repeat the parameter, for example roomIds=wCiXndNp5NqNY3uCc&roomIds=GENERAL.
OK
{
"usersWaitingForE2EKeys": {
"wCiXndNp5NqNY3uCc": [
{
"_id": "XycfA5CetCPuEjqxw",
"public_key": "{\"alg\":\"RSA-OAEP-256\",\"e\":\"AQAB\",\"ext\":true,\"key_ops\":[\"encrypt\"],\"kty\":\"RSA\",\"n\":\"oMO9ydjRxD3JzcAgMvyBZAc_pIOBIxOLVUChZ8mB3JNtLREC751hHT\"}"
}
]
},
"success": true
}An object keyed by room ID. Each value lists the users waiting for that room's key.
Bad Request
{
"success": false,
"error": "must have required property 'roomIds'",
"errorType": "error-invalid-params"
}Unauthorized
{
"status": "error",
"message": "You must be logged in to do this."
}