v1

latestOpenAPI 3.0.32026-07-24214879985.1 KB
Layouts

This endpoint allows you to retrieve all the layouts associated with the account. It is important to note that after using the pageSize parameter, the "totalSize" in the response represents the total number of available layouts, not the number of layouts resulting from the query string.

get/layouts

Query parameters

includestring[]
sortstring[]

Comma separated list of of fields that should be sorted. By default, the users response is sorted by first name.

  • sort= - not providing any value will result in error 400
  • sort=+firstName,+firstName - same values will result in error 400
  • sort=-firstName,+firstName - mutually exclusive values will return error 400
  • There is no limit on the number of sort fields. All available sort fields can be combined freely, as the backend supports sorting by all of them.
  • qRelevance is optional ordering parameter which is available if q filter is used, if q filter is not passed qRelevance as ordering parameter will return error 400
pageTokenstring

Token string value that references a page for pagination. This value is received when retrieving the first page in the nextPageToken and prevPageToken fields. When a pageToken is provided, the backend remembers search parameters from the original request, so search parameters that affect the result set or order are optional and will be ignored if provided. Representation parameters like include should still be applied.

pageSizeinteger

The number of entries to return per page. The maximum range of valid page sizes is documented with minimum and maximum values, but the range might be further limited dynamically based on the requested information, account, and system status. Values outside of the (dynamic) allowed range will not result in an error, but will be clamped to the nearest limit. Thus, logic to detect the last page should not be based on comparing the requested size with the received size, but on the existence of a nextPageToken value.

namestring

Name of the item.

Example:Video North Door 2022-08-03 23-04-50.mp4

Exact name of the item.

name__instring[]

Filter to get the layouts whose name is on the provided list. The lookup is exact and case insensitive.

name__containsstring

Filter to get the accounts whose name contains the provided substring. The lookup is exact and case insensitive.

id__instring

Filter to get only records that have an ID that equals one of the given parameter values.

layoutPanes.cameras.bridgeIdstring

Filter to get the layouts that contain cameras of given bridge id.

qstring
Example:entrance

Text search that is applied to multiple fields. The fields being searched are defined by the backend and can be changed without warning. Example fields being searched: firstName, lastName, email.

qRelevance__gtenumber float
Example:0.5

Sets the current minimum similarity threshold that is used with the q parameter. The threshold must be between 0 and 1 (float, default is 0.5).

Response

Successfully fetched

nextPageTokenstring nullable required

Token to retrieve the next page. The value of this token is passed into the field pageToken. This value can be null if there is no next page.

prevPageTokenstring nullable required

Token to retrieve the previous page. The value of this token is passed into the field pageToken. This value can be null of there is no previous page.

totalSizeinteger required

Size of the total result set.

Example response

{
  "results": [
    {
      "panes": [
        {
          "id": 1,
          "name": "front door",
          "type": "preview",
          "size": 1,
          "cameraId": "1003b545"
        }
      ],
      "settings": {
        "showCameraBorder": true,
        "showCameraName": true,
        "cameraAspectRatio": "16x9"
      },
      "name": "Main office floor 1"
    }
  ]
}