push-notifications
push-notifications

Subscribe Push

Register a push subscription for the current user.

post/api/push/subscribe

Request

  • Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.dialogbrain.com/api/push/subscribe
  • Auth: none declared

Request body

kind'webpush' | 'fcm' | 'apns'
endpointstring nullable
tokenstring nullable
voip_tokenstring nullable
platform'ios' | 'android' nullable
user_agentstring nullable
device_namestring nullable

Response

Successful Response

idinteger required
kindstring required
endpointstring required
device_namestring nullable
is_activeboolean required
created_atstring required
last_used_atstring nullable

Changes

No recorded changes to this operation across all 5 revisions of this API.