How to get a list of associated endpoints and power up status

With an XBEE 3 coordinator, in api mode how can I get it to report via the uart the addresses of associated endpoints?
Can it be done at any time or is the endpoint address only reported at the point of association ( or when ) ?

From power up - what is the sequence to use to talk to the XBEE to discover if it’s in API or Transparent mode… it may have been reset to defaults ( by the user pressing the associate button 4 times ).