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

how to use rest api with auth

Not able to use rest API it gives error:

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

1 answer

0 votes

Amol,

Could you let us know what product this is for and which version you're using?

Regards,

Shannon

i am trying for hypchat. 

my request is:

POST : http://api.hipchat.com/v2/room?auth_token=jpA76hDdKyXDaomCaMvOC22C&auth_test=true

Authorization : Basic YW1vbEBjeWJlcnNwb25zZS5jb206anBBNzZoRGRLeVhEYW9tQ2FNdk9DMjJD

Host: api.hipchat.com

Authorization: Basic jpA76hDdKyXDaomCaMvOC22C

Content-Type : application/x-www-form-urlencoded

 

in body:

grant_type : grant_type

scope : send_notification+admin_room

 

response : 

{
"error": {
"code": 400,
"message": "Invalid BASIC-encoded authentication credentials format",
"type": "Bad Request"
}
}

i am not able to understand what is worng in this.

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,225 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