Course Enrollments
Generate a course login link
GET
Generate a magic link for an existing enrollment belonging to your partner account. Create it on your server immediately before redirecting the participant; it expires after 30 minutes. Use courseEnrollmentId from enrollment creation. The participant must be an active customer. Do not publish or log the returned link: it authenticates the participant.
OAuth2header
AuthorizationBearer <token>Obtain a token at /v1/oauth/token, then send Authorization: Bearer <access_token>.
enrollment_id*Enrollment IdcourseEnrollmentId returned when the enrollment was created.
Format
uuidTemporary login link created.
application/json- response
magicLink*MagiclinkLogin link valid for 30 minutes. Generate immediately before redirecting.
curl -X GET 'https://api.staging.thepalia.de/v1/course-enrollments/497f6eca-6276-4993-bfeb-53cbbbba6f08/magic-link'Example Response
{ "magicLink": "https://thepalia.app/user/magic-link/EXAMPLE_TOKEN?ref=%2Fcourses%2F33333333-3333-4333-8333-333333333333"}