StackMoreLayersДокументация
APIReference

Начать вход в sml через браузер

POST
/auth/device/code/

Creates a short-lived, single-use device authorization request bound to an S256 PKCE challenge. The high-entropy device_code is returned only to the CLI; the browser receives only the separate human-readable user_code.

Тело запроса

application/json

Типы TypeScript

Use the request body type in TypeScript.

Ответ

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/auth/device/code/" \  -H "Content-Type: application/json" \  -d '{    "code_challenge": "string",    "code_challenge_method": "S256",    "client_name": "sml CLI",    "scopes": [      "profile:read"    ]  }'
{  "device_code": "stringstringstringstringstringstringstrings",  "user_code": "string",  "verification_uri": "http://example.com",  "verification_uri_complete": "http://example.com",  "expires_in": 60,  "interval": 1}