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 vote

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

Background While our Hipchat server environment was reliable and performing well, as a significant and growing part of our business, the need to leverage the benefits of Hipchat Data Center&nbs...

460 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