I used to send easily notifications with curl:

curl
-d {"message":"hello","notify":true}"
--header "Authorization: Bearer XXXXXXX",
--header "Content-type: application/json",
"https://api.hipchat.com/v2/user/someuser/message

but it has stopped working around 5 february 2017.  I've seen that many changes have been happened in the API at that time.

The token hasn't expired.

I've read carefully this:

https://developer.atlassian.com/hipchat/guide/hipchat-rest-api/api-access-tokens

I've created  new user tokens in https://fccma.hipchat.com/account/api with all permissions but no success:

Here is the response:

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

What has changed?

1 answer

0 vote

Hi David, 

Thanks for your question! This error can happen for 2 reasons:

  • If it's an invalid token or
  • the token is expired

To best assist you with this issue, it will best that you open a ticket following the link below and we will investigate the token with you.

I will watch for your ticket.

regards,

 - Ricardo
Atlassian Support

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Mar 26, 2018 in Hipchat Data Center

Migration of Hipchat server to Data Center - a retrospective

...able to use the clients After a bunch of testing (rooms, memberships, check for private message history, and most importantly - the custom emoticons!) nearly everything was looking as we needed, however...

453 views 2 6
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