# us.off-the-clock.push.getPushSettings

> Whether this AppView sends Web Push, its VAPID public key, and the viewer's devices and push preferences (D63).

- Kind: query
- Authority: push.off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.push.getPushSettings)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.push.getPushSettings/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.push.getPushSettings/analytics)

## Query (`us.off-the-clock.push.getPushSettings`)

Type: query · GET

### Output (application/json)

- `devices` (array, required)
  - `items` (ref)
    - Reference: `#device`
- `kinds` (array, required)
  - `items` (ref)
    - Reference: `#kindSetting`
- `mutedSpaces` (array, required)
  - `items` (string): A pair's TID.
- `publicKey` (string): The VAPID public key as base64url, the applicationServerKey browsers subscribe with; absent with push off.
- `pushEnabled` (boolean, required)

### Errors

- `NotSpaceMember`: No description in schema.

## #device (`us.off-the-clock.push.getPushSettings#device`)

Type: object

One of the viewer's subscriptions. The endpoint itself is never answered.

### Properties

- `createdAt` (string · datetime, required)
- `host` (string, required): The push service's host.
- `id` (string, required): An opaque name for the subscription, for unregisterPushSubscription.
- `label` (string): What the browser called itself, such as iPhone or Mac · Firefox.
  - Constraints: maxLength: 64
- `lastSuccessAt` (string · datetime)

## #kindSetting (`us.off-the-clock.push.getPushSettings#kindSetting`)

Type: object

### Properties

- `enabled` (boolean, required)
- `kind` (string, required)
  - Constraints: knownValues: reply | mention | quote | rsvp | event-status | like | repost | vote

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "device": {
      "description": "One of the viewer's subscriptions. The endpoint itself is never answered.",
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "host": {
          "description": "The push service's host.",
          "type": "string"
        },
        "id": {
          "description": "An opaque name for the subscription, for unregisterPushSubscription.",
          "type": "string"
        },
        "label": {
          "description": "What the browser called itself, such as iPhone or Mac · Firefox.",
          "maxLength": 64,
          "type": "string"
        },
        "lastSuccessAt": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "id",
        "host",
        "createdAt"
      ],
      "type": "object"
    },
    "kindSetting": {
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "kind": {
          "knownValues": [
            "reply",
            "mention",
            "quote",
            "rsvp",
            "event-status",
            "like",
            "repost",
            "vote"
          ],
          "type": "string"
        }
      },
      "required": [
        "kind",
        "enabled"
      ],
      "type": "object"
    },
    "main": {
      "description": "Whether this AppView sends Web Push, its VAPID public key, and the viewer's devices and push preferences (D63).",
      "errors": [
        {
          "name": "NotSpaceMember"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "devices": {
              "items": {
                "ref": "#device",
                "type": "ref"
              },
              "type": "array"
            },
            "kinds": {
              "items": {
                "ref": "#kindSetting",
                "type": "ref"
              },
              "type": "array"
            },
            "mutedSpaces": {
              "items": {
                "description": "A pair's TID.",
                "type": "string"
              },
              "type": "array"
            },
            "publicKey": {
              "description": "The VAPID public key as base64url, the applicationServerKey browsers subscribe with; absent with push off.",
              "type": "string"
            },
            "pushEnabled": {
              "type": "boolean"
            }
          },
          "required": [
            "pushEnabled",
            "devices",
            "kinds",
            "mutedSpaces"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.push.getPushSettings",
  "lexicon": 1
}
```
