curl --request POST \
--url https://apix.us.amity.co/v1/notification \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"deviceId": "<string>",
"platform": "android",
"token": "<string>",
"userId": "<string>",
"provider": "<string>"
}
'{
"status": "<string>",
"data": {}
}Register a device to a notification service provider.
curl --request POST \
--url https://apix.us.amity.co/v1/notification \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"deviceId": "<string>",
"platform": "android",
"token": "<string>",
"userId": "<string>",
"provider": "<string>"
}
'{
"status": "<string>",
"data": {}
}Information required to register a device for push notifications
Unique identifier for the device
150Operating system platform of the device
android, ios Device token for push notification. For iOS, token must be ≤ 400 characters and in hexadecimal format
1000Identifier of the user associated with this device
Push notification service provider