Skip to main content
POST
/
v1
/
cli
/
auth
/
device-code
Request a device authorization code
curl --request POST \
  --url https://api.strait.dev/v1/cli/auth/device-code
{
  "device_code": "<string>",
  "expires_in": 123,
  "interval": 123,
  "user_code": "<string>",
  "verification_url": "<string>",
  "$schema": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.strait.dev/llms.txt

Use this file to discover all available pages before exploring further.

Response

OK

device_code
string
required
expires_in
integer<int64>
required
interval
integer<int64>
required
user_code
string
required
verification_url
string
required
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://api.strait.dev/schemas/DeviceCodeResponse.json"