It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
TAGS
Community showcase
Published in Hipchat

Hipchat Cloud and Stride have reached End of Life (updated)

All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us.  As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...

35,201 views 9 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you