dev.knotless.registerPush

Keeps, on the appview, a device to send the asking account's notifications to, from then on. A device already registered to another account moves to this one.

Details · procedure
Kindprocedure
Authorityknotless.dev
Commit rev3n23aipedasvp
Indexed

Showing version bafyreifaeucpi333fi2poh3q4v2ums6lzif7x3fznjffahevoh5vtxfyz4. Show the latest

Procedure

procedure · POST

Input

application/json

environment

requiredstring

Which of Apple's push services issued the token.

  • maxLength: 20
  • knownValues: production | sandbox

key

string

A 32-byte AES-256-GCM key the device made, in base64. A private repository's notifications are sealed with it, for the app to open on the device; to a device without one, they name nothing.

  • maxLength: 100

token

requiredstring

The device's push token from Apple, in hexadecimal.

  • maxLength: 200

Output

application/json

Errors

InvalidRequest

The token is not hexadecimal, the environment is not one this appview knows, or the key is not 32 bytes in base64.

AuthenticationRequired

No account is asking.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.