---
title: "Create Identity Token"
method: POST
path: "/v1/applications/{application_id}/tokens"
tags: ["Applications"]
---

# Create Identity Token

`POST /v1/applications/{application_id}/tokens`

Creates an identity token for a specific application. This token is used to initiate
an authentication flow for linking user identities to the application.

The callback URL must use HTTPS and is where the user will be redirected after authentication.

## Path parameters

- `application_id` string, uuid, required

## Request body

- CreateIdentityTokenRequestSchema
  - `callbackUrl` string, uri, required — The HTTPS URL where the user will be redirected after authentication. Must use HTTPS protocol.

## Response `201`

Identity token created successfully

- IdentityTokenResponseSchema
  - `data` object
    - `token` string — The generated identity token for authentication
    - `expires_at` string, date-time — The timestamp when the token expires
    - `token_hash` string — A hash of the token for verification purposes

## Other responses

- `400` — Invalid request - callbackUrl must be a valid HTTPS URL
- `404` — Application not found
- `500` — Failed to create identity token

## Changes

- **2026-01-04** `611c70933b3d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/changes/v1/applications/:application_id/tokens/post.md)

---

[API](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api.md) · [All operations](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anchorbrowser/anchorbrowser-api/revisions/d0f5aa64f9f4/schema)
