---
title: "Retrieve timeline of records for given recording"
method: GET
path: "/recording/{recording_id}/timeline/"
tags: ["recording"]
---

# Retrieve timeline of records for given recording

`GET /recording/{recording_id}/timeline/`

## Request

- Base URL: `https://api.angelcam.com/v1`
- URL: `https://api.angelcam.com/v1/recording/{recording_id}/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/recording/:recording_id/timeline/get.ts> (a function with typed inputs; its response is checked against the schema)

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

## Path parameters

- `recording_id` string, uuid, 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)
