api: provide api definition over api