Skip to main content
POST
/
cli
Request device code
curl --request POST \
  --url https://api.example.com/cli

Request

{
  "action": "device-code"
}

Response

{
  "device_code": "dc_abc123",
  "user_code": "ABCD-1234",
  "verification_url": "https://celerflow.vercel.app/cli-auth",
  "expires_in": 900,
  "interval": 5
}
FieldDescription
device_codeUsed to poll for the token.
user_codeDisplayed to the user.
verification_urlWhere the user signs in and enters the code.
expires_inValidity in seconds (15 minutes).
intervalMinimum seconds between poll attempts.