FruxonDocs
ApiCliauth

Poll for grant approval.

Unauthenticated — looked up by grantCode alone. Returns one of: <list type="bullet"><item>202 Accepted — grant still pending; CLI keeps polling.</item><item>200 OK + Fruxon.Model.CliAuth.CliAuthPollResponse — approved; response carries the minted API key + tenant. Key is wiped from the row after this call; the CLI's next poll returns 410 (consumed).</item><item>410 Gone — expired or already consumed; CLI must restart.</item></list>

GET
/v1/cliAuth/{grantCode}

Path Parameters

grantCode*string

The one-time grant code returned by :start.

Response Body

curl -X GET "https://api.fruxon.com/v1/cliAuth/string"
{
  "apiKey": "string",
  "tenantId": "string",
  "tenantSlug": "string",
  "tenantName": "string"
}
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}