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 can I generate an auth_token with send_message scope?

I am trying to create a Java application that will be sending messages after some process finishes. According to design, the application provides a list of failed data which can contain 1000+ data rows. Therefore sending just a notification is not the case for me.

I decided that I will use file sharing using /v2/room/{room_id_or_name}/share/file call.

This call should be done with send_message scope but I can't find how to make it.

Could someone please help me with that?

I am using Postman to send messages to /v2/room/{room_id_or_name}/share/file but I always receive 

"error": {
"code": 401,
"message": "Authenticated requests only. See for more information.",
"type": "Unauthorized"


2 answers

1 accepted

0 votes
Answer accepted
Syahrul Atlassian Team Nov 12, 2017

Hi Igor,


I would suggest you reach out to our developer community at so that you'll be able to get a better guidance.


Additionally, do try to generate a token from your profile for v2 API at

Thank you very much, Mohammad!

The link for token generation helped me completely!

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,201 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