Create a course enrollment
After a successful purchase and confirmation of the course's suitability requirements, create an enrollment using the offer ID supplied by thepalia. Existing participants are matched by email. Store userId and courseEnrollmentId with your order, then email registrationUrl to the participant; the registration link is valid for 31 days. Production enrollments are billable. Each request creates a separate enrollment: there is no idempotency protection. After an ambiguous timeout, reconcile with thepalia before submitting again. Prefer this integration over activation codes unless instructed otherwise.
OAuth2AuthorizationBearer <token>Obtain a token at /v1/oauth/token, then send Authorization: Bearer <access_token>.
application/json- body
eMail*EmailParticipant's email address. Existing users are matched by email.
firstName*FirstnameParticipant's first name.
lastName*LastnameParticipant's last name.
offerId*OfferidOffer ID supplied by thepalia for this course and API environment.
uuidEnrollment created. Send the registration link to the participant.
application/json- response
courseEnrollmentId*CourseenrollmentidEnrollment ID used for magic links, progress, and cancellation.
uuidregistrationUrl*RegistrationurlRegistration link to send to the participant. Valid for 31 days.
userId*UseridParticipant ID. Store with your customer or order for support.
uuidcurl -X POST 'https://api.staging.thepalia.de/v1/course-enrollments' \ -H 'Content-Type: application/json' \ -d '{ "eMail": "alex@example.com", "firstName": "Alex", "lastName": "Example", "offerId": "11111111-1111-4111-8111-111111111111"}'{ "courseEnrollmentId": "33333333-3333-4333-8333-333333333333", "registrationUrl": "https://thepalia.app/enrollment/registration?enrollmentId=33333333-3333-4333-8333-333333333333", "userId": "22222222-2222-4222-8222-222222222222"}