thepaliaDevelopers
Course Enrollments

Create a course enrollment

POST
/v1/course-enrollments

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.

Authorization

OAuth2
headerAuthorizationBearer <token>

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

Request Body

application/json
  1. body
eMail*Email

Participant's email address. Existing users are matched by email.

firstName*Firstname

Participant's first name.

lastName*Lastname

Participant's last name.

offerId*Offerid

Offer ID supplied by thepalia for this course and API environment.

Formatuuid

Response Body

Enrollment created. Send the registration link to the participant.

application/json
  1. response
courseEnrollmentId*Courseenrollmentid

Enrollment ID used for magic links, progress, and cancellation.

Formatuuid
registrationUrl*Registrationurl

Registration link to send to the participant. Valid for 31 days.

userId*Userid

Participant ID. Store with your customer or order for support.

Formatuuid
Example Request
curl -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"}'
Example Response
{  "courseEnrollmentId": "33333333-3333-4333-8333-333333333333",  "registrationUrl": "https://thepalia.app/enrollment/registration?enrollmentId=33333333-3333-4333-8333-333333333333",  "userId": "22222222-2222-4222-8222-222222222222"}