Docs/Models

SocialPostMediaSource

object

The part of an episode or a YouTube video a social post is clipped from.

The content a post is clipped from: its IDs, the media URL, and the clipped span. Set it when you create a post via Create Social Post. Without an upload_id, Fountain renders a video from it and attaches it to the post. A later source change keeps the video until Render Social Post renders the post again. Fountain also uses it to show the post as a candidate in the dashboard and in email digests.

Fields

idsContentID[]required

The source content, in one of four forms: an episode:id: link and its show:id: link; the same two with the youtube:video: ID of the same recording; one youtube:video: ID; or empty, for other media. Other forms are rejected.

mediastringrequired

URL of the media the clip is cut from.

transcriptstringrequired

The transcript of the clipped span.

ts_startnumberrequired

Clip start time in seconds.

ts_endnumberrequired

Clip end time in seconds.

Example
{
  "ids": [
    "episode:id:abc123",
    "show:id:xyz789"
  ],
  "media": "https://media.fountain.fm/episodes/abc123.mp3",
  "transcript": "the genesis block was mined in 2009",
  "ts_start": 2477.91,
  "ts_end": 2493.9
}