---
title: "Mint a member-portal embed URL"
method: POST
path: "/api/v1/courses/{id}/embed-token"
tags: ["Courses"]
---

# Mint a member-portal embed URL

`POST /api/v1/courses/{id}/embed-token`

## Request

- Base URL: `https://mailinapp.com`
- URL: `https://mailinapp.com/api/v1/courses/{id}/embed-token`
- Auth: HTTP bearer

A short-lived portal URL that signs the member in, for an iframe. The member must currently have access.

## Path parameters

- `id` string, required

## Request body

- object
  - `email` string, email, required

## Response `200`

The portal URL

- object
  - `portalUrl` string, uri, required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key
- `403`: Not included in the plan, or the member has no access
- `404`: Not found, or not this account's
- `409`: The course's membership has no portal
- `429`: Too many requests for this key

---

[API](https://skmtc.dev/mailinapp/apis/mailinapp-api.md) · [All operations](https://skmtc.dev/mailinapp/apis/mailinapp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mailinapp/apis/mailinapp-api/revisions/61016f797884?raw)
