> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeplo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GET Get Media URL

> Retrieve the download URL for a media file.

## Get media URL

`GET /api/messages/media-url`

Get the download URL for a WhatsApp media file.

### Headers

**Cookie** `string` *required*

Session cookie (login via POST /api/auth/login)

**mediaId** `string` *required*

WhatsApp media ID

```bash cURL theme={null}
curl "https://zeplo.ai/api/messages/media-url?mediaId=media_abc123" \
  -H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
```

```json Response theme={null}
{
  "success": true,
  "data": {
    "url": "https://lookaside.fbsbx.com/whatsapp/...",
    "mimeType": "image/jpeg",
    "fileSize": 102400,
    "sha256": "abc123..."
  }
}
```

***

## Proxy media

`GET /api/messages/media-proxy`

Download media through the server proxy.

**url** `string` *required*

Media URL to proxy

```bash cURL theme={null}
curl "https://zeplo.ai/api/messages/media-proxy?url=https://example.com/photo.jpg" \
  -H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.