Create destination

This API creates a message service destination. The following types are supported:

TypeProviderRequired Fields
emailsmtptype, body or message_template_id, deliver_to
smstwilio, yunpiantype, body, country_code, deliver_to
pushfcm, apnstype, app_id, body, deliver_to, meta_data
{
    "destination": {
        "type": "email",
        "body": "Your downstairs leak detector at 1234 Ayla Avenue has a low battery",
        "message_template_id": "TestTemplateId",
        "deliver_to": nulla,
        "contact_id" : 123,
        "title": "Hello Ayla User",
        "provider": "smtp",
        "user_message": "Hello Ayla User",
        "user_name": "Methew Hedan",
    "repeat_freq": 30
    }
}
{
  "destination": {
    "type": "sms",
    "body": "Leak detector battery is low.",
    "country_code": "+91",
    "deliver_to": "9100008888",
    "provider": "twilio",
    "repeat_freq": 30
  }
}
{
  "destination": {
    "type": "push",
    "app_id": "app_595860_0-sA-id",
    "body": "Leak detector battery is low.",
    "deliver_to": "18610E3F420EA0BAB6C2490B872DADB77BB3BAC80FC9A529FF48C2ADE28EC892",
    "meta_data": "push meta data",
    "provider": "fcm",
    "sound": "chime",
    "title": "Aura-App Notification",
    "repeat_freq": 30
  }
}
Language
Authentication
Header
Click Try It! to start a request and see the response here!