product:chat

Adds a new device to a user, if the same device already exists the call will have no effect

post/devices

Request

  • Base URL
    https://chat.stream-io-api.com
  • URL
    https://chat.stream-io-api.com/devices
  • Auth
    • API key in header Authorization and API key in query parameter api_key and API key in header Stream-Auth-Type
    • or API key in query parameter api_key and API key in header Stream-Auth-Type

Request body

hardware_idstring

Stable physical device identifier used to deduplicate pushes across push providers (e.g. APNs VoIP and Firebase on the same iOS device). Distinct from 'id', which is the push token.

idstring required

Device ID

push_provider'firebase' | 'apn' | 'huawei' | 'xiaomi' required

Push provider

push_provider_namestring

Push provider name

user_idstring

Server-side only. User ID which server acts upon

voip_tokenboolean

When true the token is for Apple VoIP push notifications

Response

Response

durationstring required

Duration of the request in milliseconds

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the new optional request property

    • info

      the request property /// became optional

    • info

      the request property /// became optional

    • info

      the request property /// became optional