Skip to content
Navigation

Register a device for push notifications

Register an FCM registration token for the subject user.

Idempotent — re-sending the same token refreshes it. If the token was previously registered to a different user (the device was handed over, or someone logged out and back in), ownership moves to the subject user so the previous owner stops receiving that device's notifications.

POST
https://truememory-api.mvstg.com/notifications/devices
View as Markdown

Authorization

  • HTTPBearerHTTPrequired

Header parameters

  • X-App-Idoptional

    One of the following:

    • string
    • null
  • X-On-Behalf-Ofoptional

    One of the following:

    • string
    • null
  • X-External-User-Idoptional

    One of the following:

    • string
    • null

Request bodyJSONrequired

  • tokenstringrequired

    FCM registration token.

    maxLength: 4096 · minLength: 1
  • platformoptional

    Informational only — FCM routes by token, not by this field.

    One of the following:

    • string
    • null

Returns

201

Successful Response

JSON
  • idstringrequired
  • app_idstringrequired
  • user_idstringrequired
  • tokenstringrequired
  • created_atstringrequired
    format: date-time
  • updated_atstringrequired
    format: date-time
  • platformoptional

    One of the following:

    • string
    • null

422

Validation Error
JSON
  • detailoptionalarray ofobject
    • locarray ofrequired

      One of the following:

      • string
      • integer
    • msgstringrequired
    • typestringrequired
    • inputoptionalunknown
    • ctxoptionalobject

Type to search…

↑↓ navigate↵ selectEsc close