thepaliaDevelopers
Course Enrollments

Generate a course login link

GET
/v1/course-enrollments/{enrollment_id}/magic-link

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.

Authorization

OAuth2
headerAuthorizationBearer <token>

Obtain a token at /v1/oauth/token, then send Authorization: Bearer <access_token>.

Path Parameters

enrollment_id*Enrollment Id

courseEnrollmentId returned when the enrollment was created.

Formatuuid

Response Body

Temporary login link created.

application/json
  1. response
magicLink*Magiclink

Login link valid for 30 minutes. Generate immediately before redirecting.

Example Request
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"}