POST /auth/cli/poll

Poll a device-code auth flow for its token.

Unauthenticated; the device code identifies the flow.

curl -X POST "https://api.ellipsis.dev/v1/auth/cli/poll" \
  -H "Authorization: Bearer $ELLIPSIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"device_code":"..."}'
{
  "access_token": "string",
  "status": "string"
}
{
  "properties": {
    "device_code": {
      "type": "string"
    }
  },
  "required": [
    "device_code"
  ],
  "type": "object"
}
{
  "properties": {
    "access_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string"
    }
  },
  "required": [
    "status"
  ],
  "type": "object"
}

Request

Responses

On this page

No Headings
Schedule a demo