# social.grain.notification.unregisterPush

> Stop sending pushes to a device token, as app.bsky.notification.unregisterPush does. Requires auth.

- Kind: procedure
- Authority: notification.grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.notification.unregisterPush)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.notification.unregisterPush/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.notification.unregisterPush/analytics)

## Procedure (`social.grain.notification.unregisterPush`)

Type: procedure · POST

### Input (application/json)

- `appId` (string, required): The app's bundle or package id.
  - Constraints: maxLength: 256
- `platform` (string, required)
  - Constraints: knownValues: ios | android | web
- `serviceDid` (string · did, required): The service that sends the pushes: this server's DID.
- `token` (string, required)
  - Constraints: maxLength: 4096

### Output (application/json)


## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Stop sending pushes to a device token, as app.bsky.notification.unregisterPush does. Requires auth.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "appId": {
              "description": "The app's bundle or package id.",
              "maxLength": 256,
              "type": "string"
            },
            "platform": {
              "knownValues": [
                "ios",
                "android",
                "web"
              ],
              "type": "string"
            },
            "serviceDid": {
              "description": "The service that sends the pushes: this server's DID.",
              "format": "did",
              "type": "string"
            },
            "token": {
              "maxLength": 4096,
              "type": "string"
            }
          },
          "required": [
            "serviceDid",
            "token",
            "platform",
            "appId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.grain.notification.unregisterPush",
  "lexicon": 1
}
```
