GET /api/client_devices

show all devices registered to the current logged in user

Success Response Code: 200

Response Fields

client_devices[registration_id] registration ID to identify this device for push notifications String
client_devices[push_enabled] whether any pushes go to this device Boolean
client_devices[push_conversation_activity] whether this device should receive push notifications for conversations Boolean
client_devices[push_mentions] whether this device should receive push notifications for @ mentions Boolean
client_devices[push_announcements] whether this device should receive push notifications for broadcast messages Boolean
client_devices[push_replies] whether this device should receive push notifications for message replies Boolean
client_devices[push_hashtags] whether this device should receive push notifications for subscribed hashtags Boolean
client_devices[notification_type] the types of notifications this client receives: 'main' or 'conversations' String
client_devices[client_id] the registered client_id relating to this device Integer
client_devices[os_version] the OS version of the registered device (if applicable) String
client_devices[client_version] the version of the app on the registered device (if applicable) String

Example Curl Commands

curl -X GET -v --basic -u "emily@socialcast.com:demo" https://demo.socialcast.com/api/client_devices.json

Examples

GET /api/client_devices.json
200
{
  "client_devices": [
    {
      "registration_id": "T√łken!1",
      "push_enabled": true,
      "push_mentions": true,
      "push_conversation_activity": true,
      "push_announcements": true,
      "push_replies": false,
      "push_hashtags": true,
      "notification_type": "main",
      "client_id": 1,
      "os_version": null,
      "client_version": null
    }
  ]
}