---
title: "Token Migration Apply"
method: POST
path: "/authz/token-migration/apply"
---

# Token Migration Apply

`POST /authz/token-migration/apply`

## Request

- Base URL: `https://api-docs.session-exchange.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.session-exchange.com/authz/token-migration/apply`
- Auth: none declared

Mint a ge_tok_ replacement for ONE legacy token (plaintext returned
once). Stamps superseded_by on the legacy record; does NOT revoke it.

## Request body

- TokenMigrationApplyRequest
  - `legacy_kind` string, required: 'emit' or 'read'
  - `legacy_id` string, required: emitter_token_id or read_token_id to replace

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/session-exchange/apis/a4sx.md) · [All operations](https://skmtc.dev/session-exchange/apis/a4sx/llms.txt) · [OpenAPI document](https://skmtc.dev/session-exchange/apis/a4sx/revisions/abaefc33dfc7?raw)
