GET /reports/scorm/:activityId/export

GET /reports/scorm/:activityId/export

GET /api/reports/scorm/[activityId]/export - Export SCORM report as CSV Verify authentication with Clerk Get user's profile to determine role and tenant Verify user has access (instructor or admin) Verify the activity exists and is SCORM type Role-based access: instructors can only see their own courses Get all activity progress for this SCORM activity Build CSV content Extract time spent from tracking_data Escape CSV values (handle commas, quotes, newlines) Return CSV file

Endpoint

GET /reports/scorm/:activityId/export

Authentication

This endpoint requires authentication. Include your authentication token in the request headers.

Path Parameters

ParameterTypeDescription
activityIdstringPath parameter

Error Responses

Status CodeError CodeDescription
401HTTP_401Unauthorized
404HTTP_404Not Found
403HTTP_403Forbidden
404HTTP_404Not Found
400HTTP_400Bad Request
403HTTP_403Forbidden
500HTTP_500Internal Server Error
500HTTP_500Internal Server Error

Example Request

curl -X GET "https://api.allurelms.com/reports/scorm/activityId-value/export" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"