---
title: "Retrieve timeline of records for given camera"
method: GET
path: "/cameras/{camera_id}/recording/timeline/"
tags: ["recording-deprecated"]
deprecated: true
---

# Retrieve timeline of records for given camera

`GET /cameras/{camera_id}/recording/timeline/`

## Request

- Base URL: `https://api.angelcam.com/v1`
- URL: `https://api.angelcam.com/v1/cameras/{camera_id}/recording/timeline/`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://my.angelcam.com/oauth/authorize/`, token URL `https://my.angelcam.com/oauth/token/`
    - Password, token URL `https://api.angelcam.com/oauth/token/`
    - Scopes: `recording_access`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/angelcam/apis/angelcam-api/docs/cameras/:camera_id/recording/timeline/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Please keep in mind that maximum length of timeline is 1 day.

**This endpoint is deprecated and will be removed in the future. Use [this endpoint](#tag/recording/GET/recording/{recording_id}/timeline/) instead.**

## Path parameters

- `camera_id` integer, required

## Query parameters

- `start` string, date-time, required
- `end` string, date-time, required

## Response `200`

OK

- RecordingTimelineResponse
  - `start` string, date-time: Start time of timeline (the value you entered in the query parameter). Example: `2017-01-01T00:00:00Z`.
  - `end` string, date-time: End time of timeline (the value you entered in the query parameter). Example: `2017-01-01T00:00:00Z`.
  - `segments` SegmentObject[]: Array of recording segments.
    - `start` string, date-time: Start of record segment. Example: `2017-01-01T00:00:00Z`.
    - `end` string, date-time: End of record segment. Example: `2017-01-01T00:00:00Z`.

## Other responses

- `400`: Query params are invalid.
- `401`: Missing or invalid authorization.
- `403`: Missing permission.
- `404`: The specified resource was not found

---

[API](https://skmtc.dev/angelcam/apis/angelcam-api.md) - [All operations](https://skmtc.dev/angelcam/apis/angelcam-api/llms.txt) - [OpenAPI document](https://skmtc.dev/angelcam/apis/angelcam-api/revisions/dd1cdc3f2c23?raw)
