Hipchat Rest API tokens

Hi Team,

The authentication used in HipChat rest API calls uses different tokens (e.g. Administer Group, View Group etc) with different scopes for different API calls. Is there any specific single 'Token' which can be used for all the USER related CRUD operations.

Awaiting reply.

 

Thanks,

Ankit.

 

7 answers

Hi Ankit,

Have you seen this page?

 

Best regards, Damien.

Hi Damien, 

Thanks for your prompt reply.

I went through the page you provided but I couldnt get much info from it.

As per this this Link , we can get a personal access token which has access to all the API's available to you, for all scopes. But on click of the  personal access token link (in the documentation) it is redirecting to the normal "API Access"  page of my account where i can create access token only based on specific scopes.

Kindly help me if I can get any such token which has access to all api with all scopes.

Thanks,

Ankit.

Hi Ankit,

 

So, if I understood well, I think this page is more what you need smile

 

Damien.

Hi Damien,
Thanks for your immediate reply.
But somehow i am not able to use the given URL(to generate the token) correctly.
I tried : https://api.hipchat.com/v2/oauth/token?grant_type=personal&username=<myUsername>&password=<myPwd>
But i am not having any luck.
Could you please help me with this.

Thanks,
Ankit.

Hi Ankit,

The user name to generate a token on behalf of. Only valid in the 'password' and 'client_credentials' grants.

If think for use the params "username", you must choose another grant_type smile

 

Damien.

0 votes

Hi @Ankit Jaishwal, judging by you question and the conversation bellow this tool from @Bob Swift [Bob Swift Atlassian Add-ons] might be helpful: https://marketplace.atlassian.com/plugins/org.swift.hipchat.cli/cloud/overview .

The HipChat CLI doesn't have an action to generate a token. You need to generate a personal V2 API token through the UI and once you have that, then the CLI can do various CRUD like operations acting as that user.

Hi Bob,

I have created an Add on in my HipChat admin account, i need to generate an OAuth2 token for it to use Rest APIs and perform the various CRUD operations. I am not getting any concrete link to generate the same for my add-on. most of the places i found mention of Capability descriptor, but i am not able to find that anywhere in the UI. Could you please help me in this regard. It will be of great help.

Thank,

Ankit.

Sorry, I don't know off hand.

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...

497 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