POST
/
notification
/
add-device
curl --request POST \
  --url https://api.eka.care/notification/add-device \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "devicePayload": {
    "app-id": "123",
    "app-platform": "android",
    "app-version": "1571",
    "did": "aa8650d03",
    "fcm-id": "fr3Ybq-2QHW_Jp:CivqQlS6tZZZ",
    "fid": "frbq-2Qkh",
    "lang": "en",
    "os-version": 20,
    "user-hash": "user123"
  }
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

The API requires a Bearer token in the Authorization header for authentication.

Body

application/json

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"
  }
} ```
devicePayload
object

Response

200
application/json
Successful response

The response is of type object.