# Keep these credentials on your server. export SCORMBOX_API_KEY="YOUR_SERVER_API_KEY" export SCORMBOX_API_SECRET="YOUR_SERVER_API_SECRET" export SCORMBOX_COURSE_ID="COURSE_ID_FROM_UPLOAD" # Use one stable key for retries of this particular launch request. curl --fail-with-body --silent --show-error \ --user "$SCORMBOX_API_KEY:$SCORMBOX_API_SECRET" \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: your-lms-launch-request-123' \ --data '{"user":{"name":"John Doe","email":"john@example.com"},"origin":"https://lms.example.com","attempt_mode":"resume"}' \ "https://scormbox.com/api/v1/courses/$SCORMBOX_COURSE_ID/sessions"