The Embed API lets your own backend register or enroll your own end users into a MailInApp course or webinar and embed the viewer in your app — without that user ever touching a MailInApp dashboard account.
Your end users are yours, not MailInApp's — they shouldn't have to create a separate account just to watch a course you're hosting on their behalf.
Your backend, your entitlement
POST /api/v1/courses/[id]/enroll grants or revokes course access for an email address, and POST /api/v1/webinars/[id]/register registers a webinar attendee — both authenticated with the same Bearer API key as the Send API. Your own billing or checkout system decides who's entitled; MailInApp just renders the result.
Embed the actual viewer
Once enrolled, POST /api/v1/courses/[id]/embed-token mints a short-lived signed token. Redirect your app's iframe or window at the returned URL, and it bootstraps a deterministic sign-in behind the scenes — the end user sees your app the whole time, never a MailInApp login.
Interactive emails around the registration, if you want them
A course or webinar's lifecycleBindings can point registered/reminder/enrolled/completed events at a studio project — a Meeting-link with the real Join button, a Countdown to start time. Falls back automatically to plain-text copy when nothing's bound, so opting in never breaks an existing setup.
Same key, its own quota
The Embed API shares the Send API's 60-requests-per-minute per-key limit, plus its own dedicated monthly call quota by plan — zero on Free/Starter, matching how the Send API itself is gated on those tiers.
Getting started
Mint an API key under Developers, call the register or enroll endpoint from your backend, then mint an embed token and redirect into it — see the Embed API quickstart for the full request shapes.