Used to get a list of the devices using your application. All devices may be returned or a list of devices matching supplied criteria are returned.

Examples

List all devices that were first registered on the platform on or after 00:00 GMT 1 Jan 2015 (using Unix time 1420070400) using pagination. For best results, we recommend setting a limit on your query. Send several requests to obtain the full list:

curl --request POST \
  --url https://external-api.xtremepush.com/api/external/list/device \
  --header 'content-type: application/json' \
  --data '{
    "apptoken": "YOUR_APPTOKEN",
    "condition": [
      ["create_time", ">=", "1420070400"]
    ],
    "offset": 0,
    "limit": 50
  }' 

Use pagination to get the most recently created device. Achieved by setting order to be descending (defaults to create time) and grabbing the top device using offset and limit:

curl --request POST \
  --url https://external-api.xtremepush.com/api/external/list/device \
  --header 'content-type: application/json' \
  --data '{
    "apptoken": "YOUR_APPTOKEN",
    "order": "id DESC",
    "offset": 0,
    "limit": 1
  }'
Language
Click Try It! to start a request and see the response here!