---
title: "Retrieve line by ID"
method: GET
path: "/lines/{id}/"
tags: ["lines"]
---

# Retrieve line by ID

`GET /lines/{id}/`

## Path parameters

- `id` integer, required

## Response `200`

- 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)
