# blog.brookie.atprotify.unregisterPush

> Stop sending push notifications for an account to a device. Other accounts on the same device are unaffected. Send a service-auth token bound to this method, or no token and the account's did: knowing the device token is proof enough to take it off the relay, so an app can still unregister an account whose session has expired.

- Kind: procedure
- Authority: atprotify.brookie.blog
- Lexicon: 1
- Published by [brookie.blog](https://lexicon.garden/identity/did:plc:v46ojbiop5ebs5h7gaomixcc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:v46ojbiop5ebs5h7gaomixcc/blog.brookie.atprotify.unregisterPush)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:v46ojbiop5ebs5h7gaomixcc/blog.brookie.atprotify.unregisterPush/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:v46ojbiop5ebs5h7gaomixcc/blog.brookie.atprotify.unregisterPush/analytics)

## Procedure (`blog.brookie.atprotify.unregisterPush`)

Type: procedure · POST

### Input (application/json)

- `appId` (string)
- `did` (string · did): The account to remove, when calling without a service-auth token.
- `platform` (string, required)
- `token` (string, required)
  - Constraints: maxLength: 4096

### Output (application/json)


## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Stop sending push notifications for an account to a device. Other accounts on the same device are unaffected. Send a service-auth token bound to this method, or no token and the account's did: knowing the device token is proof enough to take it off the relay, so an app can still unregister an account whose session has expired.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "appId": {
              "type": "string"
            },
            "did": {
              "description": "The account to remove, when calling without a service-auth token.",
              "format": "did",
              "type": "string"
            },
            "platform": {
              "type": "string"
            },
            "token": {
              "maxLength": 4096,
              "type": "string"
            }
          },
          "required": [
            "platform",
            "token"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "blog.brookie.atprotify.unregisterPush",
  "lexicon": 1
}
```
