Call to add or register a device for notifications. This endpoint allows clients to register a device by providing its details such as device ID, FCM ID, app version, and other relevant information. The registered device will be used to send notifications. The request body must contain the device payload information.
The API requires a Bearer token in the Authorization header for authentication.
The request body must contain the device payload information. The format should be:
"devicePayload": {
"app-id": "string",
"app-platform": "string",
"app-version": "string",
"did": "string",
"fcm-id": "string",
"fid": "string",
"lang": "string",
"os-version": "integer",
"user-hash": "string"
}
} ```
Successful response
The response is of type object
.