Create an activation code
Legacy integration
Deprecated
Legacy integration. Create an activation code and registration URL for the supplied participant and offer. Use this integration only if thepalia explicitly tells you to; normally create a course enrollment instead. The offer must belong to your partner account and match the API environment. Each request generates a new code, so do not blindly repeat an uncertain request.
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.
uuidActivation code created.
application/json- response
code*CodeActivation code to give to the participant for the agreed integration.
registrationUrl*RegistrationurlRegistration URL containing the activation code.
curl -X POST 'https://api.staging.thepalia.de/v1/activation-codes' \ -H 'Content-Type: application/json' \ -d '{ "eMail": "alex@example.com", "firstName": "Alex", "lastName": "Example", "offerId": "11111111-1111-4111-8111-111111111111"}'{ "code": "EXAMPLE-CODE", "registrationUrl": "https://thepalia.app/courses/register?activationCode=EXAMPLE-CODE&email=alex%40example.com&firstName=Alex&lastName=Example"}