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

HipChat - cURL Bold & Colors



is there any way to forrmat the Text Bold or in Colors in HipChat messages?
Maybe even with the curl command? I would like to send messages in bold and colors...

curl -d '{"color":"green","message":"My first notification (yey)","notify":false,"message_format":"text"}' -H 'Content-Type: application/json' https://chat.XXX.XXX/v2/room/XX/notification?auth_token=XXXXX



2 answers

1 accepted

1 vote
Answer accepted
Nick Turskyi Atlassian Team Jun 09, 2017

Hi Manuel,

You can use "message_format": "html" and use simple HTML formatting in the "message" field.

More information in the API call documentation:



Thanks perfect! This is working now! :D

Can i also color the messages? If i use <font color="#FF0099"> (eg) i get this error:

  "error": {
    "code": 400,
    "message": "The request body cannot be parsed as valid JSON: Expecting ',' delimiter or '}': line 1 column 132 (char 131)",
    "type": "Bad Request"

Any idea about this?

Nick Turskyi Atlassian Team Jun 09, 2017

Unfortunately, font tag isn't supported.

As per the documentation, "Allowed HTML tags: a, b, i, strong, em, br, img, pre, code, lists, tables".

As of the error, I'm pretty sure it's because you're using double quotes around the color, which effectively terminates the "message" field of JSON, which is itself enclosed in double quotes. Try escaping the inner quotes with backslashes:

"message":"My first<font color=\"#ff0099\"> notification</font>"

If I escape them the Message look like

My first<font color="#FF0099">notification</font>

but it is not in color.
Is there even a way to color them? Ive seen Screens where it was possible?


Dear Manuel,

For the regular Hipchat user this is not possible, see;

Although it is possible in certain situations with Nick his answer.

Friendly Regards,


Thank you! :D

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Hipchat Cloud

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

33,410 views 7 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