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

How to pass scope value while reading Hipchat room history via API?



Im struggling with reading room history, from my Python script and keep getting:


"error": {
"code": 403,
"message": "This action requires one of the following scopes: [u'view_messages']",
"type": "Forbidden"


Im not sure how to pass scope value in my request.

Tried various methods, none of them works.

My script


#!/usr/bin/env python

import jsonimport requests

headers = { 'Content-Type' : 'application/json' }

capabilities={ "hipchatApiConsumer": { "scopes": ["view_messages"] } }

params={ 'auth_token' : 'ABC, 'capabilities': capabilities }

req=requests.get('', headers=headers, params=params)

print req.content



1 answer

0 votes
Bruno Atlassian Team Apr 02, 2018

Hi, Lukasz!

Make sure the scope is enabled in the capabilities descriptor as explained in the following article:


Let us know in case of any obstacles!

Suggest an answer

Log in or Sign up to answer
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,211 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