API interface.