FruxonDocs
ApiCliauth

Start a CLI login flow.

Unauthenticated — the CLI calls this before it has any credentials. Returns a one-time `grantCode` the CLI must keep secret and echo back on every poll, plus the URL it should open in the user's browser. Grant expires in 10 minutes.

POST
/v1/cliAuth:start

Response Body

curl -X POST "https://api.fruxon.com/v1/cliAuth:start"
{
  "grantCode": "string",
  "verificationUrl": "string",
  "expiresInSeconds": 0,
  "pollIntervalSeconds": 0
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}