# fyi.opensocial.describePush

> How this host sends alerts to people's devices (Web Push): the key a browser subscribes with, and, to someone signed in, how many of their devices it alerts.

- Kind: query
- Authority: opensocial.fyi
- Lexicon: 1
- Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.describePush)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.describePush/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.describePush/analytics)

## Query (`fyi.opensocial.describePush`)

Type: query · GET

### Output (application/json)

- `devices` (integer): To the caller, signed in: how many of their devices get alerts.
  - Constraints: minimum: 0
- `publicKey` (string, required): The host's VAPID public key, base64url.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "How this host sends alerts to people's devices (Web Push): the key a browser subscribes with, and, to someone signed in, how many of their devices it alerts.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "devices": {
              "description": "To the caller, signed in: how many of their devices get alerts.",
              "minimum": 0,
              "type": "integer"
            },
            "publicKey": {
              "description": "The host's VAPID public key, base64url.",
              "type": "string"
            }
          },
          "required": [
            "publicKey"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.describePush",
  "lexicon": 1
}
```
