---
search:
  tags:
    - CliDeviceAuth
    - GET
seo:
  description: >-
    Server-sent events that signal approval or denial of a pending device…
    Reference for the GET /auth/cli/device/events endpoint in the varsafe API.
sidebar:
  label: Stream device-approval events
  badge: GET
title: Stream device-approval events
type: openapi-operation
---
Server-sent events that signal approval or denial of a pending device authorization, so a client can stop polling immediately instead of waiting for its next interval.

`GET /auth/cli/device/events`

**Responses**

- `200` — An event stream. Each event is named \`connected\`, \`approved\` or \`denied\`, and its data line is JSON: \`{"event": "\<name\>"}\`, plus \`email\` on a decision.
- `400` — The request failed validation. \`field\` names the offending input.
- `401` — No credential was presented, or it is invalid or revoked.
- `403` — The credential is valid but lacks the required scope, role or team access.
- `404` — The resource does not exist, or is not visible to this credential.
- `429` — Rate limited. Retry after the interval named in the response.
- `500` — Unexpected server error. The body never carries internal detail.

Response example, 200:

```json
"string"
```
