Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Access private chat history via API

j_j_garrido May 5, 2017

I'm the admin for a HipChat instance, and having trouble just accessing my own private history via API. I've created a token with the scope View Messages within my profile, and am attempting to access my private chat history with a URL of the following format, but getting an empty "items" array:

https://api.hipchat.com/v2/user/12345/history/latest?auth_token=XXX

Am I missing something? I've tried it both in the browser as a GET request, and from command line as well with JSON content type in the request. Thanks in advance.

1 answer

0 votes
Maarten Cautreels
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 11, 2017

Hi Jake,

First of all, sorry for the late response. I've been going through some older unanswered questions and came accross yours.

https://api.hipchat.com/v2/user/<user_id>/history/latest?auth_token=xxx works perfectly fine for me. HipChat does require a personal or user token to be passed to the API.

An Add-on or Room notification token won't work. So head over to your Account API Access page and make sure you're using one of those tokens (and the token has the View Messages scope as you've already mentioned yourself.

Hope this helps.

Best,

Maarten

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events