{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/facebook/refs/heads/main/json-structure/threads-api-threads-media-structure.json",
  "name": "ThreadsMedia",
  "description": "A Threads post.",
  "type": "object",
  "properties": {
    "id": { "type": "string", "description": "Media ID." },
    "media_type": { "type": "string", "description": "Media type.", "enum": ["TEXT_POST", "IMAGE", "VIDEO", "CAROUSEL_ALBUM"] },
    "text": { "type": "string", "description": "Post text content." },
    "permalink": { "type": "uri", "description": "Permanent URL." },
    "timestamp": { "type": "datetime", "description": "Publishing timestamp." },
    "username": { "type": "string", "description": "Author username." },
    "is_quote_post": { "type": "boolean", "description": "Whether this is a quote post." }
  }
}
