Skip to main content
Skip table of contents

Get the list of deleted intercoms

Get the list of deleted intercoms

GET /api/admin/v1/deleted-intercoms

Parameters

int per_page, Number of elements in one pagination page.


int page, Pagination page number


string search, The search is carried out by the name of the intercom


string sort, The sorting parameter. Possible values: title, vendor, created_at, deleted_at


string dir, In which direction to sort. desc - from more to less, asc - from less to more


string vendor, Filtering by model. Possible values in [VMS Admin/Settings/General administrator configurations](../../settings/static.md) under the key intercom_vendors


date from, The beginning of the time interval (by date when intercom was removed)


date to, End of the time interval (by date when intercom was removed)

200 OK

Successful response

JSON
{
    "data": [
        {
            "id": 12,
            "title": "interconnection_intercom",
            "is_online": true,
            "is_registered": null,
            "is_restricted_live": false,
            "is_restricted_archive": false,
            "is_open_door_key": true,
            "is_open_door_code": true,
            "is_open_door_app": true,
            "is_open_door_face": false,
            "group_id": null,
            "camera_id": 13,
            "flat_from": null,
            "flat_to": null,
            "flat_offset": null,
            "department": null,
            "department_name": null,
            "department_type": null,
            "department_type_pretty": null,
            "uuid": "a05d8566-b7e8-476d-95ed-8a7a7679fe07",
            "address": null,
            "group": null,
            "created_at": "2024-09-16T14:37:33.000000Z",
            "updated_at": "2024-09-23T14:51:29.000000Z",
            "deleted_at": "2024-09-23T14:51:29.000000Z",
            "mac": null,
            "vendor": "interconnection",
            "vendor_pretty": "Interconnection",
            "status": "active",
            "status_pretty": "models.intercoms.statuses.active",
            "switch": null,
            "switch_pretty": null,
            "schema": "http",
            "ip": "192.168.18.207",
            "port": 8080,
            "login": "root",
            "password": "123456",
            "commutators_count": null,
            "connection_type": null,
            "connection_type_pretty": null,
            "key_count": null,
            "is_analytic_available": true
        }
    ],
    "links": {
        "first": "http://127.0.0.1:8000/api/admin/v1/deleted-intercoms?page=1",
        "last": "http://127.0.0.1:8000/api/admin/v1/deleted-intercoms?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "http://127.0.0.1:8000/api/admin/v1/deleted-intercoms?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "http://127.0.0.1:8000/api/admin/v1/deleted-intercoms",
        "per_page": 25,
        "to": 1,
        "total": 1
    }
}

401 Unauthorized

Authorization token not sent or not valid

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/deleted-intercoms' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "per_page": 0,
    "page": 0,
    "search": "string",
    "sort": "string",
    "dir": "string",
    "vendor": "string",
    "from": "date",
    "to": "date"
}'
PHP
PHP
$data = array (
  'per_page' => 0,
  'page' => 0,
  'search' => 'string',
  'sort' => 'string',
  'dir' => 'string',
  'vendor' => 'string',
  'from' => 'date',
  'to' => 'date',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'GET',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/deleted-intercoms', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.