FruxonDocs
ApiDevice authorization

Poll for grant approval.

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

GET
/v1/deviceAuthorizations/{deviceCode}

Path Parameters

deviceCode*string

The high-entropy device code returned by create.

Response Body

curl -X GET "https://api.fruxon.com/v1/deviceAuthorizations/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
}