Send Hipchat Message via Scripting Lanugage?

I am scripting within a scripting lanugage called Pnuts. I am automating our migration process and would like to incorporate a way to send notifications to our teams room within the script itself. Basically, when the user selects "Create Migration" then pnuts code will send a message to our teams hipchat room stating "A new migration was created by _____________. " or something like that.


Basically, looking for a way to have my code automate the messaging functionality to hipchat.

1 answer

0 votes

Hi Trevor,

I'm not familiar with Pnuts, but to send a message to a specific Hipchat room you could use the API interface.

For example to send a message to room 6 you could use the command:

curl -d '{"message": "A new migration was created by $variable.", "notify": false, "message_format": "text"}' -H 'Content-Type: application/json' 'https://<hipchatserver>/v2/room/6/message?auth_token=xxxxxxxxxxxxxxxxxxxx'

A using the send_message endpoint only allows you to use text, so perhap, if you want the message to standout use the send_room_notification endpoint, which has a more extensive configuration

Have a look at the full API reference at - to send a text message - to send a notification, for example in html

To be able to make API calls you will need to create an API token first
An API tokens can be created in your profile settings when you are logged in with the webinterface.

Best Regards,


Where would I run that command from?... command line? if so do i have to install anything or be in a certain environment to actually be able to run the command?

Hi Trevor

The curl command can be executed from the terminal on any system that has curl installed.

Most linux/unix/OS X systems have that pre installed.


The curl command was only an example how make the API call. Any application that can make json API calls would do.

Best Regards,


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

30,658 views 4 7
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