---
title: "Preview audio"
method: GET
path: "/audio/preview/{media_id}"
tags: ["Audio"]
---

# Preview audio

`GET /audio/preview/{media_id}`

## Request

- Base URL: `http://localhost:4550`
- URL: `http://localhost:4550/audio/preview/{media_id}`
- Auth: none declared

Preview audio. Use text/event-stream accept type to use send server events.

## Path parameters

- `media_id` integer, required

## Headers

- `range` string

## Response `200`

OK

## Other responses

- `400`: Bad Request Error
- `401`: Unauthorised Error
- `404`: Not Found Error
- `422`: Business Validation Error
- `500`: The requested data cannot be located

## Changes

- **2026-07-20** `f273786fb018`: 20 info
  - added the optional property `detail` to the response with the `400` status
  - added the optional property `detail` to the response with the `401` status
  - added the optional property `detail` to the response with the `404` status
  - added the optional property `detail` to the response with the `422` status
  - …16 more
- **2025-04-28** `d4cf7d652234`: 1 breaking
  - for the `path` request parameter `media_id`, the format changed from no format to `int64`
- **2025-04-09** `6900b24c5e87`: 1 info
  - added the non-success response with the status `422`
- **2023-11-29** `2bd98e9be73a`: 1 breaking, 1 info
  - the response's body format changed from `binary` to `byte` for status `200`
  - added the new optional `header` request parameter `range`
- **2023-10-27** `440359a12bf0`: 1 breaking, 1 info
  - removed the media type `audio/mp3` for the response with the status `200`
  - added the media type `audio/mpeg` for the response with the status `200`

[Operation history](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts/changes/audio/preview/:media_id/get.md)

---

[API](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts.md) - [All operations](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts/llms.txt) - [OpenAPI document](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts/revisions/f273786fb018?raw)
