# Partner API - [Getting started](/): Connect your checkout, register participants, and give customers access to their thepalia course. - [Authentication](/authentication): Obtain an access token, authenticate your requests, and reuse tokens safely. - [Rate limits & retries](/rate-limits): Cache access tokens, respect token issuance limits, and avoid duplicate enrollments. - **Guides** - [Create a course enrollment](/guides/create-enrollment): Connect your checkout to thepalia and send participants their registration link. - [Open a course with a magic link](/guides/magic-link): Add a course-access button to your app or customer account area. - [Set up Stripe payment links](/guides/stripe-payment-link): Sell your course without a custom shop integration and send course access automatically. - **API reference** - O Auth - [Obtain an API access token](/reference/oauth/get_token_for_credentials): Exchange the client_id and client_secret supplied by thepalia for a Bearer token valid for 24 hours. Reuse it in the Authorization header until expiry. Credential issuance is limited to 20 requests per minute per client IP. JSON, URL-encoded form, multipart form, and HTTP Basic credentials are accepted. With HTTP Basic, send Authorization: Basic base64(client_id:client_secret); no body is needed. Keep credentials in your server, never in participant-facing browser code. - Course Enrollments - [Create a course enrollment](/reference/courseenrollments/create_course_enrollment_external): 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. - [Cancel a course enrollment](/reference/courseenrollments/delete_course_enrollment_external_by_enrollment_id): Delete an enrollment belonging to your partner account using its courseEnrollmentId. This removes the enrollment and course access; it does not refund a payment in your checkout system. A successful response is HTTP 204 with no body. A missing or already deleted enrollment returns 404. - [Generate a course login link](/reference/courseenrollments/get_course_enrollment_magic_link_by_enrollment_id): 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. - [Read enrollment progress](/reference/courseenrollments/get_course_enrollment_progress_by_enrollment_id): Read progress for an enrollment belonging to your partner account using its courseEnrollmentId. Counts and durations refer to sections and units in the current course. Dates describe the access period and completion state; completionDate and lastSectionCompletedAt may be null. This request does not change the enrollment. - Activation Codes - [Create an activation code](/reference/activationcodes/generate_activation_code): 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. - Info - [List health-insurance coverages](/reference/info/get_health_insurance_coverages): List the configured health insurers and their course reimbursement information. This endpoint is public and does not require an access token. Entries contain a coverage percentage, a maximum reimbursement amount in euros, and a link to the insurer's information. Use the insurer's current terms to confirm eligibility. ## Machine-readable documentation - [Complete documentation](/llms-full.txt) - [Public OpenAPI contract](/openapi.json) Use staging for development and testing. Activation codes are legacy.