# town.delve.notification.registerPush

> Published by [delve.town](https://lexicon.garden/identity/did:plc:qzqct2rrq4u2gmy5g3mjxske)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.notification.registerPush)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.notification.registerPush/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.notification.registerPush/examples)

## Definitions

### `town.delve.notification.registerPush`

**Type**: `procedure`

Register to receive push notifications, via a specified service, for the requesting account. Requires auth.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `ageRestricted` | `boolean` | No | Set to true when the actor is age restricted |
| `appId` | `string` | Yes |  |
| `platform` | `string` | Yes |  |
| `serviceDid` | `string` (did) | Yes |  |
| `token` | `string` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Register to receive push notifications, via a specified service, for the requesting account. Requires auth.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "ageRestricted": {
              "description": "Set to true when the actor is age restricted",
              "type": "boolean"
            },
            "appId": {
              "type": "string"
            },
            "platform": {
              "knownValues": [
                "ios",
                "android",
                "web"
              ],
              "type": "string"
            },
            "serviceDid": {
              "format": "did",
              "type": "string"
            },
            "token": {
              "type": "string"
            }
          },
          "required": [
            "serviceDid",
            "token",
            "platform",
            "appId"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "town.delve.notification.registerPush",
  "lexicon": 1
}
```
