Apiaccount
Exchange an approved device code for a token
POST
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.
application/json- body
deviceCode*stringLength
20 <= length <= 200Approved
application/json- response
token*stringtokenId*stringname*stringexpiresAt?stringuser*|nullcurl -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" }}