HipChat API V2 get all rooms has max of 1000 returned. Is there a way around this? We have more than 1000 rooms.

My group that uses HipChat has over 1000 rooms. When use the get all rooms api for our bot to stay in all rooms instead of removing and re-adding the bot every day. This only applies to our first 1000 rooms created though. Now we have more and the stay command we use for our bot is useless. Has anyone found a work around for this problem?

1 answer

1 accepted

Hi Alexander,

That's correct, 1000 is the maximum number of results you can retrieve with a single request. But you can still make multiple requests using the start-index param to get the next set of results:

  • To get the first 1000 rooms, set max-results = 1000 and start-index = 0
  • To get the next 1000 rooms (from 1000 to 2000), set max-results = 1000 and start-index = 1000 

Hope this helps! More info on https://www.hipchat.com/docs/apiv2/method/get_all_rooms


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

458 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