StarSling
APIAuthentication

Start the device flow

Request a device and user code Follow [rfc8628#section-3.2](https://datatracker.ietf.org/doc/html/rfc8628#section-3.2)

View Markdown
POST/api/auth/device/code

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/auth/device/code" \  -H "Content-Type: application/json" \  -d '{    "client_id": "string"  }'
{  "device_code": "5f1c9d0e8b3a4c27",  "user_code": "8226-T2GH",  "verification_uri": "https://runners.starsling.dev/cli-login",  "verification_uri_complete": "https://runners.starsling.dev/cli-login?user_code=8226-T2GH",  "expires_in": 1800,  "interval": 5}