Custom API endpoints.