Getting eror when trying to get list of rooms using HipChat API v2

HI, I use this command

curl --header "content-type: application/json" --header "Authorization:Bearer <my token> -X POST https://my_server/v2/room 

and have this message :

"error": {
"code": 401,
"message": "Invalid OAuth session",
"type": "Unauthorized"

Where i have mistake ?


1 answer

Hi ,

You should specify your server name insted of my server and also use the auth_token generated from the settings-?API access path . copy the token and paste it as shown below:





I try as you write https://chat.******.com/v2/roomauth_token=d0fea7ebe6********7ec7ad6

And have this message

  "error": {
    "code": 401,
    "message": "Invalid OAuth session",
    "type": "Unauthorized"

But when i worked with api v1 everything was fine.


did you paste the token which had view_scope ?

I created token in HipChat web interface. 

Same issue here and still can't solve sad

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Published Oct 07, 2017 in Hipchat

Bringing Structure to your HipChat Instance

...have mention name FirstnameLastname. Fe.: @MaartenCautreels This certainly helps to know who is being mentioned in a conversation. Imagine your colleague sends the following message...

462 views 1 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot