---
title: "Retrieves previously uploaded media by its ID."
method: GET
path: "/whatsapp/v1/media/{mediaId}"
tags: ["Media"]
---

# Retrieves previously uploaded media by its ID.

`GET /whatsapp/v1/media/{mediaId}`

## Request

- Base URL: `https://rest.smsportal.com`
- URL: `https://rest.smsportal.com/whatsapp/v1/media/{mediaId}`
- Auth: HTTP basic

Example request:
            
    GET /whatsapp/v1/media/4000240

## Path parameters

- `mediaId` integer, required

## Response `200`

The media was found and returned successfully

## Other responses

- `401`: The request was not properly authorized
- `404`: No media was found for the given ID
- `500`: Something unexpected went wrong, please try again

---

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