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
Accepted answer

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 Nov 14, 2018 in Hipchat Cloud

Hipchat Cloud and Stride End of Life: Just over 90 days away

Earlier this year we made the difficult decision to discontinue our team messaging tools, Stride and Hipchat. The end of life date for Stride and Hipchat Cloud is quickly approaching - February 15, 2...

529 views 0 2
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