# fyi.opensocial.registerPush

> Alert one of the caller's devices when something in their Activity is for them and they're not on any of their groups' sites: a browser's Web Push subscription, made with the key describePush gives.

- Kind: procedure
- 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.registerPush)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.registerPush/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.registerPush/analytics)

## Procedure (`fyi.opensocial.registerPush`)

Type: procedure · POST

### Input (application/json)

- `endpoint` (string · uri, required)
  - Constraints: maxLength: 2000
- `keys` (ref, required)
  - Reference: `#keys`

## #keys (`fyi.opensocial.registerPush#keys`)

Type: object

### Properties

- `auth` (string, required)
  - Constraints: maxLength: 100
- `p256dh` (string, required)
  - Constraints: maxLength: 200

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "keys": {
      "properties": {
        "auth": {
          "maxLength": 100,
          "type": "string"
        },
        "p256dh": {
          "maxLength": 200,
          "type": "string"
        }
      },
      "required": [
        "p256dh",
        "auth"
      ],
      "type": "object"
    },
    "main": {
      "description": "Alert one of the caller's devices when something in their Activity is for them and they're not on any of their groups' sites: a browser's Web Push subscription, made with the key describePush gives.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "endpoint": {
              "format": "uri",
              "maxLength": 2000,
              "type": "string"
            },
            "keys": {
              "ref": "#keys",
              "type": "ref"
            }
          },
          "required": [
            "endpoint",
            "keys"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.registerPush",
  "lexicon": 1
}
```
