400 "invalid client" response in Oauth Credentials Flow

For a start, thats the wrong kind of Token, you have to use a user token to login to chat.

Invalid Client usually means the clientID is not valid. You may have copied and pasted it wrong.

Either that, or it’s becuase you are trying to get chat:read on something that can’t use chat:read. To login to chat you need a user token. Not a server to server token.