---
title: "Mint a Gmail-embed token"
method: POST
path: "/v1/embed-token"
tags: ["Templates"]
---

# Mint a Gmail-embed token

`POST /v1/embed-token`

## Request

- Base URL: `https://app.getdealboard.com`
- URL: `https://app.getdealboard.com/v1/embed-token`
- Auth: HTTP bearer

Mints a short-lived (10-minute) single-purpose token that the Dealboard for Gmail extension redeems at /api/embed/start to bootstrap an app session inside its sidebar iframe. The session belongs to the API key's creator, is re-checked against team membership at redemption, and is set as a partitioned cookie scoped to the Gmail embed only.

## Response `200`

OK

- object
  - `token` string, required
  - `expires_at` string, date-time, required

## Other responses

- `401`: Missing or invalid credential.

---

[API](https://skmtc.dev/getdealboard/apis/dealboard-api.md) · [All operations](https://skmtc.dev/getdealboard/apis/dealboard-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getdealboard/apis/dealboard-api/revisions/4066bf9d265e?raw)
