Create Devices - API

Last Updated 2021-09-15

Use the Devices API to attach a device to a user, so that later within Campaigns, you can send a message to that users device.


curl -X POST http://app.cloudmattr.com/api/v1/devices \
    -H "Accept: application/json" -H "Content-Type: application/json" \
    -H "Authorization: YOUR_API_KEY"


Parameters

  • user_id
  • device_type
  • device_id
  • payload


{
    "user_id": "abc123",
    "device_type": "android",
    "device_id": "Android - Samsung",
    "payload": {
         "device_token": "abc-token"
     }
}


  • Table of Contents

Was this page helpful? Yes No

Previous

Next

2021 © Powered by Cloudmattr