Access private chat history via API

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:

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 vote
Maarten Cautreels Community Champion Jun 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.<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.



Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Published Oct 07, 2017 in Hipchat

Bringing Structure to your HipChat Instance

...have mention name FirstnameLastname. Fe.: @MaartenCautreels This certainly helps to know who is being mentioned in a conversation. Imagine your colleague sends the following message...

470 views 1 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot