Document API functions