Get all registered mic devices
/api/v1/mics
API to retrieve a list of registered microphone devices. The result is paginated based on the provided query parameters. Refer to the Mic Device Object for more details.
Each microphone has its own threshold values. Refer to Event Categories for more details.
Access Token
is required via Bearer token authentication.
Refer to the Authentication section for more details.
{
"page": 1,
"size": 10,
"total_cnt": 100,
"max_page": 10,
"results": [
{
"id": "string",
"name": "string",
"host": "string",
"edge_id": "string",
"status": "enum(active | inactive)",
"thresholds": {
"[event_category]": 0.5
},
"location": {
"latitude": -90,
"longitude": -180
},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
]
}
const response = await fetch('https://openapi.deeplyinc.com/api/v1/mics?page=1&size=10', {
method: 'GET',
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
const response = await fetch('https://openapi.deeplyinc.com/api/v1/mics?name=mic1&edge_id=edge123&page=1&size=10', {
method: 'GET',
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
1
10
null
null
Page number for pagination (must be > 0)
Number of items per page (must be > 0 and < 101)
Filter devices by name
Filter devices by edge server ID