{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/post-bridge-com/json-schema/post-bridge-com-create-post-dto-schema.json",
  "title": "CreatePostDto",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/post-bridge-com-openapi.yml#/components/schemas/CreatePostDto",
  "type": "object",
  "properties": {
    "caption": {
      "type": "string",
      "description": "Caption text for the post. Required unless `is_draft` is true, so a draft can be saved before the caption is written. LinkedIn company tags: write `@[Company Name](linkedin.com/company/vanity-name)` in the caption, using the company page URL (full https URL also works) or `urn:li:organization:<id>`. Example: `hiring at @[Stripe](linkedin.com/company/stripe)`. LinkedIn shows a real company tag using the company's exact LinkedIn name; every other platform in the same post gets just the name. A plain `@name` is NOT a tag and posts as literal text. A company that can't be found posts as plain text and never fails the post. Companies only, not people."
    },
    "scheduled_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Scheduled date and time for the post. Setting to null or undefined will post instantly.",
      "format": "date-time"
    },
    "platform_configurations": {
      "description": "Platform-specific configurations for the post",
      "type": [
        "object",
        "null"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/PlatformConfigurationsDto"
        }
      ]
    },
    "account_configurations": {
      "description": "Account-specific configurations for the post",
      "type": [
        "object",
        "null"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/AccountConfigurationParentDto"
        }
      ]
    },
    "media": {
      "description": "Array of media IDs associated with the post. Some platforms require media to publish (youtube, tiktok, instagram, pinterest) — see the create-post endpoint description for the per-platform media requirements and accepted types.",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "media_urls": {
      "description": "Array of publicly accesible media URLs associated with the post, will be ignored if media is provided",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "social_accounts": {
      "description": "Array of social account IDs for posting",
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "is_draft": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If true will create the post but not process it until it is updated with a scheduled date or processed instantly"
    },
    "processing_enabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If true will process video files to ensure they post, If false we will skip all video processing",
      "default": true
    },
    "use_queue": {
      "type": [
        "object",
        "null"
      ],
      "description": "Automatically schedule the post to the next available queue slot. Cannot be used together with scheduled_at. Pass true to use your saved timezone, or { timezone: \"America/New_York\" } to override."
    }
  },
  "required": [
    "caption",
    "social_accounts"
  ],
  "$defs": {
    "AccountConfigurationDto": {
      "type": "object",
      "properties": {
        "account_id": {
          "type": "number",
          "description": "Id of the social account you want to override"
        },
        "caption": {
          "type": "string",
          "description": "Caption to user for the specified account"
        },
        "media": {
          "description": "Array of Media Ids to use for the specifed account",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "account_id"
      ]
    },
    "AccountConfigurationParentDto": {
      "type": "object",
      "properties": {
        "account_configurations": {
          "description": "List of account configurations to override data for specific accounts",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AccountConfigurationDto"
          }
        }
      }
    },
    "BlueskyConfiguration": {
      "type": "object",
      "properties": {
        "caption": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `caption` from the post"
        },
        "media": {
          "description": "Overrides the `media` from the post",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        }
      }
    },
    "FacebookConfiguration": {
      "type": "object",
      "properties": {
        "caption": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `caption` from the post"
        },
        "media": {
          "description": "Overrides the `media` from the post",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "placement": {
          "type": [
            "string",
            "null"
          ],
          "description": "Set to \"story\" to publish as a Facebook Page Story (uses /{page-id}/photo_stories or /{page-id}/video_stories). Stories require exactly one image or video and do not support captions or carousels. Omit for a normal feed post.",
          "enum": [
            "story"
          ]
        },
        "first_comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional comment posted on the Facebook post immediately after it publishes (a \"first comment\"). A good place for a link/CTA without cluttering the main post. Ignored for stories (placement: \"story\"). A failed comment will not fail the post — the post still publishes."
        },
        "thumbnail": {
          "type": [
            "string",
            "null"
          ],
          "description": "Media ID of an uploaded image to use as the video thumbnail. Upload the image first via the media endpoints, then pass its ID here. Applies to single-video feed posts only (ignored for stories, photos and text posts). JPEG or PNG. A thumbnail that fails to apply will not fail the post: the video publishes with the frame Facebook picks."
        }
      }
    },
    "GoogleBusinessConfiguration": {
      "type": "object",
      "properties": {
        "caption": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `caption` from the post"
        },
        "media": {
          "description": "Overrides the `media` from the post",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "cta_action_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "Call-to-action button shown on the Google Business post. One of BOOK, ORDER, SHOP, LEARN_MORE, SIGN_UP, CALL. Pair with `cta_url` (except CALL which uses the location's phone number).",
          "enum": [
            "BOOK",
            "ORDER",
            "SHOP",
            "LEARN_MORE",
            "SIGN_UP",
            "CALL"
          ]
        },
        "cta_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Destination URL for the CTA button. Required when `cta_action_type` is set (except for CALL)."
        },
        "language_code": {
          "type": [
            "string",
            "null"
          ],
          "description": "BCP-47 language code for the post (e.g. \"en-US\", \"es\", \"fr-CA\"). Defaults to \"en-US\"."
        }
      }
    },
    "InstagramConfiguration": {
      "type": "object",
      "properties": {
        "caption": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `caption` from the post"
        },
        "media": {
          "description": "Overrides the `media` from the post",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "video_cover_timestamp_ms": {
          "type": [
            "number",
            "null"
          ],
          "description": "Video cover timestamp in milliseconds"
        },
        "cover_image": {
          "type": [
            "string",
            "null"
          ],
          "description": "Custom cover image for video posts. Pass a media_id obtained from the /v1/media/create-upload-url endpoint. The uploaded image will be used as the cover image for the Instagram video/reel."
        },
        "placement": {
          "type": [
            "string",
            "null"
          ],
          "description": "Set to \"story\" to publish as an Instagram Story (media_type=STORIES). Stories require exactly one image or video, do not support captions, carousels, custom cover images, or trial reels. Omit for a normal Reel/feed post.",
          "enum": [
            "story"
          ]
        },
        "is_trial_reel": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Enable trial reel mode. Shows reel to non-followers first. Requires: Professional/Creator account, 1,000+ followers, public profile. Max 5 trial reels per day."
        },
        "is_ai_generated": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Set to true to add Instagram's \"AI info\" label, disclosing that the photo, carousel or reel was made or edited with AI. Set at publish time and cannot be changed afterwards. Ignored for stories."
        },
        "share_to_feed": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Reels only. Set to false to keep the reel off your profile grid: it still publishes and shows in the Reels tab, just not in the main feed grid. Omit (or true) for Instagram's default, which shows the reel in both. Ignored for photos, carousels and stories."
        },
        "audio_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Reels only. Attach a track from Instagram's music library (or an original sound) to the reel. Pass an audio_id from GET /v1/social-accounts/{id}/instagram-audio. Only works for Instagram accounts connected through Facebook login (supports_instagram_music: true on the social account); accounts connected with Instagram login are rejected with a 400, because Meta only offers music on the Facebook-login API. Only tracks Meta has cleared for third-party apps are available, which can differ from the in-app library. Reels only (exactly one video): photos and carousels/slideshows are rejected with a 400, because Meta does not allow music on them through the API. For a slideshow with music, export the slides as one video and post it as a reel. Ignored for stories."
        },
        "audio_volume": {
          "type": [
            "number",
            "null"
          ],
          "description": "Volume of the audio_id track, 0 (muted) to 100 (full). Default 100. Only used with audio_id.",
          "minimum": 0,
          "maximum": 100
        },
        "video_volume": {
          "type": [
            "number",
            "null"
          ],
          "description": "Volume of the video's own sound under the audio_id track, 0 (muted) to 100 (full). Default 100. Set 0 to hear only the music. Only used with audio_id.",
          "minimum": 0,
          "maximum": 100
        },
        "trial_graduation": {
          "type": [
            "string",
            "null"
          ],
          "description": "Trial graduation strategy. \"MANUAL\" (default) = you decide whether to share with all followers. \"SS_PERFORMANCE\" = auto-graduate based on performance within 72 hours.",
          "enum": [
            "MANUAL",
            "SS_PERFORMANCE"
          ]
        },
        "user_tags": {
          "description": "Instagram accounts to tag on the post (people tagging — the tagged accounts appear in their \"Tagged\" photos and get notified, unlike an @mention in the caption). Pass an array of usernames, e.g. [\"partner\", \"brand\"]. A leading \"@\" is optional. Applies to feed photos, carousels and reels; ignored for stories. Tag positions on photos are placed automatically. Tagged accounts must be public and allow tagging, or Instagram silently drops them. Max 20 per post.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "collaborators": {
          "description": "Instagram accounts to invite as collaborators (co-authors). The post appears on their profile too and shares its likes and comments, unlike user_tags which only tags them. Pass an array of usernames, e.g. [\"partner\"]. A leading \"@\" is optional. Max 3, and they must be public accounts — private or misspelled handles make the post fail. Applies to feed photos, carousels and reels; ignored for stories. Each collaborator gets an invite: the post publishes immediately and appears on their profile once they accept.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "first_comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional comment posted on the media immediately after it publishes (a \"first comment\"). A good place for a link, hashtags, or extra context without cluttering the caption. Ignored for stories. A failed comment will not fail the post — the post still publishes."
        }
      }
    },
    "LinkedinConfiguration": {
      "type": "object",
      "properties": {
        "caption": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `caption` from the post"
        },
        "media": {
          "description": "Overrides the `media` from the post",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "document_title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Title for a LinkedIn document post (PDF carousel). Only applies when the media is a PDF (a document-kind media_id from /v1/media/create-upload-url). Defaults to the uploaded file name."
        },
        "first_comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional comment posted on the LinkedIn post immediately after it publishes (a \"first comment\"), as the same person or page. A good place for a link. Max 1,250 characters. A failed comment will not fail the post."
        }
      }
    },
    "PinterestConfiguration": {
      "type": "object",
      "properties": {
        "caption": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `caption` from the post"
        },
        "media": {
          "description": "Overrides the `media` from the post",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "board_ids": {
          "description": "Pinterest board IDs",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "link": {
          "type": [
            "string",
            "null"
          ],
          "description": "Pinterest post link"
        },
        "video_cover_timestamp_ms": {
          "type": [
            "number",
            "null"
          ],
          "description": "Video cover timestamp in milliseconds"
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Pinterest post title"
        }
      }
    },
    "PlatformConfigurationsDto": {
      "type": "object",
      "properties": {
        "pinterest": {
          "description": "Pinterest configuration",
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/PinterestConfiguration"
            }
          ]
        },
        "instagram": {
          "description": "Instagram configuration",
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/InstagramConfiguration"
            }
          ]
        },
        "tiktok": {
          "description": "TikTok configuration",
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/TiktokConfiguration"
            }
          ]
        },
        "twitter": {
          "description": "Twitter configuration",
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/TwitterConfiguration"
            }
          ]
        },
        "youtube": {
          "description": "YouTube configuration",
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/YoutubeConfiguration"
            }
          ]
        },
        "facebook": {
          "description": "Facebook configuration",
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/FacebookConfiguration"
            }
          ]
        },
        "linkedin": {
          "description": "LinkedIn configuration",
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/LinkedinConfiguration"
            }
          ]
        },
        "bluesky": {
          "description": "Bluesky configuration",
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/BlueskyConfiguration"
            }
          ]
        },
        "threads": {
          "description": "Threads configuration",
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/ThreadsConfiguration"
            }
          ]
        },
        "google_business": {
          "description": "Google Business Profile configuration. v1 supports text or a single image to one location per account. Multi-image posts only send the first image to GMB (other platforms still receive all images). Video posts to GMB are rejected.",
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/GoogleBusinessConfiguration"
            }
          ]
        }
      }
    },
    "ThreadsConfiguration": {
      "type": "object",
      "properties": {
        "caption": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `caption` from the post"
        },
        "media": {
          "description": "Overrides the `media` from the post",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "location": {
          "type": [
            "string",
            "null"
          ],
          "description": "Threads post location",
          "enum": [
            "reels",
            "timeline"
          ]
        },
        "first_comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional reply posted to the thread immediately after it publishes (a \"first comment\"). A good place for a link or extra context without cluttering the main thread. Max 500 characters. A failed reply will not fail the post — the thread still publishes."
        },
        "thread": {
          "type": [
            "array",
            "null"
          ],
          "description": "Turns the post into a multi-post thread. Each entry is published as a reply to the one before it, in order, under the main post. An entry is a string, or an object `{ text, media }` where `media` is an array of media ids (up to 20 images or videos; 2 or more post as a carousel) attached to that post. Up to 25 entries, each trimmed to 500 characters. A link is allowed in any entry. If one entry fails the chain stops there, but the main post still counts as published; the result details list the reply ids that went out.",
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "media": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            ]
          }
        },
        "quote_post_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Makes the post a native quote of an existing Threads post (the quoted post shows as a card under the text and media). Works for text, image, carousel and video posts. A numeric post id (platform_id from an earlier post result) or a threads.com post URL; a URL is only found among this account's own recent posts, so use the id for anyone else's post. If the quoted post is deleted, private or cannot be quoted, the post fails instead of publishing without the quote."
        },
        "reply_to_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Publishes the post as a reply under an existing Threads post, for example to add to a launch thread after it is live. A numeric post id or a threads.com post URL (URLs are matched against this account's own recent posts and replies). Threads lets an app reply to the account's own threads; replying elsewhere may be refused. A failed lookup or refusal fails the post."
        }
      }
    },
    "TiktokConfiguration": {
      "type": "object",
      "properties": {
        "caption": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `caption` from the post"
        },
        "media": {
          "description": "Overrides the `media` from the post",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `title` from the post"
        },
        "video_cover_timestamp_ms": {
          "type": [
            "number",
            "null"
          ],
          "description": "Video cover timestamp in milliseconds"
        },
        "draft": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "If true the post will be saved as a draft, instead of immediately publishing"
        },
        "is_aigc": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "If true the video will be labeled with \"Creator labeled as AI-generated\" tag in the description."
        },
        "privacy_status": {
          "type": [
            "string",
            "null"
          ],
          "description": "Set to \"private\" to publish visible only to you (TikTok SELF_ONLY). Anything else publishes publicly. Defaults to public.",
          "enum": [
            "public",
            "private"
          ]
        },
        "auto_add_music": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "PHOTO POSTS ONLY — has no effect on video posts. When true (the default) TikTok picks a soundtrack for the photo carousel. Set false to publish silent."
        },
        "allow_comment": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Allow viewers to comment. Defaults to true."
        },
        "allow_duet": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Allow viewers to Duet the video. Defaults to true. Video posts only."
        },
        "allow_stitch": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Allow viewers to Stitch the video. Defaults to true. Video posts only."
        },
        "disclose_branded_content": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Discloses the post as paid partnership / branded content (TikTok brand_content_toggle). Defaults to false."
        },
        "disclose_your_brand": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Discloses the post as promoting your own brand (TikTok brand_organic_toggle). Defaults to false."
        }
      }
    },
    "TwitterConfiguration": {
      "type": "object",
      "properties": {
        "caption": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `caption` from the post"
        },
        "media": {
          "description": "Overrides the `media` from the post",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "first_comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional reply posted to the tweet immediately after it publishes (a \"first comment\"). Unlike the main tweet — where links are stripped to avoid X's URL surcharge — links ARE allowed here, so this is the place to put a URL/CTA. Trimmed to the character limit (280, or 2200 for premium accounts). A failed reply will not fail the post — the tweet still publishes."
        },
        "thread": {
          "type": [
            "array",
            "null"
          ],
          "description": "Turns the post into a multi-post thread. Each entry is published as a reply to the one before it, in order, under the main post. An entry is a string, or an object `{ text, media }` where `media` is an array of media ids (up to 4 images, or 1 video) attached to that tweet. Up to 25 entries, each trimmed to the character limit (280, or 25,000 for X Premium accounts). A link is allowed in any entry. If one entry fails the chain stops there, but the main post still counts as published; the result details list the reply ids that went out.",
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "media": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            ]
          }
        }
      }
    },
    "YoutubeConfiguration": {
      "type": "object",
      "properties": {
        "caption": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `caption` from the post"
        },
        "media": {
          "description": "Overrides the `media` from the post",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Overrides the `title` from the post"
        },
        "contains_synthetic_media": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "If true, discloses that the video contains realistic altered or synthetic (AI-generated) content. YouTube may display an \"Altered or synthetic content\" label to viewers. Maps to the YouTube Data API `status.containsSyntheticMedia` field."
        },
        "has_paid_product_placement": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "If true, discloses that the video includes paid product placement, a sponsorship or an endorsement. YouTube shows viewers an \"Includes paid promotion\" label. Maps to the YouTube Data API `paidProductPlacementDetails.hasPaidProductPlacement` field. Defaults to false."
        },
        "tags": {
          "description": "Video tags for YouTube search and discovery, set per video. Maps to the YouTube Data API `snippet.tags` field. YouTube caps the whole set at 500 characters; tags beyond the cap are dropped rather than failing the post.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "thumbnail": {
          "type": [
            "string",
            "null"
          ],
          "description": "Media ID of an uploaded image to use as the video thumbnail. Upload the image first via the media endpoints, then pass its ID here. Works on Shorts and regular (long-form) videos. The connected YouTube channel must be verified to set custom thumbnails, and the image should be JPEG/PNG, 1280x720, under 2MB. A thumbnail that fails to apply will not fail the post — the video still publishes."
        },
        "publish_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO 8601 datetime when the video goes public on YouTube. The video uploads at the post time (immediately, or at `scheduled_at`) as private, YouTube processes it, and YouTube itself makes it public at `publish_at` (Data API `status.publishAt`). Use it to upload early and let YouTube schedule natively, e.g. so it is processed and ready before launch. Must be after the upload time. Members-first / early access is not available in the YouTube API; set that in YouTube Studio after the upload."
        }
      }
    }
  }
}