Document API endpoints