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

# Upload Media

> Uploads an image or video to Snapchat and returns a media_id, for use in raw snapchat_ads_create_creative payloads

Uploads an image or video to Snapchat and returns a media\_id, for use in raw snapchat\_ads\_create\_creative payloads. The dedicated create\_\*\_ad operations upload their own media.

|                       |                             |
| --------------------- | --------------------------- |
| **App**               | Snapchat Ads                |
| **Operation ID**      | `snapchat_ads_upload_media` |
| **Type**              | Action                      |
| **Connection**        | `snapchat_ads` (required)   |
| **Credits per run**   | 1                           |
| **Agent / MCP tool**  | Yes                         |
| **Requires approval** | Yes (write operation)       |

## Inputs

| Field        | Type           | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                           |
| ------------ | -------------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`    | DynamicAccount | Yes      | -       | Select the Snapchat Ads account to upload the media to.                                                                                                                                                                                                                                                                                                               |
| `image_url`  | string         | No       | -       | Image to upload. Provide an image or a video, not both. Accepts a direct URL, Google Drive share link (set to 'Anyone with the link'), or Markifact uploaded file. Top snap images must be 1080x1920 PNG or JPG, max 5MB. The media\_id output can be referenced in snapchat\_ads\_create\_creative payloads, for example as top\_snap\_media\_id or icon\_media\_id. |
| `video_url`  | string         | No       | -       | Video to upload. Provide an image or a video, not both. Top snap videos must be 1080x1920 MP4 or MOV, 3 to 180 seconds, up to 1GB (files over 32MB are uploaded in chunks automatically). Waits for Snapchat to finish processing before returning the media\_id.                                                                                                     |
| `media_name` | string         | No       | -       | Optional name of the media in Snapchat. Max 375 characters. Defaults to the file name when omitted.                                                                                                                                                                                                                                                                   |

## Output

**Type**: `Dict`

Returns the uploaded Snapchat media details.

**Fields**: `media_id`, `media_name`, `media_type`, `media_status`, `download_link`
