# app.didpic.notification.registerPush

> Published by [lexicons.didpic.app](https://lexicon.garden/identity/did:plc:an2jtp4jgkkbtmwfzhpbxawd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.registerPush)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.registerPush/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.registerPush/examples)

## Definitions

### `app.didpic.notification.registerPush`

**Type**: `procedure`

Bind a device push token to the authenticated viewer.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `token` | `string` | Yes |  |
| `platform` | `string` | Yes |  |
| `accountsOnDevice` | `array` | No | DIDs signed in on this device, for binding reconciliation. |

## Raw Schema

```json
{
  "id": "app.didpic.notification.registerPush",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "token",
            "platform"
          ],
          "properties": {
            "token": {
              "type": "string"
            },
            "platform": {
              "type": "string",
              "knownValues": [
                "ios",
                "android"
              ]
            },
            "accountsOnDevice": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "did"
              },
              "description": "DIDs signed in on this device, for binding reconciliation."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Bind a device push token to the authenticated viewer."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
