blog.brookie.atprotify.registerPush

Register a device to receive push notifications for the authenticated account, or update its preferences. Requires service auth bound to this method. Calling it again for the same platform and token updates the registration.

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

Showing version bafyreifkmpvcictqqb4af4wdtntmxubqhumurvvd6myizeor3noohvwuca. Show the latest

cid bafyreifkmpvcictqqb4af4wdtntmxubqhumurvvd6myizeor3noohvwuca

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Register a device to receive push notifications for the authenticated account, or update its preferences. Requires service auth bound to this method. Calling it again for the same platform and token updates the registration.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "appId": {
              "description": "The app's bundle ID for APNs. Must be one the relay allows.",
              "type": "string"
            },
            "disabledRules": {
              "description": "Rule IDs this device doesn't want. Omit to keep the current list.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "followsOnly": {
              "description": "Rule IDs this device wants only from accounts its owner follows. Needs a relay with a follows lookup (listRules says). Omit to keep the current list.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "mutedActors": {
              "description": "Accounts whose activity never notifies this device. Omit to keep the current list.",
              "items": {
                "format": "did",
                "type": "string"
              },
              "maxLength": 10000,
              "type": "array"
            },
            "platform": {
              "knownValues": [
                "apns",
                "fcm",
                "ntfy"
              ],
              "type": "string"
            },
            "sandbox": {
              "description": "Use the APNs development environment (debug builds).",
              "type": "boolean"
            },
            "subscriptions": {
              "description": "Accounts whose new records this device wants, for rules with subscribers. Omit to keep the current list.",
              "items": {
                "ref": "blog.brookie.atprotify.getPreferences#subscription",
                "type": "ref"
              },
              "maxLength": 10000,
              "type": "array"
            },
            "token": {
              "description": "APNs device token (hex), FCM registration token, or ntfy topic.",
              "maxLength": 4096,
              "type": "string"
            }
          },
          "required": [
            "platform",
            "token"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "blog.brookie.atprotify.getPreferences#preferences",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "blog.brookie.atprotify.registerPush",
  "lexicon": 1
}