Retrieve the list of devices an announcement is distributed to

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Get the individual Announcement distributed to device

Request URL

https://{server-hostname}:8383/api/v1/mdm/announcements/{announcement_id}/devices

Scope

MDMDeviceMgmt.READCopied!

Header

Authorization: d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

AcceptstringMandatory
application/jsonapplication/jsonCopied!

- Path Parameters

announcement_idstringMandatory

Unique identifier of the announcement. Obtain from the Create Announcement or Get Announcements response

- Query Parameters

limitintegerOptional

Maximum number of records to return in a single response. Used together with offset for pagination

skip-tokenstringOptional

Pagination continuation token returned by a previous response. Pass it to fetch the next page of results

offsetintegerOptional

Zero-based index of the first record to return. Used together with limit for pagination

delta-tokenstringOptional

Token used for delta/incremental fetches. Pass the token returned from a previous response to retrieve only items modified since that point

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request GET \
  --url 'https://appdomain/api/v1/mdm/announcements/{announcement_id}/devices?limit=SOME_INTEGER_VALUE&skip-token=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&delta-token=SOME_STRING_VALUE' \
  --header 'Accept: application/json' \
  --header 'Authorization:  d92d4xxxxxxxxxxxxx15f52'

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
metadataJSON Object

Pagination metadata with total record count

Show Sub-Attributes
total_record_countstring

Total number of user records matching the query

devicesJSON Array

Array of device objects the announcement is distributed to

Show Sub-Attributes
JSON Object
Show Sub-Attributes
resource_idstring

Unique resource identifier of the device

namestring

Display name of the device

platform_typestring

Platform type code (e.g., 1=iOS, 2=Android, 3=Windows)

udidstring

Unique device identifier

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

List of devices the announcement is distributed to with metadata

Copied!
  {
    "metadata": {
      "total_record_count": "1"
    },
    "devices": [
      {
        "platform_type": "2",
        "name": "admin_SM-S921B",
        "resource_id": "9007199254741895",
        "udid": "96d096245821a479"
      }
    ]
  }
                
Show full

Announcement is not distributed to any devices

Copied!
  {
    "metadata": {
      "total_record_count": "0"
    },
    "devices": []
  }
                
Show full

Duration: 1 minute | Threshold: 120 | Lock period: 5 minutes

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.