---
title: "Exchange Token"
method: POST
path: "/v1/auth/token"
tags: ["v1", "v1-auth"]
---

# Exchange Token

`POST /v1/auth/token`

## Request

- Base URL: `https://api.enconvert.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enconvert.com/v1/auth/token`
- Auth: none declared

Exchange public API key for short-lived JWT.
Turnstile verification required only for widget-based requests.
Also sets a refresh token in HTTP-only cookie for seamless token renewal.

## Headers

- `X-API-Key` string, nullable
- `authorization` string, nullable

## Request body

- TokenRequest
  - `turnstile_token` string, nullable

## Response `200`

Successful Response

- TokenResponse
  - `token` string, required
  - `token_type` string
  - `expires_in` integer, required

## Other responses

- `422`: Validation Error

---

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