Receiving a list of cameras by an external system by id
Getting a list of cameras by id.
Maximum 30 pieces.
GET /api/v1/billing/cameras/listHeaders |
Accept | application/json |
Response |
200 | Successful response |
JSON
[
{
"id": 3,
"camera_id": 3,
"start_at": null,
"status": "active",
"name": "Parking on the left",
"streams": [
{
"type": "high",
"status": "active",
"camera_id": 3
},
{
"type": "low",
"status": "active",
"camera_id": 3
}
],
"preview": "https://server1.domain.video:8443/live/218badead1f4/preview.mp4?token=FOaJBQ-67aa0ee2~~"
},
{
"id": 4,
"camera_id": 4,
"start_at": null,
"status": "active",
"name": "Parking on the right",
"streams": [
{
"type": "high",
"status": "active",
"camera_id": 4
},
{
"type": "low",
"status": "active",
"camera_id": 4
}
],
"preview": "https://domain.com:8443/live/67aa0ee2-ca02c87e8390/preview.mp4?token=sometoken"
}
]
|
200 | Cameras were not found |
|
401 | Authorization token not sent or not valid |
422 | Returns a JSON object with an error. |
|
Example |
JSON
curl -k --request POST \
--url 'https://your-domain/api/v1/billing/cameras/list' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '[]'
|