Which css attributes are allowed in a Hip Chat notification ?


I send notification to a Hip Chat room using the REST API.

Everything works well, however some css attributes in my html are removed :


<img style="width:50px; padding-right: 15px;" src="http://url/to/image.png"/>

the width attribute is kept, but padding-right is removed.

It is annoying as I can't get the exact layout I want.


Is there a white list of css attributes that can be used in a notification ?

Could you point me to the relevant document ?




1 answer

1 accepted

Hi Christophe,

We currently accept the following basic CSS attributes for HTML messages sent via the API:


Our API docs only state the accepted HMTL tags, but we do have plans to include additional info on styling soon -https://www.hipchat.com/docs/apiv2/method/send_room_notification



Thanks for your answer Jeison. It might be a good idea to add this information to the documentation :-) Cheers

I was disappointed when none of my embedded styles had no affect. Simple align right for instance. It is now 1.5 years later, when is "soon"?

Same here. I can't believe it's june 2017 and a simple "text-align"="right" won't work..

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

470 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