Udon is under active development. Documentation not final.
udonudon
Pairing

Claim a pairing code

Exchanges a pairing secret for a long-lived device token. Unauthenticated by necessity and rate limited hard. Wrong, expired, and already-claimed codes all answer identically, so a caller with no credential learns nothing from the difference.

POST
/api/pair/claim

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/pair/claim" \  -H "Content-Type: application/json" \  -d '{    "secret": "string"  }'
{  "token": "string",  "expiresAt": "2019-08-24T14:15:22Z",  "device": {    "id": "string",    "name": "string",    "platform": "string",    "createdAt": "2019-08-24T14:15:22Z",    "lastSeenAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "current": true  },  "user": {    "id": "string",    "username": "string",    "role": "viewer",    "disabled": true,    "twoFactor": true  },  "server": {    "serverId": "string",    "serverName": "string",    "version": "string"  }}

Ask AI

Answers from Udon's documentation.

Ask how to install Udon, run containers, or share folders.