hipchat / hipchat-rb

HipChat HTTP API Wrapper in Ruby with Capistrano hooks

Home Page:https://www.hipchat.com/docs/apiv2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Personal tokens no longer work. Need "Room" token

i8ramin opened this issue · comments

HipChat::Unauthorized: Access denied to room {room name}

Something must have changed very recently, but it seems that you can no longer send messages to a room via personal v2 token. You have to generate a "room" level token.

The API situation with Hipchat is VERY confusing. The right place to generate this new token is under Group Admin -> Rooms -> {Your Room} -> Tokens

The url should look something like this:
https://{company}.hipchat.com/admin/rooms/tokens/{room id}

Also, is it possible to use the Room ID vs the name?

If you're using the v2 API, yes, you can use the room id or the name. You can create the token for that on https://{company}.hipchat.com/account/api