Skip to content

[CHA-4634] feat: add getChannel API - #262

Open
mogita wants to merge 1 commit into
mainfrom
feat/cha-4634-get-channel
Open

[CHA-4634] feat: add getChannel API#262
mogita wants to merge 1 commit into
mainfrom
feat/cha-4634-get-channel

Conversation

@mogita

@mogita mogita commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Adds Channel.getChannel(type, id) for GET /channels/{type}/{id}. Bumble needs a read-only channel fetch on this SDK and is not moving to the generated SDK yet.

Unlike getOrCreate the call never creates the channel. A missing channel returns 404, so it also works as an existence check. Options are state, messagesLimit, membersLimit and watchersLimit.

The endpoint reads its options from a JSON payload query parameter and returns 400 without one, so the request data is sent there instead of as flat query parameters. Same approach as queryMembers.

Verify: ChannelTest.whenGettingExistingChannel_thenReturnsChannel and whenGettingMissingChannel_thenNotFound hit the live API. GetChannelTest asserts the request shape without network access.

Linear: https://linear.app/stream/issue/CHA-4634/add-getchannel-api-to-the-old-java-sdk

Adds Channel.getChannel(type, id), which calls GET /channels/{type}/{id}.
Unlike getOrCreate it never creates the channel: a missing channel returns
404, so the request also works as an existence check.

The endpoint reads its options from a JSON `payload` query parameter and
returns 400 without one, so the request data is sent there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant