LaTeX API
Apiaccount

Exchange an approved device code for a token

POST
/v1/auth/device/token

Poll every interval seconds. While pending the response is 428 with code authorization_pending (or slow_down). Denied → 400 access_denied; expired or reused → 400 expired_token.

Request Body

application/json
  1. body
deviceCode*string
Length20 <= length <= 200

Response Body

Approved

application/json
  1. response
token*string
tokenId*string
name*string
expiresAt?string
user*|null
Example Request
curl -X POST 'https://latex-api.crafter.run/v1/auth/device/token' \  -H 'Content-Type: application/json' \  -d '{  "deviceCode": "stringstringstringst"}'
Example Response
{  "token": "string",  "tokenId": "string",  "name": "string",  "expiresAt": "string",  "user": {    "id": "string",    "email": "string"  }}