---
title: "POST /api/auth/exchange-token"
method: POST
path: "/api/auth/exchange-token"
tags: ["api", "auth"]
---

# POST /api/auth/exchange-token

`POST /api/auth/exchange-token`

Create an exchange token

## Request body

- POSTAuthCreateAnExchangeToken
  - `resourceType` 'customer', required — The type of the resource to create an exchange token for
  - `customerId` string, required — The id of the customer to create an exchange token for

## Response `200`

OK

- POSTAuthCreateAnExchangeToken200Response
  - `exchangeToken` string, required
  - `expiresIn` number, float, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/vivenu/apis/vivenu-api.md) · [All operations](https://skmtc.net/vivenu/apis/vivenu-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vivenu/vivenu-api/revisions/36be0dca14e7/schema)
