add new analytics API endpoints with documentation