xbee API mode broadcasting

Hi, How to program XBEE to broadcast a message to all nodes from arduino in API mode?

Thanks in advance.

I am using arduino leaonardo.

What type of XBee?