At command in api mode problem

please i need the code for an atcommand send it to an xbee with api mode from arduino
i just want to send an at command from xbee-arduino to an end device at
i need an exemple of code please

I need help please