Add API functions

Signed-off-by: Emilien Kenler <hello@emilienkenler.com>