RocketChat / RocketChat/Rocket.Chat

How to get messages from a "team" via REST API?

Open
#39,362 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: feature
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Hi,

My use case requires being able to read the messages being posted (and also historic messages) in a RocketChat team. Looking at the API documentation for Teams, I don't see any endpoint which could do this. I have already tried the related endpoints in Channel and Group, but those (expectedly) don't work with a teamName or teamId.

Is there an easy way or a workaround through which I could retrieve all the messages from a team I'm a member of?

Any help or guide is appreciated. Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Teams API documentation and compare it with the linked Channel and Group message endpoints. Determine whether team messages can be retrieved through existing resources or require a new REST endpoint. Done means the supported retrieval method or endpoint is documented and works for current and historic team messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.