Add a registration or device token
POST https://api-{{APP_ID}}.calls.sendbird.com/v1/users/{user_id}/push/{token_type}
Add a registration or device token
Adds a registration or device token of a user for push notification service. Depending on which push service you are using, you can pass one of two values in the token_type parameter: apns_voip, or fcm_voip. An FCM registration token and an APNs device token allow identification of each client app instance on each device and are generated and registered by Android and iOS apps through the corresponding SDKs. Use this method if you need to register a token via your own server.
Note: For APNs, VoIP push tokens should be registered to receive incoming calls.
For more information, visit:
https://sendbird.com/docs/calls/v1/platform-api/guides/user#2-add-a-registration-or-device-token
URL Parameters
Required
user_id
- Type: string
- Description: Specifies the unique ID of the user to delete.
token_type
- Type: string
- Description: Specifies the type of the push token. Acceptable values are apns_voip and fcm_voip.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
token | string | REQUIRED: Specifies the value of the push token to add to Sendbird server. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Api-Token | string |