---
title: "List lines"
method: GET
path: "/lines/"
tags: ["lines"]
---

# List lines

`GET /lines/`

## Query parameters

- `active` boolean
- `camera_groups` string[]
- `cameras` integer[]
- `created_date_gt` string, date-time
- `created_date_gte` string, date-time
- `created_date_last_n_days` number
- `created_date_lt` string, date-time
- `created_date_lte` string, date-time
- `created_date_nth_full_week` number
- `created_date_nth_work_week` number
- `id_in` integer[]
- `limit` string
- `name_contains` string
- `ordering` string
- `page` string
- `video_archives` integer[]

## Response `200`

- PaginatedLineList
  - `next_page` string, nullable
  - `prev_page` string, nullable
  - `results` Line[]
    - `id` integer, required
    - `created_date` string, date-time, required — Object creation date
    - `modified_date` string, date-time, required — Object modification date
    - `name` string, required — Short name, up to 256 characters
    - `comment` string — Extended description, up to 2048 characters
    - `active` boolean — Line activity status
    - `bbox_intersection_point` 'top right' | 'middle right' | 'bottom right' | 'top center' | 'middle center' | 'bottom center' | 'top left' | 'middle left' | 'bottom left'
    - `points` array[], required — Array of the line x,y coordinates
      - integer[]
    - `camera` integer, nullable — Related camera
    - `video_archive` integer, nullable — Related video archive
    - `attributes` string[] — line attributes each up to 256 characters
    - `ab_name` string, nullable — AB direction name, up to 256 characters
    - `ab_attributes` string[] — AB direction attributes each up to 256 characters
    - `ba_name` string, nullable — BA direction name, up to 256 characters
    - `ba_attributes` string[] — BA direction attributes each up to 256 characters

---

[API](https://skmtc.dev/ntechlab/apis/internal-api-documentation.md) · [All operations](https://skmtc.dev/ntechlab/apis/internal-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ntechlab/internal-api-documentation/revisions/fe217a895bc7/schema)
