---
title: "Device Token"
method: POST
path: "/auth/device/token"
tags: ["authentication"]
---

# Device Token

`POST /auth/device/token`

## Request

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

## Request body

- DeviceTokenRequest
  - `device_code` string, required

## Response `200`

Successful Response

- AuthResponse: Signup may require OTP; login returns JWT when credentials are valid.
  - `access_token` string, nullable
  - `token_type` string
  - `requires_otp` boolean
  - `email` string, nullable
  - `verification_email_delivered` boolean, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
