How to have a game post something in chat?

Game is approved by the player with the authentication OAuth process.
Authentication code is used and a OAuth token is retrieved by our backend.

I know who’s streaming (User ID), I know which stream (Stream ID).

How do you find which chat id is linked to a specific stream?