---
title: "Exchange an embed token for an iconik access token"
method: POST
path: "/v1/auth/embed/token/exchange/"
---

# Exchange an embed token for an iconik access token

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

## Request

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

## Query parameters

- `format` string

## Request body

- TokenExchangeRequestSchema
  - `embed_token` string, required
  - `requested_scopes` string[]

## Response `200`

Returns an access token and a refresh token

- CuttingRoomTokenResponseSchema
  - `access_token` string
  - `expires_in` string
  - `refresh_expires_in` string
  - `refresh_token` string
  - `token_type` 'Bearer'

## 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)
