This returns a list of devices in the organizations that the authenticated user is a part of. Optionally, a specific organization ID can be provided to only return the list of devices for that organization.
API URL (GET)
https://app.retrieverdigitalsignage.com/api/user/get-devices
Authorization Header
Bearer TOKEN_HERE
(Example: Bearer 1|Tazc1INPh1ftqDWpI9bJUbugyuVzkvwNZaipp4yK367322f6)
Other Headers
Accept: application/json
URL Parameters (Optional)
Use this optional parameter to only return the list of devices for a specific organization ID.
?organization_id=e8e3f3a0-03d3-11ef-bd14-ef27eae01ca4
Example Call Using CURL
curl -X GET \
'https://app.retrieverdigitalsignage.com/api/user/get-devices?organization_id=e8e3f3a0-03d3-11ef-bd14-ef27eae01ca4' \
-H 'Authorization: Bearer 1|Tazc1INPh1ftqDWpI9bJUbugyuVzkvwNZaipp4yK367322f6' \
-H 'Accept: application/json' \
Example Response
{
"status": "success",
"devices": [
{
"device_id": "bfd51430-be44-11ef-986a-c1537d0507e8",
"device_name": "Device 1",
"playlist_id": "ba2533e0-be38-11ef-b32f-27af289be0a6",
"playlist_name": "Playlist",
"organization_id": "e8e3f2a0-03d3-11ef-bd14-ef27ebe01ca4",
"organization_name": "Organization 1"
},
{
"device_id": "9fec4180-f077-11ef-89c4-7597efa2c335",
"device_name": "Device 2",
"playlist_id": "78ddd320-1deb-11eb-b63b-320d21413d62",
"playlist_name": "Playlist 2",
"organization_id": "e8e3f2a0-03d3-11ef-bd14-ef27ebe01ca4",
"organization_name": "Organization 1"
},
]
}