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:

 

https://my_server/v2/room?auth_token=PASTE_YOURTOKNEHERE

 

Thanks

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 Sign up to answer
Community showcase
Published Aug 10, 2018 in Hipchat

What should I think about when migrating HipChat to Slack?

...from the beginning. We have built up a lot of content in HipChat, with it being a core tool in our distributed company model. While it is true that we didn’t need to move to Slack immediately, we felt it...

481 views 1 10
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