Basic API handling, without any error management.