so.sprk.notification.registerPush
Register to receive push notifications, via a specified service, for the requesting account. Requires auth.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | notification.sprk.so |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.appIdNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.platformNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.tokenNo maxLength, maxGraphemes or format limits this string.endpoint-output-undefineddefs.mainNo output is defined. Endpoints should define one, even an empty one.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Register to receive push notifications, via a specified service, for the requesting account. Requires auth.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"appId": {
"type": "string"
},
"platform": {
"knownValues": [
"ios",
"android",
"web"
],
"type": "string"
},
"serviceDid": {
"format": "did",
"type": "string"
},
"token": {
"type": "string"
}
},
"required": [
"serviceDid",
"token",
"platform",
"appId"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "so.sprk.notification.registerPush",
"lexicon": 1
}