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.

Repository @brookie.blog did:plc:v46ojbiop5ebs5h7gaomixcc namespace authority
Details · procedure
Kindprocedure
Authorityatprotify.brookie.blog
Commit rev3n2pszsnv2f25
Indexed
cid bafyreiaevegkn2i6dr5uqy65bdm66dy6qvjb5idzvqcot4ityeq57s6gjq

Checks

Valid
  • unlimited-string defs.main.input.schema.properties.appIdNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.input.schema.properties.platformNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$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
}