Start a CLI device login
POST
Open a device login (RFC 8628). Show user_code and open verification_uri_complete in a browser, where an owner or admin of the workspace approves it; poll POST /api/v1/cli/device/token every interval seconds until expires_in. scopes asks for a key with exactly those scopes (omit it for the owner CLI set); members and unpublish scopes are never granted here.
application/json- body
client_name?|nullhost?|nullscopes?array<string>|Items
items <= 64Request fulfilled, document follows
application/json- response
device_code*stringexpires_in*integerinterval*integeruser_code*stringverification_uri*stringverification_uri_complete*stringcurl -X POST 'https://api.syndai.ai/api/v1/cli/device' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "device_code": "string", "expires_in": 0, "interval": 0, "user_code": "string", "verification_uri": "string", "verification_uri_complete": "string"}