Functional API endpoints