> For the complete documentation index, see [llms.txt](https://wadocs.pepipost.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wadocs.pepipost.com/sending-message/media-api/get-media.md).

# Get Media

This endpoint returns file. If file does not exists it will give failure message saying file with requested id does not exists.

URL:​  <https://waapi.pepipost.com/api/v2/media/{mediaid}>

Method: GET

#### Parameters

| Parameter | Description | Parameter Type | Data Type | Sample Value                        | Required |
| --------- | ----------- | -------------- | --------- | ----------------------------------- | -------- |
| mediaId   | Media Id    | Path parameter | String    | 38e9f3f7-6d6f-4a18839c-fd5076b473a6 | Yes      |

#### Request Body

Not required

### Responses

#### In case of success

Binary Data

#### In case of failure

```
{ 
   "status": "failure", 
   "message": "Media with 38e9f3f7-6d6f-4a18-839c-fd5076b473 not found." 
} 
```

####
