{
  "openapi": "3.1.0",
  "info": {
    "title": "SyncUpSocial scoped API",
    "version": "1.0.0",
    "description": "Code-level contract for the current unversioned routes. Runtime authorization, platform validation, payload byte limits and workspace policy remain authoritative. This file does not imply production activation or live platform verification."
  },
  "servers": [
    {
      "url": "https://api.syncupsocial.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Create a scoped key in Settings. Never send a key in a URL."
      }
    }
  },
  "paths": {
    "/api/workspaces/{workspaceId}/posts": {
      "get": {
        "summary": "List accessible posts with cursor, status, campaign and bounded page size",
        "x-required-scope": "posts:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "campaign",
            "in": "query",
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "default": 100,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "enum": [
                "all",
                "upcoming",
                "drafts",
                "published",
                "failed",
                "cancelled",
                "paused"
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "platforms",
            "in": "query",
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      },
      "post": {
        "summary": "Create an unpublished draft; agents require a stable UUID",
        "x-required-scope": "posts:draft",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "campaignLabel": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "clientRequestId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "content": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 10000
                      },
                      {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 10000
                          },
                          "mediaIds": {
                            "default": [],
                            "maxItems": 35,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          }
                        },
                        "required": [
                          "text",
                          "mediaIds"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "platformOverrides": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "tiktok",
                        "youtube",
                        "facebook",
                        "instagram",
                        "threads",
                        "linkedin",
                        "x",
                        "pinterest",
                        "reddit",
                        "gmb",
                        "discord",
                        "dribbble",
                        "mastodon",
                        "bluesky"
                      ]
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "mediaIds": {
                          "maxItems": 35,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "scheduledAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "timezone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "variants": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "wordpressSettings": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "markdown": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100000
                            },
                            "excerpt": {
                              "default": "",
                              "type": "string",
                              "maxLength": 2000
                            },
                            "slug": {
                              "default": "",
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[a-z0-9-]*$"
                            },
                            "categories": {
                              "default": [],
                              "maxItems": 30,
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "tags": {
                              "default": [],
                              "maxItems": 30,
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "featuredMediaId": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "title",
                            "markdown",
                            "excerpt",
                            "slug",
                            "categories",
                            "tags"
                          ],
                          "additionalProperties": false
                        },
                        "overrides": {
                          "type": "object",
                          "properties": {
                            "text": {
                              "type": "string",
                              "maxLength": 10000
                            },
                            "mediaIds": {
                              "maxItems": 35,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "accountId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "content": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10000
                        },
                        "mediaIds": {
                          "maxItems": 35,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "firstComment": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000
                        },
                        "instagramSettings": {
                          "type": "object",
                          "properties": {
                            "placement": {
                              "type": "string",
                              "enum": [
                                "feed",
                                "story"
                              ]
                            }
                          },
                          "required": [
                            "placement"
                          ],
                          "additionalProperties": false
                        },
                        "facebookSettings": {
                          "type": "object",
                          "properties": {
                            "placement": {
                              "type": "string",
                              "enum": [
                                "feed",
                                "story"
                              ]
                            }
                          },
                          "required": [
                            "placement"
                          ],
                          "additionalProperties": false
                        },
                        "xSettings": {
                          "type": "object",
                          "properties": {
                            "thread": {
                              "type": "boolean"
                            },
                            "parts": {
                              "minItems": 1,
                              "maxItems": 20,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 10000
                              }
                            }
                          },
                          "required": [
                            "thread"
                          ],
                          "additionalProperties": false
                        },
                        "tiktokSettings": {
                          "type": "object",
                          "properties": {
                            "photoTitle": {
                              "type": "string",
                              "maxLength": 90
                            },
                            "privacyLevel": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "disableComment": {
                              "type": "boolean"
                            },
                            "disableDuet": {
                              "type": "boolean"
                            },
                            "disableStitch": {
                              "type": "boolean"
                            },
                            "coverTimestampMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 36000000
                            },
                            "videoDurationMs": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "maximum": 36000000
                            },
                            "autoAddMusic": {
                              "type": "boolean"
                            },
                            "commercialContent": {
                              "type": "boolean"
                            },
                            "brandOrganic": {
                              "type": "boolean"
                            },
                            "brandContent": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        },
                        "youtubeSettings": {
                          "type": "object",
                          "properties": {
                            "privacyStatus": {
                              "type": "string",
                              "enum": [
                                "public",
                                "unlisted",
                                "private"
                              ]
                            },
                            "selfDeclaredMadeForKids": {
                              "type": "boolean"
                            },
                            "containsSyntheticMedia": {
                              "type": "boolean"
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "categoryId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32
                            },
                            "thumbnailMediaId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "required": [
                            "privacyStatus",
                            "selfDeclaredMadeForKids",
                            "containsSyntheticMedia",
                            "title",
                            "categoryId"
                          ],
                          "additionalProperties": false
                        },
                        "linkedinArticleSettings": {
                          "type": "object",
                          "properties": {
                            "sourceUrl": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "description": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 4000
                            },
                            "thumbnailMediaId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "required": [
                            "sourceUrl",
                            "title",
                            "description"
                          ],
                          "additionalProperties": false
                        },
                        "pinterestSettings": {
                          "type": "object",
                          "properties": {
                            "boardId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "link": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "boardId"
                          ],
                          "additionalProperties": false
                        },
                        "redditSettings": {
                          "minItems": 1,
                          "maxItems": 20,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "subreddit": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 300
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "self",
                                  "link",
                                  "media"
                                ]
                              },
                              "url": {
                                "type": "string",
                                "maxLength": 2048,
                                "format": "uri"
                              },
                              "flairId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "flairText": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "required": [
                              "subreddit",
                              "title",
                              "type"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "discordSettings": {
                          "type": "object",
                          "properties": {
                            "channelId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "required": [
                            "channelId"
                          ],
                          "additionalProperties": false
                        },
                        "dribbbleSettings": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 140
                            }
                          },
                          "required": [
                            "title"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "accountId"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "clientRequestId",
                  "content",
                  "scheduledAt",
                  "timezone",
                  "variants"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/posts/{postId}": {
      "get": {
        "summary": "Read one accessible post and its publishing result",
        "x-required-scope": "posts:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "postId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/posts/bulk-drafts": {
      "post": {
        "summary": "Create up to 20 drafts; 96 KiB batch and three batches per workspace per 15 minutes",
        "x-required-scope": "posts:draft",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "reuseLibraryMedia": {
                    "type": "boolean"
                  },
                  "posts": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "campaignLabel": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "clientRequestId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "content": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 10000
                            },
                            {
                              "type": "object",
                              "properties": {
                                "text": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 10000
                                },
                                "mediaIds": {
                                  "default": [],
                                  "maxItems": 35,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  }
                                }
                              },
                              "required": [
                                "text",
                                "mediaIds"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "platformOverrides": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "tiktok",
                              "youtube",
                              "facebook",
                              "instagram",
                              "threads",
                              "linkedin",
                              "x",
                              "pinterest",
                              "reddit",
                              "gmb",
                              "discord",
                              "dribbble",
                              "mastodon",
                              "bluesky"
                            ]
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "text": {
                                "type": "string",
                                "maxLength": 10000
                              },
                              "mediaIds": {
                                "maxItems": 35,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "scheduledAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "timezone": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        "variants": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "wordpressSettings": {
                                "type": "object",
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "markdown": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100000
                                  },
                                  "excerpt": {
                                    "default": "",
                                    "type": "string",
                                    "maxLength": 2000
                                  },
                                  "slug": {
                                    "default": "",
                                    "type": "string",
                                    "maxLength": 200,
                                    "pattern": "^[a-z0-9-]*$"
                                  },
                                  "categories": {
                                    "default": [],
                                    "maxItems": 30,
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "tags": {
                                    "default": [],
                                    "maxItems": 30,
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "featuredMediaId": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "title",
                                  "markdown",
                                  "excerpt",
                                  "slug",
                                  "categories",
                                  "tags"
                                ],
                                "additionalProperties": false
                              },
                              "overrides": {
                                "type": "object",
                                "properties": {
                                  "text": {
                                    "type": "string",
                                    "maxLength": 10000
                                  },
                                  "mediaIds": {
                                    "maxItems": 35,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  }
                                },
                                "additionalProperties": false
                              },
                              "accountId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "content": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 10000
                              },
                              "mediaIds": {
                                "maxItems": 35,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "firstComment": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 1000
                              },
                              "instagramSettings": {
                                "type": "object",
                                "properties": {
                                  "placement": {
                                    "type": "string",
                                    "enum": [
                                      "feed",
                                      "story"
                                    ]
                                  }
                                },
                                "required": [
                                  "placement"
                                ],
                                "additionalProperties": false
                              },
                              "facebookSettings": {
                                "type": "object",
                                "properties": {
                                  "placement": {
                                    "type": "string",
                                    "enum": [
                                      "feed",
                                      "story"
                                    ]
                                  }
                                },
                                "required": [
                                  "placement"
                                ],
                                "additionalProperties": false
                              },
                              "xSettings": {
                                "type": "object",
                                "properties": {
                                  "thread": {
                                    "type": "boolean"
                                  },
                                  "parts": {
                                    "minItems": 1,
                                    "maxItems": 20,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 10000
                                    }
                                  }
                                },
                                "required": [
                                  "thread"
                                ],
                                "additionalProperties": false
                              },
                              "tiktokSettings": {
                                "type": "object",
                                "properties": {
                                  "photoTitle": {
                                    "type": "string",
                                    "maxLength": 90
                                  },
                                  "privacyLevel": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "disableComment": {
                                    "type": "boolean"
                                  },
                                  "disableDuet": {
                                    "type": "boolean"
                                  },
                                  "disableStitch": {
                                    "type": "boolean"
                                  },
                                  "coverTimestampMs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 36000000
                                  },
                                  "videoDurationMs": {
                                    "type": "number",
                                    "exclusiveMinimum": 0,
                                    "maximum": 36000000
                                  },
                                  "autoAddMusic": {
                                    "type": "boolean"
                                  },
                                  "commercialContent": {
                                    "type": "boolean"
                                  },
                                  "brandOrganic": {
                                    "type": "boolean"
                                  },
                                  "brandContent": {
                                    "type": "boolean"
                                  }
                                },
                                "additionalProperties": false
                              },
                              "youtubeSettings": {
                                "type": "object",
                                "properties": {
                                  "privacyStatus": {
                                    "type": "string",
                                    "enum": [
                                      "public",
                                      "unlisted",
                                      "private"
                                    ]
                                  },
                                  "selfDeclaredMadeForKids": {
                                    "type": "boolean"
                                  },
                                  "containsSyntheticMedia": {
                                    "type": "boolean"
                                  },
                                  "title": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100
                                  },
                                  "categoryId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32
                                  },
                                  "thumbnailMediaId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  }
                                },
                                "required": [
                                  "privacyStatus",
                                  "selfDeclaredMadeForKids",
                                  "containsSyntheticMedia",
                                  "title",
                                  "categoryId"
                                ],
                                "additionalProperties": false
                              },
                              "linkedinArticleSettings": {
                                "type": "object",
                                "properties": {
                                  "sourceUrl": {
                                    "type": "string",
                                    "maxLength": 2048,
                                    "format": "uri"
                                  },
                                  "title": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "description": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 4000
                                  },
                                  "thumbnailMediaId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  }
                                },
                                "required": [
                                  "sourceUrl",
                                  "title",
                                  "description"
                                ],
                                "additionalProperties": false
                              },
                              "pinterestSettings": {
                                "type": "object",
                                "properties": {
                                  "boardId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "title": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100
                                  },
                                  "link": {
                                    "type": "string",
                                    "maxLength": 2048,
                                    "format": "uri"
                                  }
                                },
                                "required": [
                                  "boardId"
                                ],
                                "additionalProperties": false
                              },
                              "redditSettings": {
                                "minItems": 1,
                                "maxItems": 20,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "subreddit": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "title": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 300
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "self",
                                        "link",
                                        "media"
                                      ]
                                    },
                                    "url": {
                                      "type": "string",
                                      "maxLength": 2048,
                                      "format": "uri"
                                    },
                                    "flairId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "flairText": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  },
                                  "required": [
                                    "subreddit",
                                    "title",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "discordSettings": {
                                "type": "object",
                                "properties": {
                                  "channelId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  }
                                },
                                "required": [
                                  "channelId"
                                ],
                                "additionalProperties": false
                              },
                              "dribbbleSettings": {
                                "type": "object",
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 140
                                  }
                                },
                                "required": [
                                  "title"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "accountId"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "clientRequestId",
                        "content",
                        "scheduledAt",
                        "timezone",
                        "variants"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "posts"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/posts/{postId}/draft": {
      "put": {
        "summary": "Replace an unpublished draft using its exact updatedAt revision",
        "x-required-scope": "posts:draft",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "postId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "campaignLabel": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "clientRequestId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "content": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 10000
                      },
                      {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 10000
                          },
                          "mediaIds": {
                            "default": [],
                            "maxItems": 35,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          }
                        },
                        "required": [
                          "text",
                          "mediaIds"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "platformOverrides": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "tiktok",
                        "youtube",
                        "facebook",
                        "instagram",
                        "threads",
                        "linkedin",
                        "x",
                        "pinterest",
                        "reddit",
                        "gmb",
                        "discord",
                        "dribbble",
                        "mastodon",
                        "bluesky"
                      ]
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "mediaIds": {
                          "maxItems": 35,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "scheduledAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "timezone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "variants": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "wordpressSettings": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "markdown": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100000
                            },
                            "excerpt": {
                              "default": "",
                              "type": "string",
                              "maxLength": 2000
                            },
                            "slug": {
                              "default": "",
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[a-z0-9-]*$"
                            },
                            "categories": {
                              "default": [],
                              "maxItems": 30,
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "tags": {
                              "default": [],
                              "maxItems": 30,
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "featuredMediaId": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "title",
                            "markdown",
                            "excerpt",
                            "slug",
                            "categories",
                            "tags"
                          ],
                          "additionalProperties": false
                        },
                        "overrides": {
                          "type": "object",
                          "properties": {
                            "text": {
                              "type": "string",
                              "maxLength": 10000
                            },
                            "mediaIds": {
                              "maxItems": 35,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "accountId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "content": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10000
                        },
                        "mediaIds": {
                          "maxItems": 35,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "firstComment": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000
                        },
                        "instagramSettings": {
                          "type": "object",
                          "properties": {
                            "placement": {
                              "type": "string",
                              "enum": [
                                "feed",
                                "story"
                              ]
                            }
                          },
                          "required": [
                            "placement"
                          ],
                          "additionalProperties": false
                        },
                        "facebookSettings": {
                          "type": "object",
                          "properties": {
                            "placement": {
                              "type": "string",
                              "enum": [
                                "feed",
                                "story"
                              ]
                            }
                          },
                          "required": [
                            "placement"
                          ],
                          "additionalProperties": false
                        },
                        "xSettings": {
                          "type": "object",
                          "properties": {
                            "thread": {
                              "type": "boolean"
                            },
                            "parts": {
                              "minItems": 1,
                              "maxItems": 20,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 10000
                              }
                            }
                          },
                          "required": [
                            "thread"
                          ],
                          "additionalProperties": false
                        },
                        "tiktokSettings": {
                          "type": "object",
                          "properties": {
                            "photoTitle": {
                              "type": "string",
                              "maxLength": 90
                            },
                            "privacyLevel": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "disableComment": {
                              "type": "boolean"
                            },
                            "disableDuet": {
                              "type": "boolean"
                            },
                            "disableStitch": {
                              "type": "boolean"
                            },
                            "coverTimestampMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 36000000
                            },
                            "videoDurationMs": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "maximum": 36000000
                            },
                            "autoAddMusic": {
                              "type": "boolean"
                            },
                            "commercialContent": {
                              "type": "boolean"
                            },
                            "brandOrganic": {
                              "type": "boolean"
                            },
                            "brandContent": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        },
                        "youtubeSettings": {
                          "type": "object",
                          "properties": {
                            "privacyStatus": {
                              "type": "string",
                              "enum": [
                                "public",
                                "unlisted",
                                "private"
                              ]
                            },
                            "selfDeclaredMadeForKids": {
                              "type": "boolean"
                            },
                            "containsSyntheticMedia": {
                              "type": "boolean"
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "categoryId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32
                            },
                            "thumbnailMediaId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "required": [
                            "privacyStatus",
                            "selfDeclaredMadeForKids",
                            "containsSyntheticMedia",
                            "title",
                            "categoryId"
                          ],
                          "additionalProperties": false
                        },
                        "linkedinArticleSettings": {
                          "type": "object",
                          "properties": {
                            "sourceUrl": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "description": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 4000
                            },
                            "thumbnailMediaId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "required": [
                            "sourceUrl",
                            "title",
                            "description"
                          ],
                          "additionalProperties": false
                        },
                        "pinterestSettings": {
                          "type": "object",
                          "properties": {
                            "boardId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "link": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "boardId"
                          ],
                          "additionalProperties": false
                        },
                        "redditSettings": {
                          "minItems": 1,
                          "maxItems": 20,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "subreddit": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 300
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "self",
                                  "link",
                                  "media"
                                ]
                              },
                              "url": {
                                "type": "string",
                                "maxLength": 2048,
                                "format": "uri"
                              },
                              "flairId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "flairText": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "required": [
                              "subreddit",
                              "title",
                              "type"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "discordSettings": {
                          "type": "object",
                          "properties": {
                            "channelId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "required": [
                            "channelId"
                          ],
                          "additionalProperties": false
                        },
                        "dribbbleSettings": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 140
                            }
                          },
                          "required": [
                            "title"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "accountId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "expectedUpdatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  }
                },
                "required": [
                  "content",
                  "scheduledAt",
                  "timezone",
                  "variants",
                  "expectedUpdatedAt"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/posts/schedule": {
      "post": {
        "summary": "Create and schedule only when workspace policy permits direct publishing",
        "x-required-scope": "posts:write",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "campaignLabel": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "clientRequestId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "content": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 10000
                      },
                      {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 10000
                          },
                          "mediaIds": {
                            "default": [],
                            "maxItems": 35,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          }
                        },
                        "required": [
                          "text",
                          "mediaIds"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "platformOverrides": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "tiktok",
                        "youtube",
                        "facebook",
                        "instagram",
                        "threads",
                        "linkedin",
                        "x",
                        "pinterest",
                        "reddit",
                        "gmb",
                        "discord",
                        "dribbble",
                        "mastodon",
                        "bluesky"
                      ]
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "mediaIds": {
                          "maxItems": 35,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "scheduledAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "timezone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "variants": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "wordpressSettings": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "markdown": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100000
                            },
                            "excerpt": {
                              "default": "",
                              "type": "string",
                              "maxLength": 2000
                            },
                            "slug": {
                              "default": "",
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[a-z0-9-]*$"
                            },
                            "categories": {
                              "default": [],
                              "maxItems": 30,
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "tags": {
                              "default": [],
                              "maxItems": 30,
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "featuredMediaId": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "title",
                            "markdown",
                            "excerpt",
                            "slug",
                            "categories",
                            "tags"
                          ],
                          "additionalProperties": false
                        },
                        "overrides": {
                          "type": "object",
                          "properties": {
                            "text": {
                              "type": "string",
                              "maxLength": 10000
                            },
                            "mediaIds": {
                              "maxItems": 35,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "accountId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "content": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10000
                        },
                        "mediaIds": {
                          "maxItems": 35,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "firstComment": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000
                        },
                        "instagramSettings": {
                          "type": "object",
                          "properties": {
                            "placement": {
                              "type": "string",
                              "enum": [
                                "feed",
                                "story"
                              ]
                            }
                          },
                          "required": [
                            "placement"
                          ],
                          "additionalProperties": false
                        },
                        "facebookSettings": {
                          "type": "object",
                          "properties": {
                            "placement": {
                              "type": "string",
                              "enum": [
                                "feed",
                                "story"
                              ]
                            }
                          },
                          "required": [
                            "placement"
                          ],
                          "additionalProperties": false
                        },
                        "xSettings": {
                          "type": "object",
                          "properties": {
                            "thread": {
                              "type": "boolean"
                            },
                            "parts": {
                              "minItems": 1,
                              "maxItems": 20,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 10000
                              }
                            }
                          },
                          "required": [
                            "thread"
                          ],
                          "additionalProperties": false
                        },
                        "tiktokSettings": {
                          "type": "object",
                          "properties": {
                            "photoTitle": {
                              "type": "string",
                              "maxLength": 90
                            },
                            "privacyLevel": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "disableComment": {
                              "type": "boolean"
                            },
                            "disableDuet": {
                              "type": "boolean"
                            },
                            "disableStitch": {
                              "type": "boolean"
                            },
                            "coverTimestampMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 36000000
                            },
                            "videoDurationMs": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "maximum": 36000000
                            },
                            "autoAddMusic": {
                              "type": "boolean"
                            },
                            "commercialContent": {
                              "type": "boolean"
                            },
                            "brandOrganic": {
                              "type": "boolean"
                            },
                            "brandContent": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        },
                        "youtubeSettings": {
                          "type": "object",
                          "properties": {
                            "privacyStatus": {
                              "type": "string",
                              "enum": [
                                "public",
                                "unlisted",
                                "private"
                              ]
                            },
                            "selfDeclaredMadeForKids": {
                              "type": "boolean"
                            },
                            "containsSyntheticMedia": {
                              "type": "boolean"
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "categoryId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32
                            },
                            "thumbnailMediaId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "required": [
                            "privacyStatus",
                            "selfDeclaredMadeForKids",
                            "containsSyntheticMedia",
                            "title",
                            "categoryId"
                          ],
                          "additionalProperties": false
                        },
                        "linkedinArticleSettings": {
                          "type": "object",
                          "properties": {
                            "sourceUrl": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "description": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 4000
                            },
                            "thumbnailMediaId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "required": [
                            "sourceUrl",
                            "title",
                            "description"
                          ],
                          "additionalProperties": false
                        },
                        "pinterestSettings": {
                          "type": "object",
                          "properties": {
                            "boardId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "link": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "boardId"
                          ],
                          "additionalProperties": false
                        },
                        "redditSettings": {
                          "minItems": 1,
                          "maxItems": 20,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "subreddit": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 300
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "self",
                                  "link",
                                  "media"
                                ]
                              },
                              "url": {
                                "type": "string",
                                "maxLength": 2048,
                                "format": "uri"
                              },
                              "flairId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "flairText": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "required": [
                              "subreddit",
                              "title",
                              "type"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "discordSettings": {
                          "type": "object",
                          "properties": {
                            "channelId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "required": [
                            "channelId"
                          ],
                          "additionalProperties": false
                        },
                        "dribbbleSettings": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 140
                            }
                          },
                          "required": [
                            "title"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "accountId"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "clientRequestId",
                  "content",
                  "scheduledAt",
                  "timezone",
                  "variants"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/posts/{postId}/schedule": {
      "post": {
        "summary": "Schedule an existing draft when workspace policy permits direct publishing",
        "x-required-scope": "posts:write",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "postId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/posts/{postId}/duplicate": {
      "post": {
        "summary": "Duplicate into a fresh draft without publishing state",
        "x-required-scope": "posts:draft",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "postId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scheduledAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "timezone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "expectedUpdatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "clientRequestId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  }
                },
                "required": [
                  "scheduledAt",
                  "timezone",
                  "expectedUpdatedAt",
                  "clientRequestId"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/posts/{postId}/next-slot": {
      "post": {
        "summary": "Assign the next free team slot to a draft; approval remains separate",
        "x-required-scope": "posts:draft",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "postId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "expectedUpdatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  }
                },
                "required": [
                  "expectedUpdatedAt"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/posting-slots": {
      "get": {
        "summary": "Read the team posting plan",
        "x-required-scope": "posts:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/publishing-policy": {
      "get": {
        "summary": "Read the independent-review requirement; this does not grant approval access",
        "x-required-scope": "posts:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/accounts": {
      "get": {
        "summary": "List sanitized accounts assigned to the key’s team",
        "x-required-scope": "accounts:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/media/library": {
      "get": {
        "summary": "List saved media with cursor pagination; agents are capped at 25 items",
        "x-required-scope": "media:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/post-imports": {
      "post": {
        "summary": "Save a private resumable import for the key creator and team",
        "x-required-scope": "posts:draft",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "batch": {
                    "type": "object",
                    "properties": {
                      "reuseLibraryMedia": {
                        "type": "boolean"
                      },
                      "posts": {
                        "minItems": 1,
                        "maxItems": 20,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "campaignLabel": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "clientRequestId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "content": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 10000
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 10000
                                    },
                                    "mediaIds": {
                                      "default": [],
                                      "maxItems": 35,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    }
                                  },
                                  "required": [
                                    "text",
                                    "mediaIds"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "platformOverrides": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string",
                                "enum": [
                                  "tiktok",
                                  "youtube",
                                  "facebook",
                                  "instagram",
                                  "threads",
                                  "linkedin",
                                  "x",
                                  "pinterest",
                                  "reddit",
                                  "gmb",
                                  "discord",
                                  "dribbble",
                                  "mastodon",
                                  "bluesky"
                                ]
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "text": {
                                    "type": "string",
                                    "maxLength": 10000
                                  },
                                  "mediaIds": {
                                    "maxItems": 35,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "scheduledAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "timezone": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "variants": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "wordpressSettings": {
                                    "type": "object",
                                    "properties": {
                                      "title": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      },
                                      "markdown": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100000
                                      },
                                      "excerpt": {
                                        "default": "",
                                        "type": "string",
                                        "maxLength": 2000
                                      },
                                      "slug": {
                                        "default": "",
                                        "type": "string",
                                        "maxLength": 200,
                                        "pattern": "^[a-z0-9-]*$"
                                      },
                                      "categories": {
                                        "default": [],
                                        "maxItems": 30,
                                        "type": "array",
                                        "items": {
                                          "type": "integer",
                                          "exclusiveMinimum": 0,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "tags": {
                                        "default": [],
                                        "maxItems": 30,
                                        "type": "array",
                                        "items": {
                                          "type": "integer",
                                          "exclusiveMinimum": 0,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "featuredMediaId": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "title",
                                      "markdown",
                                      "excerpt",
                                      "slug",
                                      "categories",
                                      "tags"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "overrides": {
                                    "type": "object",
                                    "properties": {
                                      "text": {
                                        "type": "string",
                                        "maxLength": 10000
                                      },
                                      "mediaIds": {
                                        "maxItems": 35,
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        }
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  "accountId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "content": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 10000
                                  },
                                  "mediaIds": {
                                    "maxItems": 35,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  },
                                  "firstComment": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 1000
                                  },
                                  "instagramSettings": {
                                    "type": "object",
                                    "properties": {
                                      "placement": {
                                        "type": "string",
                                        "enum": [
                                          "feed",
                                          "story"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "placement"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "facebookSettings": {
                                    "type": "object",
                                    "properties": {
                                      "placement": {
                                        "type": "string",
                                        "enum": [
                                          "feed",
                                          "story"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "placement"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "xSettings": {
                                    "type": "object",
                                    "properties": {
                                      "thread": {
                                        "type": "boolean"
                                      },
                                      "parts": {
                                        "minItems": 1,
                                        "maxItems": 20,
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "maxLength": 10000
                                        }
                                      }
                                    },
                                    "required": [
                                      "thread"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "tiktokSettings": {
                                    "type": "object",
                                    "properties": {
                                      "photoTitle": {
                                        "type": "string",
                                        "maxLength": 90
                                      },
                                      "privacyLevel": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64
                                      },
                                      "disableComment": {
                                        "type": "boolean"
                                      },
                                      "disableDuet": {
                                        "type": "boolean"
                                      },
                                      "disableStitch": {
                                        "type": "boolean"
                                      },
                                      "coverTimestampMs": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 36000000
                                      },
                                      "videoDurationMs": {
                                        "type": "number",
                                        "exclusiveMinimum": 0,
                                        "maximum": 36000000
                                      },
                                      "autoAddMusic": {
                                        "type": "boolean"
                                      },
                                      "commercialContent": {
                                        "type": "boolean"
                                      },
                                      "brandOrganic": {
                                        "type": "boolean"
                                      },
                                      "brandContent": {
                                        "type": "boolean"
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  "youtubeSettings": {
                                    "type": "object",
                                    "properties": {
                                      "privacyStatus": {
                                        "type": "string",
                                        "enum": [
                                          "public",
                                          "unlisted",
                                          "private"
                                        ]
                                      },
                                      "selfDeclaredMadeForKids": {
                                        "type": "boolean"
                                      },
                                      "containsSyntheticMedia": {
                                        "type": "boolean"
                                      },
                                      "title": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      },
                                      "categoryId": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 32
                                      },
                                      "thumbnailMediaId": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "required": [
                                      "privacyStatus",
                                      "selfDeclaredMadeForKids",
                                      "containsSyntheticMedia",
                                      "title",
                                      "categoryId"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "linkedinArticleSettings": {
                                    "type": "object",
                                    "properties": {
                                      "sourceUrl": {
                                        "type": "string",
                                        "maxLength": 2048,
                                        "format": "uri"
                                      },
                                      "title": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 200
                                      },
                                      "description": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4000
                                      },
                                      "thumbnailMediaId": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "required": [
                                      "sourceUrl",
                                      "title",
                                      "description"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "pinterestSettings": {
                                    "type": "object",
                                    "properties": {
                                      "boardId": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "title": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      },
                                      "link": {
                                        "type": "string",
                                        "maxLength": 2048,
                                        "format": "uri"
                                      }
                                    },
                                    "required": [
                                      "boardId"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "redditSettings": {
                                    "minItems": 1,
                                    "maxItems": 20,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "subreddit": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        "title": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 300
                                        },
                                        "type": {
                                          "type": "string",
                                          "enum": [
                                            "self",
                                            "link",
                                            "media"
                                          ]
                                        },
                                        "url": {
                                          "type": "string",
                                          "maxLength": 2048,
                                          "format": "uri"
                                        },
                                        "flairId": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        "flairText": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        }
                                      },
                                      "required": [
                                        "subreddit",
                                        "title",
                                        "type"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "discordSettings": {
                                    "type": "object",
                                    "properties": {
                                      "channelId": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "required": [
                                      "channelId"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "dribbbleSettings": {
                                    "type": "object",
                                    "properties": {
                                      "title": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 140
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "accountId"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "clientRequestId",
                            "content",
                            "scheduledAt",
                            "timezone",
                            "variants"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "posts"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "batch"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "get": {
        "summary": "List this creator’s recent import summaries",
        "x-required-scope": "posts:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/post-imports/{importId}": {
      "get": {
        "summary": "Read this creator’s saved import",
        "x-required-scope": "posts:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "importId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      },
      "delete": {
        "summary": "Discard import history, preserving saved drafts",
        "x-required-scope": "posts:draft",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "importId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/post-imports/{importId}/run": {
      "post": {
        "summary": "Process unfinished rows using their original IDs",
        "x-required-scope": "posts:draft",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "importId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/analytics/tiktok/videos": {
      "get": {
        "summary": "Read saved metrics; never triggers a provider refresh",
        "x-required-scope": "analytics:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/analytics/youtube/videos": {
      "get": {
        "summary": "Read saved metrics; never triggers a provider refresh",
        "x-required-scope": "analytics:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/analytics/facebook/posts": {
      "get": {
        "summary": "Read saved metrics; never triggers a provider refresh",
        "x-required-scope": "analytics:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/analytics/instagram/media": {
      "get": {
        "summary": "Read saved metrics; never triggers a provider refresh",
        "x-required-scope": "analytics:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/analytics/linkedin/posts": {
      "get": {
        "summary": "Read saved metrics; never triggers a provider refresh",
        "x-required-scope": "analytics:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/analytics/pinterest/pins": {
      "get": {
        "summary": "Read saved metrics; never triggers a provider refresh",
        "x-required-scope": "analytics:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/analytics/threads/posts": {
      "get": {
        "summary": "Read saved metrics; never triggers a provider refresh",
        "x-required-scope": "analytics:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/analytics/x/posts": {
      "get": {
        "summary": "Read saved metrics; never triggers a provider refresh",
        "x-required-scope": "analytics:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/analytics/mastodon/posts": {
      "get": {
        "summary": "Read saved metrics; never triggers a provider refresh",
        "x-required-scope": "analytics:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/analytics/bluesky/posts": {
      "get": {
        "summary": "Read saved metrics; never triggers a provider refresh",
        "x-required-scope": "analytics:read",
        "security": [
          {
            "bearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "X-Team-Id",
            "in": "header",
            "required": true,
            "description": "The key is permanently bound to this team; this header cannot expand access.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response; see the developer guide for the stable envelope and retry guidance."
          },
          "201": {
            "description": "201 response; see the developer guide for the stable envelope and retry guidance."
          },
          "207": {
            "description": "Per-item bulk results. Inspect data.results and retain successful IDs."
          },
          "400": {
            "description": "400 response; see the developer guide for the stable envelope and retry guidance."
          },
          "401": {
            "description": "401 response; see the developer guide for the stable envelope and retry guidance."
          },
          "403": {
            "description": "403 response; see the developer guide for the stable envelope and retry guidance."
          },
          "404": {
            "description": "404 response; see the developer guide for the stable envelope and retry guidance."
          },
          "409": {
            "description": "409 response; see the developer guide for the stable envelope and retry guidance."
          },
          "429": {
            "description": "Rate limited; respect Retry-After. No automatic retry loop."
          },
          "503": {
            "description": "503 response; see the developer guide for the stable envelope and retry guidance."
          }
        }
      }
    }
  }
}
