POST
/
notification
/
v1
/
notify
curl --request POST \
  --url https://api.eka.care/notification/v1/notify \
  --header 'Content-Type: application/json' \
  --header 'auth: <api-key>' \
  --data '{
  "partner_payload": {
    "partner_doctor_id": "test-p1",
    "message": {
      "title": "test title",
      "body": "test body",
      "img": "img url"
    },
    "landing_page": "q",
    "params": {
      "action": "move",
      "aid": "12345",
      "status": "confirmed"
    }
  }
}'
{
  "status": "success",
  "message": "Notification sent successfully."
}

Authorizations

auth
string
header
required

The API requires the following auth in headers for authentication.

Body

application/json
Notification payload
partner_payload
object
required

Response

200
application/json
Webhook registered successfully.
status
string

The status of the notification.

message
string

The message for the notification.