Get Users Of Room Without E2E Key

Retrieves Users Of Room Without E2E Key

URLRequires AuthHTTP Method

api/v1/e2e.getUsersOfRoomWithoutKey

GET

Query Parameters

ArgumentExampleRequiredDescription

rid

zRAeTszXor8CCPceB

Required

The room _id.

Example Call

curl --location --request GET 'http://localhost:3000/api/v1/e2e.getUsersOfRoomWithoutKey\
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

Example Response

Success

{
    "users": [
        {
            "_id": "XycfA5CetCPuEjqxw",
            "e2e": {
                "public_key": "{\"alg\":\"RSA-OAEP-256\",\"e\":\"AQAB\",\"ext\":true,\"key_ops\":[\"encrypt\"],\"kty\":\"RSA\",\"n\":\"oMO9ydjRxD3JzcAgMvyBZAc_pIOBIxOLVUChZ8mB3JNtLREC751hHT-WPZVZquWA6X4CihHejFfpIyAD_w-0MIToudTGO-f1aeE4Wc9-SBKjSQPphCuZMTwZ7iRtfUwHeGy5yM94uQPp07sEi9BmJSZqHscHc-6G520MyBhNU6uznQf-Sp85Q4etl4Ifs09khM-VMnBqKwh2QJx8w0880Vc3Zufve6udg0aSQ\"}"
            }
        }
    ],
    "success": true
}

Error

The following error can occur upon the endpoint.

  • Authorization: Requires an authentication token for the request to be made.

  • No Room Id: Occurs when no rid is given.

  • Invalid Room: Occurs when the given rid is invalid.

{
    "success": false,
    "error": "unauthorized"
}

Last updated

Rocket.Chat versions receive support for six months after release.