{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bamf-ai/json-schema/bamf-ai-create-post-request-schema.json",
  "title": "CreatePostRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bamf-ai-posts-api-openapi.yml#/components/schemas/CreatePostRequest",
  "type": "object",
  "required": [
    "creator_id",
    "content"
  ],
  "properties": {
    "creator_id": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "topic": {
      "type": "string"
    },
    "first_comment": {
      "type": "string"
    },
    "post_type": {
      "$ref": "#/$defs/BamfPostType"
    },
    "platform": {
      "type": "string",
      "description": "Case-insensitive; aliases li, x/twitter, ig accepted. Stored as LinkedIn, Twitter, Instagram, Threads, TikTok, YouTube or Facebook. Unknown values return 400 invalid_platform.",
      "enum": [
        "linkedin",
        "li",
        "x",
        "twitter",
        "instagram",
        "ig",
        "threads",
        "tiktok",
        "youtube",
        "facebook",
        "LinkedIn",
        "X",
        "Twitter",
        "Instagram",
        "Threads",
        "TikTok",
        "YouTube",
        "Facebook"
      ]
    },
    "funnel_plan": {
      "type": "object",
      "description": "Optional funnel intent from a funnel plan. Stored as generation_metadata.funnel_plan.",
      "required": [
        "stage"
      ],
      "properties": {
        "stage": {
          "type": "string",
          "enum": [
            "tof",
            "mof",
            "bof"
          ]
        },
        "format": {
          "type": "string"
        },
        "planned_date": {
          "type": "string",
          "format": "date"
        }
      }
    }
  },
  "$defs": {
    "BamfPostType": {
      "type": "string",
      "enum": [
        "text",
        "image",
        "carousel",
        "video",
        "article",
        "poll"
      ]
    }
  }
}