---
title: "Publish Media"
method: POST
path: "/social/publish"
tags: ["Social"]
---

# Publish Media

`POST /social/publish`

## Request

- Base URL: `https://api.muapi.ai`
- URL: `https://api.muapi.ai/social/publish`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2 (client credentials, token URL `https://api.muapi.ai/oauth/token`)

Publish or schedule a media URL to a specific connected social account.

If scheduled_at is omitted, publishes immediately.
If scheduled_at is provided (ISO 8601), saves to the queue and returns
{"status": "scheduled", "id": <post_id>, "scheduled_at": "..."}.

## Query parameters

- `team_id` integer, nullable

## Headers

- `x-api-key` string
- `x-embed-code` string, nullable
- `x-agent-embed-code` string, nullable
- `x-whitelabel-studio` string, nullable
- `authorization` string, nullable

## Request body

- PublishRequest
  - `account_id` integer, required
  - `media_url` string, required
  - `title` string
  - `caption` string
  - `tags` string[]
  - `privacy` string
  - `scheduled_at` string, date-time, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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