---
title: "Retrieve a call recording"
method: GET
path: "/recordings/{id}"
tags: ["Recording"]
---

# Retrieve a call recording

`GET /recordings/{id}`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/recordings/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/recordings/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Get details of a call recording.

## Path parameters

- `id` string, required: The unique ID of the resource.

## Response `200`

OK

- object
  - `items` object[]
    - `caller` string: Caller who started the call.
    - `callee` string: Callee who answered the call.
    - `started_at` string, date_time: The RFC 3339 format is defined by The date_time notation as defined by [RFC 3339, section 5.6](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6), for example, 2017-07-21T17:32:28Z
    - `ended_at` string, date_time: The RFC 3339 format is defined by The date_time notation as defined by [RFC 3339, section 5.6](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6), for example, 2017-07-21T17:32:28Z
    - `duration` integer: The playback time (in seconds).
    - `file_name` string: The name of the file.
    - `file_size` integer: The file size in bytes.
    - `file_url` string: The relative path to file url for file downloading.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
