---
title: "Schedule Media"
method: POST
path: "/v1/media_scheduler/schedule"
tags: ["media_scheduler"]
---

# Schedule Media

`POST /v1/media_scheduler/schedule`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/media_scheduler/schedule`
- Auth: HTTP bearer

Upload media, detect account type, and create an Instagram media container.

- Detects whether `instagram_id` is an Instagram Business Account (via Facebook) or Instagram user account
- Uploads the provided media (and optional cover) to object storage
- Creates the media container using existing services

## Request body `multipart/form-data`

- BodyScheduleMediaV1MediaSchedulerSchedulePost
  - `media_file` string, binary, required: Image or video file to upload
  - `cover_file` string, binary, nullable: Optional cover image for video/Reels
  - `caption` string, nullable
  - `media_type` string, nullable
  - `share_to_feed` boolean, nullable
  - `thumb_offset` integer, nullable
  - `instagram_user_id` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
