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 vote

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