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

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
Anatoli Atlassian Team Jun 13, 2016

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.

0 votes
Anatoli Atlassian Team Jul 26, 2016

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