---
title: "Create a short lived, single use embed token for the logged in user"
method: POST
path: "/v1/auth/embed/token/"
---

# Create a short lived, single use embed token for the logged in user

`POST /v1/auth/embed/token/`

## Request

- Base URL: `https://app.iconik.io/API/auth`
- URL: `https://app.iconik.io/API/auth/v1/auth/embed/token/`
- Auth: none declared. Required headers: `App-ID`, `Auth-Token`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-auth/docs/v1/auth/embed/token/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `App-ID` string, required
- `Auth-Token` string, required

## Request body

- EmbedTokenRequestSchema
  - `app_id` string, uuid
  - `app_name` string

## Response `201`

Returns an embed token

- EmbedTokenResponseSchema
  - `app_id` string
  - `embed_token` string
  - `expires` string

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-auth.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-auth/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-auth/revisions/5dde985bb742?raw)
