Hi, I'am trying to create a user using HipChat API v2, but I always get 401 code error. I created a personal access token with my admin user but that does not work. How can I get/create that token that I must use in order to create a user?
NOTE: The token created has admin_group scope. This should let me create users.
Here is a cURL example of my Error, using auth_test param:
curl --header "content-type: application/json" --header "Authorization: Bearer YOUR_TOKEN" -X POST https://api.hipchat.com/v2/user?auth_token=MY_TOKEN&auth_test=true [1] 14700 MBP-de-Daniel:pr_project zpricing$ { "error": { "code": 401, "message": "Invalid OAuth session", "type": "Unauthorized" }
Community moderators have prevented the ability to post new answers.
Hey, Daniel!
From your description, it looks like you're using an APIv1 token on an APIv2 request, and that won't work. Note that we have two different versions of the API (v1 and v2), and the documentation can be a bit confusing about that. Here's how to get APIv2 tokens - https://www.hipchat.com/docs/apiv2/auth
Hi, I am new in creating HipChat API.
I want to integrate HipChat with Jenkins. I am trying from last few days with different techniques and failing everytime.
In jenkins Global Hipchat notifier Setting is showing this message
"Test Notification Failed:
Unexpected response code from HipChat: 401"
Could you please guide me how to integrate the HipChat with Jenkins?
Thanks and Regards,
Akhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nagila!
Thanks for the answer. I finally could fix the problem, I had a misspelling in auth_token header.
Sorry for the dumb question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.