Skip to content

Its not possible to find the room id (rid) from the Api which is needed for most of the api calls #2879

@bechlin

Description

@bechlin

Your Rocket.Chat version: 0.25.0

With reference to this...

https://rocket.chat/docs/master/developer-guides-4-rest-api

It explains how to login and get a list of public rooms with these end points...

http://localhost:3000/api/login
http://localhost:3000/api/publicRooms

Then the api doc explains that in the subsequent calls you need to start using a rid (room id) in the end point urls..

http://localhost:3000/api/rooms/x4pRahjs5oYcTYu7i/join
http://localhost:3000/api/rooms/x4pRahjs5oYcTYu7i/leave
http://localhost:3000/api/rooms/x4pRahjs5oYcTYu7i/messages

where x4pRahjs5oYcTYu7i is the rid.

But how do you get this room id from an api call? It seems that there are no initial calls that enable you to get these room ids.

The /messages end point provides the rid in the json response but you need to use the rid in the first place with the api/rooms//messages before you can get the rid in the response.

Maybe I'm missing something obvious?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions