mumro.Documentation
Open Mumro

Developers

Publications API

Create a draft or publication with independent results for each target.

On this pageRead current capabilitiesCreate a draft firstRequest fieldsPreview a scheduleTrack each result

Read current capabilities

HTTP
GET /api/publications/capabilities
Authorization: Bearer smm_REPLACE_ME

Reads require authenticated membership in the workspace (viewer or higher). The response contains platforms, media_limits and story_options. Each platform describes supported_types, caption_limits, platform_options, media_profiles and cover_options. Use these values instead of hard-coding a platform matrix.

Create a draft first

POST /api/publications requires a Public API key, editor (member) or higher role, permitted targets and social_publishing. Public API writes use the creator’s role, not MCP scopes. Use an Idempotency-Key for one logical creation.

HTTP
POST /api/publications
Authorization: Bearer smm_REPLACE_ME
Content-Type: application/json
Idempotency-Key: 6177708c-ec2b-4c2d-9214-5443b3e3c168

{
  "publication_type": "post",
  "targets": [123],
  "common_content": {
    "caption": "A new chapter for our brand.",
    "media_asset_ids": [456]
  },
  "schedule_mode": "draft"
}

Replace the sample IDs with a connected channel and ready media asset from your workspace. This explicitly saves a draft. The default when schedule_mode is omitted is next_slot, which can schedule content.

A new successful create returns 201; an identical replay returns 200. Partial target failure returns 207; all targets failing returns 422. Handle 401 for credentials, 403 for access, 404 for targets, 400/422 for validation, 409 for an in-progress key and 429 for rate limits. A different payload with the same key returns 422 idempotency_key_conflict.

Request fields

FieldContract
publication_typepost | story | reel | film
targets1–50 channel IDs in the active workspace.
common_contentCaption, hashtags, numeric media_asset_ids, optional title, description, subtitles, cover, first comment and platform options.
overridesMap keyed by selected target ID. Use caption_override, media_override, cover_override and supported platform fields.
schedule_modedraft | now | next_slot | custom
scheduled_atISO 8601 with time zone for a common custom date.
scheduled_at_per_targetMap of selected target IDs to custom dates.

overrides can only reference selected targets. Subtitle assets, cover assets and primary media must belong to the same workspace. A film requires a title and supported video media. Consult OpenAPI for field-level constraints.

Preview a schedule

HTTP
GET /api/publications/preview-schedule?account_id=123&content_type=reel&is_trial=true
Authorization: Bearer smm_REPLACE_ME

Read next_slot_at, schedule_enabled, is_trial and warnings. Preview and creation must use the same Trial Reel setting. A preview does not reserve a slot.

next_slot persists automatic schedule ownership. custom and now use manual ownership. A null automatic date waits for a schedule; it does not mean publish now.

Track each result

The response includes publication_id, request_id and jobs[]. Each job has target_id, job_id, status, schedule_source, scheduled_at and any target error. Store these identifiers, then poll the applicable resource.

Post, story and reel job_id values match public queue IDs. Film results use the film resource identifier; do not send it to the public queue routes. A media asset ID is never a queue job ID.

↑ ↓ to navigate · Enter to open · Esc to close