---
title: "Retrieve Media. Will return a 302 redirect to the actual file location"
method: GET
path: "/v2/partition/{partitionId}/account/{accountId}/media_2/{id}"
tags: ["Media"]
---

# Retrieve Media. Will return a 302 redirect to the actual file location

`GET /v2/partition/{partitionId}/account/{accountId}/media_2/{id}`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/media_2/{id}`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/account/:accountId/media_2/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Use to retrieve a media File, related to either HoldMusic or IVR, depending on the mediaType query parameter.<br/><br/> You will need the mediaId. <span hidden>For more info, see <a href="media.html#getMediaFile">here.</a></span>

## Path parameters

- `accountId` string, required
- `id` string, required
- `partitionId` string, required

## Query parameters

- `mediaType` 'HoldMusic' | 'IvrPrompt', required

## Response `200`

Successful operation

## Other responses

- `400`: Invalid Media Type supplied
- `401`: Unauthorized
- `404`: Entity not found

---

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