{
  "openapi": "3.1.0",
  "info": {
    "title": "DevPost API",
    "version": "0.0.1",
    "summary": "Agents do the work. You stay in control.",
    "description": "Run your social presence from one control room: connect channels, compose platform-native content, schedule, publish and inspect results.\n\nThis REST API and the MCP server at `/mcp` are two transports over the same tool registry — every operation below is the same behaviour an MCP client gets, with the same OAuth credentials.\n\n## Authentication\n\nOAuth 2.1 (authorization code + PKCE), served by the same authorization server as MCP. Metadata: `/.well-known/oauth-authorization-server`. Dynamic client registration is open, so an agent can register itself. Send the token as `Authorization: Bearer <token>`.\n\n## Scopes\n\nPermissions are per operational area and per direction, e.g. `compose:read` / `publish:write`. A `:write` grant implies the matching `:read`. Each operation declares the one scope it needs.\n\n## Errors\n\nEvery failure — including 401, 404 and validation — returns the same JSON object: `{ \"error\": { \"code\", \"message\", \"resolution\", \"status\", \"operationId?\", \"details?\", \"documentationUrl\" } }`. Branch on `code`.\n\n## Rate limits\n\n120 requests per 60s per account. Every response carries `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset` (and `X-RateLimit-*` aliases); a 429 adds `Retry-After`. The counter is per server instance.\n\n## Idempotency\n\nOperations that are not naturally idempotent accept an `Idempotency-Key` header (any unique string, e.g. a UUID). Replaying a key returns the stored response with `Idempotent-Replayed: true`; reusing it with a different payload returns `409 idempotency_conflict`. Keys are remembered for 24h per server instance. Operations where retrying is already safe are marked `x-idempotent: true` and ignore the header.\n\n## Pagination\n\nCursor-based, where the underlying source paginates. Such operations take a cursor parameter (and usually `limit`) and their response carries `pagination: { nextCursor, hasMore }`. Pass `nextCursor` back to get the next page; a null cursor means the end. Operations without a cursor parameter return the complete set.\n\n## Versioning\n\nA breaking change ships as a new path version (/api/v2). Additive changes — new operations, new optional fields — land in v1 without notice. A deprecated operation keeps working for at least 180 days. It is marked `deprecated: true` in this document and every response carries the RFC 9745 `Deprecation` header and, once scheduled, the RFC 8594 `Sunset` header with a `Link rel=\"deprecation\"` to the notes.",
    "contact": {
      "name": "DevPost",
      "url": "https://devpost.app/docs/mcp"
    },
    "x-versioning": {
      "strategy": "path",
      "current": "v1",
      "basePath": "/api/v1",
      "breakingChangePolicy": "A breaking change ships as a new path version (/api/v2). Additive changes — new operations, new optional fields — land in v1 without notice.",
      "deprecationPolicy": "A deprecated operation keeps working for at least 180 days. It is marked `deprecated: true` in this document and every response carries the RFC 9745 `Deprecation` header and, once scheduled, the RFC 8594 `Sunset` header with a `Link rel=\"deprecation\"` to the notes.",
      "deprecated": [],
      "sunset": null
    }
  },
  "servers": [
    {
      "url": "https://devpost.app",
      "description": "DevPost"
    }
  ],
  "externalDocs": {
    "description": "Agent and MCP documentation",
    "url": "https://devpost.app/docs/mcp"
  },
  "tags": [
    {
      "name": "Discovery",
      "description": "Find out what this API exposes, without a token."
    },
    {
      "name": "Accounts",
      "description": "Accounts operations (scopes accounts:read, accounts:write)."
    },
    {
      "name": "Growth",
      "description": "Growth operations (scopes growth:read, growth:write)."
    },
    {
      "name": "Compose",
      "description": "Compose operations (scopes compose:read, compose:write)."
    },
    {
      "name": "Media",
      "description": "Media operations (scopes media:read, media:write)."
    },
    {
      "name": "Publish",
      "description": "Publish operations (scopes publish:read, publish:write)."
    },
    {
      "name": "Insights",
      "description": "Insights operations (scopes insights:read, insights:write)."
    },
    {
      "name": "Billing",
      "description": "Billing operations (scopes billing:read, billing:write)."
    }
  ],
  "security": [
    {
      "oauth2": []
    }
  ],
  "paths": {
    "/api/v1": {
      "get": {
        "operationId": "list_api_operations",
        "summary": "Discovery: operation index",
        "description": "List every operation this API exposes, with its method, path, required scope and behavioural hints. Unauthenticated.",
        "tags": [
          "Discovery"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The operation index.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiIndex"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "get_openapi_document",
        "summary": "Discovery: OpenAPI document",
        "description": "This document, generated from the live tool registry. Unauthenticated.",
        "tags": [
          "Discovery"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The OpenAPI 3.1 document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/list_accounts": {
      "get": {
        "operationId": "list_accounts",
        "summary": "Accounts: Connected accounts",
        "description": "List the connected social accounts: the platform/@handle every tool takes as `account`, status, whether a profile context is set (get_account_profile) and the latest audience numbers such as followers or karma, with when they were read (sync_account refreshes them). Accounts with status token_expired need reconnecting via connect_account.\n\nOperational area: Accounts.\nRequired scope: `accounts:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "oauth2": [
              "accounts:read"
            ]
          }
        ],
        "x-scope": "accounts:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "list_accounts",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Connected accounts result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "list_accounts"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/accounts/connect_account": {
      "post": {
        "operationId": "connect_account",
        "summary": "Accounts: Connect an account",
        "description": "Start connecting a social account. Returns a URL the user must open in a browser (logged into the app) to authorize the platform.\n\nOperational area: Accounts.\nRequired scope: `accounts:write`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "oauth2": [
              "accounts:write"
            ]
          }
        ],
        "x-scope": "accounts:write",
        "x-read-only": false,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "connect_account",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "platform": {
                    "type": "string",
                    "enum": [
                      "x",
                      "reddit",
                      "instagram",
                      "tiktok",
                      "youtube",
                      "facebook",
                      "linkedin"
                    ]
                  }
                },
                "required": [
                  "platform"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Connect an account result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "connect_account"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/accounts/set_sync_cadence": {
      "post": {
        "operationId": "set_sync_cadence",
        "summary": "Accounts: Set how often an account syncs",
        "description": "How often the scheduler syncs this account on its own: 180 (every 3 hours), 360 (every 6 hours), 720 (every 12 hours), 1440 (once a day), null (on demand only). Each scheduled sync does exactly what sync_account does, with the same metered, rate-limited reads, so leave an account you are not watching on demand only and call sync_account when you need it fresh.\n\nOperational area: Accounts.\nRequired scope: `accounts:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "oauth2": [
              "accounts:write"
            ]
          }
        ],
        "x-scope": "accounts:write",
        "x-read-only": false,
        "x-idempotent": true,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "set_sync_cadence",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  },
                  "intervalMinutes": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Minutes between scheduled syncs; null = on demand only"
                  }
                },
                "required": [
                  "account",
                  "intervalMinutes"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Set how often an account syncs result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "set_sync_cadence"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/accounts/disconnect_account": {
      "post": {
        "operationId": "disconnect_account",
        "summary": "Accounts: Disconnect an account",
        "description": "Disconnect (remove) a connected social account and its stored tokens.\n\nOperational area: Accounts.\nRequired scope: `accounts:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "oauth2": [
              "accounts:write"
            ]
          }
        ],
        "x-scope": "accounts:write",
        "x-read-only": false,
        "x-idempotent": true,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "disconnect_account",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  }
                },
                "required": [
                  "account"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Disconnect an account result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "disconnect_account"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/accounts/get_account_profile": {
      "get": {
        "operationId": "get_account_profile",
        "summary": "Accounts: Account profile context",
        "description": "Read the user-authored context for an account — identity, product, audience, voice, proof, links and boundaries. Read it before any account-specific draft or plan, honor it, and never invent what it leaves out.\n\nOperational area: Accounts.\nRequired scope: `accounts:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "oauth2": [
              "accounts:read"
            ]
          }
        ],
        "x-scope": "accounts:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "get_account_profile",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Account profile context result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "get_account_profile"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/compose/describe_platform": {
      "get": {
        "operationId": "describe_platform",
        "summary": "Compose: Platform contract",
        "description": "Get the PlatformDescriptor(s): content limits, required extra fields and destination rules. Call before create_post to build valid input — the same contract the UI uses. This is the platform-wide contract only: where a platform delegates rules to the destination (Reddit: every subreddit sets its own post types, media, title words, body policy and flair), narrow it with get_composer_context for that destination, or reddit_get_subreddit_rules.\n\nOperational area: Compose.\nRequired scope: `compose:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Compose"
        ],
        "security": [
          {
            "oauth2": [
              "compose:read"
            ]
          }
        ],
        "x-scope": "compose:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "describe_platform",
        "parameters": [
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "x",
                "reddit",
                "instagram",
                "tiktok",
                "youtube",
                "facebook",
                "linkedin"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Platform contract result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "describe_platform"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/compose/get_composer_context": {
      "get": {
        "operationId": "get_composer_context",
        "summary": "Compose: Live composer constraints",
        "description": "Get live account-specific publishing constraints, narrowing describe_platform. Pass the destination to get its own rules — a subreddit decides whether images, galleries or video are allowed, and the returned media block overrides the static descriptor. Call it before attaching media on reddit.\n\nOperational area: Compose.\nRequired scope: `compose:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Compose"
        ],
        "security": [
          {
            "oauth2": [
              "compose:read"
            ]
          }
        ],
        "x-scope": "compose:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "get_composer_context",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "destination",
            "in": "query",
            "required": false,
            "description": "Destination the post will target — required to get destination-scoped rules such as a subreddit's media policy",
            "schema": {
              "description": "Destination the post will target — required to get destination-scoped rules such as a subreddit's media policy",
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "Destination type (e.g. \"subreddit\", \"community\", \"public\")"
                },
                "id": {
                  "type": "string",
                  "description": "Destination identifier (e.g. subreddit name, community URL)"
                },
                "name": {
                  "type": "string",
                  "description": "Display name (e.g. \"r/webdev\")"
                },
                "metadata": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                },
                "description": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "id",
                "name"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Live composer constraints result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "get_composer_context"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/compose/search_destinations": {
      "get": {
        "operationId": "search_destinations",
        "summary": "Compose: Find a destination",
        "description": "Search/resolve posting destinations for an account (e.g. subreddits). Includes the recently used destinations first. Once you pick one, read its rules with get_composer_context (any platform) or reddit_get_subreddit_rules before writing: on Reddit what a community accepts differs from the platform default and from what other communities accept.\n\nOperational area: Compose.\nRequired scope: `compose:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.\nPaginated: pass `cursor` from the previous response's `pagination.nextCursor`.",
        "tags": [
          "Compose"
        ],
        "security": [
          {
            "oauth2": [
              "compose:read"
            ]
          }
        ],
        "x-scope": "compose:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "search_destinations",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "Search text, or empty to only get recent destinations",
            "schema": {
              "type": "string",
              "description": "Search text, or empty to only get recent destinations"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Find a destination result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "search_destinations"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/compose/review_post": {
      "get": {
        "operationId": "review_post",
        "summary": "Compose: Preflight the copy",
        "description": "Preflight final copy for platform distribution risks, engagement bait, overly promotional phrasing and repetition. Call before create_post for generated copy. This is a rule-based warning, not a guarantee of ranking.\n\nOperational area: Compose.\nRequired scope: `compose:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Compose"
        ],
        "security": [
          {
            "oauth2": [
              "compose:read"
            ]
          }
        ],
        "x-scope": "compose:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "review_post",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "content",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Preflight the copy result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "review_post"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/create_post": {
      "post": {
        "operationId": "create_post",
        "summary": "Publish: Create or publish a post",
        "description": "Create content on any platform with one standard input, validated against the PlatformDescriptor AND the chosen destination's own rules (a subreddit's required flair, title words, body policy and media limits) — the errors name exactly what to fix, so call get_composer_context with the destination first to get them right. Copy review_post would block is refused, so call it first for generated copy. Without scheduledAt it publishes immediately; with a future scheduledAt it gets scheduled; asDraft saves an unscheduled draft. Never combine scheduledAt with asDraft true. Set deliveryMethod:'handoff' (only where describe_platform reports a handoff capability, e.g. X) to skip the API and get back a prefilled composer URL for the user to post manually — it's saved as a draft until confirmed, and can't be scheduled.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "create_post",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  },
                  "content": {
                    "type": "string",
                    "description": "The post body/content"
                  },
                  "title": {
                    "description": "Standard title input (required by e.g. Reddit)",
                    "type": "string"
                  },
                  "destination": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "Destination type (e.g. \"subreddit\", \"community\", \"public\")"
                      },
                      "id": {
                        "type": "string",
                        "description": "Destination identifier (e.g. subreddit name, community URL)"
                      },
                      "name": {
                        "type": "string",
                        "description": "Display name (e.g. \"r/webdev\")"
                      },
                      "metadata": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      "description": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "id",
                      "name"
                    ]
                  },
                  "additionalFields": {
                    "description": "Platform-specific fields declared by the PlatformDescriptor",
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "replyTo": {
                    "description": "Makes this a reply/comment to an existing remote item instead of a fresh post. The adapter routes it to comment/reply on publish; title and destination are not required.",
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "url": {
                        "type": "string"
                      },
                      "author": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id"
                    ]
                  },
                  "media": {
                    "description": "Public image/video assets. URLs may come from the built-in uploader or an external generator such as DevMotion.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri",
                          "description": "Public HTTPS URL that the platform can fetch"
                        },
                        "storageKey": {
                          "description": "Bucket key when the file lives in our storage — set by the uploader, empty for external URLs",
                          "type": "string"
                        },
                        "mimeType": {
                          "type": "string",
                          "pattern": "^(image|video)\\/[a-z0-9.+-]+$",
                          "description": "IANA image/* or video/* MIME type"
                        },
                        "sizeBytes": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "altText": {
                          "type": "string",
                          "maxLength": 1000
                        }
                      },
                      "required": [
                        "url",
                        "mimeType"
                      ]
                    }
                  },
                  "scheduledAt": {
                    "description": "ISO 8601 datetime with an explicit offset (e.g. 2026-08-01T10:00:00+02:00) in the future to schedule instead of publishing now. Resolve relative dates in the user's timezone; MCP callers should call get_schedule first.",
                    "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)))$"
                  },
                  "sceneId": {
                    "description": "Link this post to a generative scene. The scene's rendered video is resolved at publish time, so the post waits for the render (and picks up a regenerated one) instead of carrying a frozen copy.",
                    "type": "string"
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "native",
                      "imported",
                      "ai-generated"
                    ]
                  },
                  "aiGenerated": {
                    "description": "True when an AI agent wrote the copy — kept as the post provenance",
                    "type": "boolean"
                  },
                  "aiPrompt": {
                    "type": "string"
                  },
                  "aiModel": {
                    "type": "string"
                  },
                  "asDraft": {
                    "description": "Save as an unscheduled draft. Omit or set false when scheduledAt is present.",
                    "type": "boolean"
                  },
                  "deliveryMethod": {
                    "description": "How a right-now publish leaves: 'api' (default) sends through the platform API; 'handoff' returns a prefilled composer URL for manual posting. Only valid without scheduledAt/asDraft and where the platform's descriptor.handoff is set.",
                    "type": "string",
                    "enum": [
                      "api",
                      "handoff"
                    ]
                  }
                },
                "required": [
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Create or publish a post result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "create_post"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/list_posts": {
      "get": {
        "operationId": "list_posts",
        "summary": "Publish: List posts",
        "description": "List posts from the central table with filters and pagination — content is trimmed to a preview. Pass postId to get that single post in full instead: untruncated content, platform fields, reply target and every attached media asset. Do that before update_post, which replaces the whole media array (omitting media you meant to keep detaches it).\n\nOperational area: Publish.\nRequired scope: `publish:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:read"
            ]
          }
        ],
        "x-scope": "publish:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "list_posts",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "postId",
            "in": "query",
            "required": false,
            "description": "Return only this post, in full detail. Other filters are ignored.",
            "schema": {
              "description": "Return only this post, in full detail. Other filters are ignored.",
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "scheduled",
                  "publishing",
                  "awaiting_publish",
                  "posted",
                  "failed"
                ]
              }
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List posts result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "list_posts"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/update_post": {
      "post": {
        "operationId": "update_post",
        "summary": "Publish: Update a post",
        "description": "Update a draft/scheduled post (content, title, destination, fields, media, scene link or schedule time), and optionally publish that same post now. Re-validated against the destination's own rules like create_post, so a change that breaks them is refused with the reason. A post backed by an unrendered scene is held, not sent, until the user releases that scene.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "update_post",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "postId": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  },
                  "title": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "destination": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Destination type (e.g. \"subreddit\", \"community\", \"public\")"
                          },
                          "id": {
                            "type": "string",
                            "description": "Destination identifier (e.g. subreddit name, community URL)"
                          },
                          "name": {
                            "type": "string",
                            "description": "Display name (e.g. \"r/webdev\")"
                          },
                          "metadata": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          "description": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "id",
                          "name"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "additionalFields": {
                    "anyOf": [
                      {
                        "description": "Platform-specific fields declared by the PlatformDescriptor",
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "media": {
                    "anyOf": [
                      {
                        "description": "Public image/video assets. URLs may come from the built-in uploader or an external generator such as DevMotion.",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string",
                              "format": "uri",
                              "description": "Public HTTPS URL that the platform can fetch"
                            },
                            "storageKey": {
                              "description": "Bucket key when the file lives in our storage — set by the uploader, empty for external URLs",
                              "type": "string"
                            },
                            "mimeType": {
                              "type": "string",
                              "pattern": "^(image|video)\\/[a-z0-9.+-]+$",
                              "description": "IANA image/* or video/* MIME type"
                            },
                            "sizeBytes": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "altText": {
                              "type": "string",
                              "maxLength": 1000
                            }
                          },
                          "required": [
                            "url",
                            "mimeType"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sceneId": {
                    "description": "Back this post with a generative scene, or null to detach it.",
                    "anyOf": [
                      {
                        "description": "Link this post to a generative scene. The scene's rendered video is resolved at publish time, so the post waits for the render (and picks up a regenerated one) instead of carrying a frozen copy.",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "scheduledAt": {
                    "description": "New ISO 8601 schedule time (with timezone), or null to unschedule",
                    "anyOf": [
                      {
                        "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)))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "publishNow": {
                    "description": "Publish the updated draft immediately instead of keeping or scheduling it",
                    "type": "boolean"
                  },
                  "deliveryMethod": {
                    "description": "With publishNow: 'api' (default) sends through the platform API; 'handoff' returns a prefilled composer URL for manual posting (only where the platform supports it).",
                    "type": "string",
                    "enum": [
                      "api",
                      "handoff"
                    ]
                  }
                },
                "required": [
                  "postId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Update a post result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "update_post"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/refresh_publish_status": {
      "post": {
        "operationId": "refresh_publish_status",
        "summary": "Publish: Refresh publish status",
        "description": "Refresh an asynchronous publish without uploading again. TikTok Inbox delivery returns awaiting_publish with instructions; posted means the creator completed publishing in TikTok. No editor URL is provided.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "refresh_publish_status",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "postId": {
                    "type": "string"
                  }
                },
                "required": [
                  "postId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Refresh publish status result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "refresh_publish_status"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/cancel_post": {
      "post": {
        "operationId": "cancel_post",
        "summary": "Publish: Cancel a scheduled post",
        "description": "Cancel a scheduled post (it becomes a draft again).\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": true,
        "x-destructive": true,
        "x-third-party": false,
        "x-mcp-tool": "cancel_post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "postId": {
                    "type": "string"
                  }
                },
                "required": [
                  "postId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Cancel a scheduled post result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "cancel_post"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/get_post_stats": {
      "get": {
        "operationId": "get_post_stats",
        "summary": "Insights: Post metrics",
        "description": "Latest known metrics and snapshot history for a post (run sync_account to refresh).\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "get_post_stats",
        "parameters": [
          {
            "name": "postId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "snapshots",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Post metrics result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "get_post_stats"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/accounts/sync_account": {
      "post": {
        "operationId": "sync_account",
        "summary": "Accounts: Sync an account now",
        "description": "Sync an account now: import remote posts, collect metric snapshots, pull new interactions, refresh the audience numbers (followers, karma, subscribers).\n\nOperational area: Accounts.\nRequired scope: `accounts:write`.\nReaches a third-party platform, so results depend on that platform.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "oauth2": [
              "accounts:write"
            ]
          }
        ],
        "x-scope": "accounts:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "sync_account",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Sync an account now result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "sync_account"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/get_new_interactions": {
      "get": {
        "operationId": "get_new_interactions",
        "summary": "Insights: New interactions",
        "description": "New (unseen) comments/replies/mentions across connected accounts, de-duplicated when the same item reaches more than one account (each carries its owning account). Acknowledge the ones handled with mark_interactions_seen.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "get_new_interactions",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          }
        ],
        "responses": {
          "200": {
            "description": "New interactions result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "get_new_interactions"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/mark_interactions_seen": {
      "post": {
        "operationId": "mark_interactions_seen",
        "summary": "Insights: Acknowledge interactions",
        "description": "Mark interactions from get_new_interactions as seen, by id, so they stop coming back. Copies of the same item on other accounts are acknowledged too.\n\nOperational area: Insights.\nRequired scope: `insights:write`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:write"
            ]
          }
        ],
        "x-scope": "insights:write",
        "x-read-only": false,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "mark_interactions_seen",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "ids"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledge interactions result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "mark_interactions_seen"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/compose/get_schedule": {
      "get": {
        "operationId": "get_schedule",
        "summary": "Compose: Clock and agenda",
        "description": "Current server clock, scheduled-posts agenda and next free 20-minute slot. Call this before resolving relative timing such as “later”; pass the user's IANA timezone for unambiguous local labels.\n\nOperational area: Compose.\nRequired scope: `compose:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Compose"
        ],
        "security": [
          {
            "oauth2": [
              "compose:read"
            ]
          }
        ],
        "x-scope": "compose:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "get_schedule",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "timeZone",
            "in": "query",
            "required": false,
            "description": "User IANA timezone, for example Europe/Madrid",
            "schema": {
              "description": "User IANA timezone, for example Europe/Madrid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Clock and agenda result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "get_schedule"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/reddit_list_posts": {
      "get": {
        "operationId": "reddit_list_posts",
        "summary": "Insights: Reddit: browse posts",
        "description": "Read posts from a subreddit, sorted (hot/new/top/rising) and paginated via the after cursor.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.\nPaginated: pass `after` from the previous response's `pagination.nextCursor`.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "reddit_list_posts",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "subreddit",
            "in": "query",
            "required": true,
            "description": "Subreddit name, with or without r/ prefix",
            "schema": {
              "type": "string",
              "description": "Subreddit name, with or without r/ prefix"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "hot",
                "new",
                "top",
                "rising"
              ]
            }
          },
          {
            "name": "timeframe",
            "in": "query",
            "required": false,
            "description": "Only meaningful with sort=top",
            "schema": {
              "description": "Only meaningful with sort=top",
              "type": "string",
              "enum": [
                "hour",
                "day",
                "week",
                "month",
                "year",
                "all"
              ]
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Pagination cursor from a previous call",
            "schema": {
              "description": "Pagination cursor from a previous call",
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reddit: browse posts result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "reddit_list_posts"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/reddit_get_post_comments": {
      "get": {
        "operationId": "reddit_get_post_comments",
        "summary": "Insights: Reddit: post comments",
        "description": "Read the comment tree of a reddit post (by post id, e.g. from reddit_list_posts).\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "reddit_get_post_comments",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "postId",
            "in": "query",
            "required": true,
            "description": "Reddit post id (with or without t3_ prefix)",
            "schema": {
              "type": "string",
              "description": "Reddit post id (with or without t3_ prefix)"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 200
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 10
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "best",
                "top",
                "new",
                "controversial"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reddit: post comments result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "reddit_get_post_comments"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/compose/reddit_get_subreddit_rules": {
      "get": {
        "operationId": "reddit_get_subreddit_rules",
        "summary": "Compose: Reddit: subreddit rules",
        "description": "Everything you must know before writing for a subreddit: its rules and guidelines, which post types and media it takes for THIS account, title/body requirements, gallery limits and the flair list (flairField.required means a post without one is rejected). Read it before create_post or reddit_submit_post — subreddit rules differ from the platform contract in describe_platform, and they are enforced when the post is created.\n\nOperational area: Compose.\nRequired scope: `compose:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Compose"
        ],
        "security": [
          {
            "oauth2": [
              "compose:read"
            ]
          }
        ],
        "x-scope": "compose:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "reddit_get_subreddit_rules",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "subreddit",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reddit: subreddit rules result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "reddit_get_subreddit_rules"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/compose/reddit_search_subreddits": {
      "get": {
        "operationId": "reddit_search_subreddits",
        "summary": "Compose: Reddit: find subreddits",
        "description": "Search subreddits by name/topic, paginated. Follow up with reddit_get_subreddit_rules on the one you choose: what it accepts is decided per community.\n\nOperational area: Compose.\nRequired scope: `compose:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.\nPaginated: pass `cursor` from the previous response's `pagination.nextCursor`.",
        "tags": [
          "Compose"
        ],
        "security": [
          {
            "oauth2": [
              "compose:read"
            ]
          }
        ],
        "x-scope": "compose:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "reddit_search_subreddits",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reddit: find subreddits result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "reddit_search_subreddits"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/reddit_submit_post": {
      "post": {
        "operationId": "reddit_submit_post",
        "summary": "Publish: Reddit: submit a post",
        "description": "Shortcut to post (or schedule) on a subreddit — text, link, image, gallery or video. Read reddit_get_subreddit_rules for this subreddit FIRST: it states the required flair, title words and length, whether a body is required or refused, and which media it takes. Those rules are enforced here, so a post that breaks them is refused with the reason instead of being published.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "reddit_submit_post",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  },
                  "subreddit": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 300
                  },
                  "content": {
                    "type": "string",
                    "description": "Post body (text posts) — ignored for link posts"
                  },
                  "postType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "link"
                    ]
                  },
                  "flair": {
                    "description": "Post flair id, from reddit_get_subreddit_rules — mandatory where postRequirements.flairRequired is true",
                    "type": "string"
                  },
                  "media": {
                    "description": "Images (single or gallery) or one video plus one image as its thumbnail. Each subreddit decides what it accepts — check get_composer_context with this subreddit first.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri",
                          "description": "Public HTTPS URL that the platform can fetch"
                        },
                        "storageKey": {
                          "description": "Bucket key when the file lives in our storage — set by the uploader, empty for external URLs",
                          "type": "string"
                        },
                        "mimeType": {
                          "type": "string",
                          "pattern": "^(image|video)\\/[a-z0-9.+-]+$",
                          "description": "IANA image/* or video/* MIME type"
                        },
                        "sizeBytes": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "altText": {
                          "type": "string",
                          "maxLength": 1000
                        }
                      },
                      "required": [
                        "url",
                        "mimeType"
                      ]
                    }
                  },
                  "url": {
                    "description": "Required when postType=link",
                    "type": "string"
                  },
                  "scheduledAt": {
                    "description": "Future ISO 8601 datetime with timezone to schedule instead of posting now",
                    "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": [
                  "subreddit",
                  "title",
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reddit: submit a post result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "reddit_submit_post"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/reddit_comment": {
      "post": {
        "operationId": "reddit_comment",
        "summary": "Publish: Reddit: comment or reply",
        "description": "Comment on a reddit post (parent t3_...) or reply to a comment (parent t1_...). Engagement bait and other content guardrail blocks are refused.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "reddit_comment",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  },
                  "parentFullname": {
                    "type": "string",
                    "pattern": "^t[13]_"
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "parentFullname",
                  "text"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reddit: comment or reply result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "reddit_comment"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/reddit_get_inbox": {
      "get": {
        "operationId": "reddit_get_inbox",
        "summary": "Insights: Reddit: inbox",
        "description": "Read the unread Reddit inbox (comment replies, mentions, messages). Leaves them unread; reddit_mark_inbox_read marks them read.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "reddit_get_inbox",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reddit: inbox result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "reddit_get_inbox"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/reddit_mark_inbox_read": {
      "post": {
        "operationId": "reddit_mark_inbox_read",
        "summary": "Insights: Reddit: mark inbox read",
        "description": "Mark every message in the connected Reddit inbox as read, on Reddit itself: all unread messages, including any reddit_get_inbox has not returned yet. Reddit offers no way to mark them unread again in bulk.\n\nOperational area: Insights.\nRequired scope: `insights:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:write"
            ]
          }
        ],
        "x-scope": "insights:write",
        "x-read-only": false,
        "x-idempotent": true,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "reddit_mark_inbox_read",
        "parameters": [],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reddit: mark inbox read result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "reddit_mark_inbox_read"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/compose/x_get_inspiration": {
      "get": {
        "operationId": "x_get_inspiration",
        "summary": "Compose: X: creative references",
        "description": "Read stored creative-reference posts and source accounts from the DevPost database. This call does not contact X or refresh the stored posts. Returns saved content, URLs, timestamps and metrics for use when drafting; never copy wording or mimic an identity.\n\nOperational area: Compose.\nRequired scope: `compose:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Compose"
        ],
        "security": [
          {
            "oauth2": [
              "compose:read"
            ]
          }
        ],
        "x-scope": "compose:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "x_get_inspiration",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "X: creative references result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "x_get_inspiration"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/x_search_recent": {
      "get": {
        "operationId": "x_search_recent",
        "summary": "Insights: X: search recent posts",
        "description": "Discover recent public X posts matching a focused query. Use this to find relevant conversations; never mass-reply.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "x_search_recent",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 10,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "X: search recent posts result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "x_search_recent"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/x_get_timeline": {
      "get": {
        "operationId": "x_get_timeline",
        "summary": "Insights: X: your timeline",
        "description": "Your recent X posts (excludes replies/retweets), with public metrics. sinceId returns only newer posts.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "x_get_timeline",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "sinceId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "X: your timeline result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "x_get_timeline"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/x_get_mentions": {
      "get": {
        "operationId": "x_get_mentions",
        "summary": "Insights: X: mentions",
        "description": "New mentions/replies to your X account, with thread linkage. sinceId returns only newer ones.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "x_get_mentions",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "sinceId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "X: mentions result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "x_get_mentions"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/x_post": {
      "post": {
        "operationId": "x_post",
        "summary": "Publish: X: post or schedule",
        "description": "Shortcut to post (or schedule) on X — public timeline or a community. Delegates to the standard create_post path.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "x_post",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  },
                  "content": {
                    "type": "string",
                    "maxLength": 280
                  },
                  "media": {
                    "description": "Up to four images, or one video, using uploaded or public media URLs",
                    "maxItems": 4,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri",
                          "description": "Public HTTPS URL that the platform can fetch"
                        },
                        "storageKey": {
                          "description": "Bucket key when the file lives in our storage — set by the uploader, empty for external URLs",
                          "type": "string"
                        },
                        "mimeType": {
                          "type": "string",
                          "pattern": "^(image|video)\\/[a-z0-9.+-]+$",
                          "description": "IANA image/* or video/* MIME type"
                        },
                        "sizeBytes": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "altText": {
                          "type": "string",
                          "maxLength": 1000
                        }
                      },
                      "required": [
                        "url",
                        "mimeType"
                      ]
                    }
                  },
                  "community": {
                    "description": "Community URL (https://x.com/i/communities/<id>) or id — omit for public timeline",
                    "type": "string"
                  },
                  "scheduledAt": {
                    "description": "Future ISO 8601 datetime with timezone to schedule instead of posting now",
                    "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": [
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "X: post or schedule result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "x_post"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/x_reply": {
      "post": {
        "operationId": "x_reply",
        "summary": "Publish: X: reply to a tweet",
        "description": "Reply to a tweet by id. Engagement bait and other content guardrail blocks are refused. A restricted self-service reply returns a manual X composer URL instead of repeatedly failing.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "x_reply",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  },
                  "inReplyToTweetId": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string",
                    "maxLength": 280
                  }
                },
                "required": [
                  "inReplyToTweetId",
                  "text"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "X: reply to a tweet result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "x_reply"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/x_get_post_metrics": {
      "get": {
        "operationId": "x_get_post_metrics",
        "summary": "Insights: X: post metrics",
        "description": "Public metrics (likes, replies, reposts, impressions) of a tweet by id.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "x_get_post_metrics",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "tweetId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "X: post metrics result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "x_get_post_metrics"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/x_get_replies": {
      "get": {
        "operationId": "x_get_replies",
        "summary": "Insights: X: replies to a tweet",
        "description": "Read the replies/comments under one of your tweets (by tweet id) — the conversation thread, works for public-timeline and community posts. Pair with x_get_post_metrics for likes/impressions and use each reply id with x_reply to respond. Note: X recent search only covers roughly the last 7 days.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.\nPaginated: pass `cursor` from the previous response's `pagination.nextCursor`.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "x_get_replies",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "tweetId",
            "in": "query",
            "required": true,
            "description": "The tweet whose replies you want to read",
            "schema": {
              "type": "string",
              "description": "The tweet whose replies you want to read"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Pagination token from a previous call",
            "schema": {
              "description": "Pagination token from a previous call",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "X: replies to a tweet result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "x_get_replies"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/instagram_post": {
      "post": {
        "operationId": "instagram_post",
        "summary": "Publish: Instagram: post or schedule",
        "description": "Publish or schedule an Instagram image, Reel, or 2–10-item carousel through the standard post pipeline.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "instagram_post",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 2200
                  },
                  "media": {
                    "minItems": 1,
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri",
                          "description": "Public HTTPS URL that the platform can fetch"
                        },
                        "storageKey": {
                          "description": "Bucket key when the file lives in our storage — set by the uploader, empty for external URLs",
                          "type": "string"
                        },
                        "mimeType": {
                          "type": "string",
                          "pattern": "^(image|video)\\/[a-z0-9.+-]+$",
                          "description": "IANA image/* or video/* MIME type"
                        },
                        "sizeBytes": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "altText": {
                          "type": "string",
                          "maxLength": 1000
                        }
                      },
                      "required": [
                        "url",
                        "mimeType"
                      ]
                    },
                    "description": "One JPEG or MP4 asset, or 2–10 JPEG/MP4 carousel items"
                  },
                  "shareToFeed": {
                    "description": "Also show a Reel in the main feed",
                    "type": "boolean"
                  },
                  "scheduledAt": {
                    "description": "Future ISO 8601 datetime with timezone",
                    "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": [
                  "caption",
                  "media"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Instagram: post or schedule result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "instagram_post"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/linkedin_post": {
      "post": {
        "operationId": "linkedin_post",
        "summary": "Publish: LinkedIn: post or schedule",
        "description": "Publish or schedule a LinkedIn profile post: text, one image, one MP4 video, or a 2–20-image organic post.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "linkedin_post",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  },
                  "commentary": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 3000
                  },
                  "media": {
                    "description": "Optional: one JPG/PNG/GIF, one MP4, or 2–20 images",
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri",
                          "description": "Public HTTPS URL that the platform can fetch"
                        },
                        "storageKey": {
                          "description": "Bucket key when the file lives in our storage — set by the uploader, empty for external URLs",
                          "type": "string"
                        },
                        "mimeType": {
                          "type": "string",
                          "pattern": "^(image|video)\\/[a-z0-9.+-]+$",
                          "description": "IANA image/* or video/* MIME type"
                        },
                        "sizeBytes": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "altText": {
                          "type": "string",
                          "maxLength": 1000
                        }
                      },
                      "required": [
                        "url",
                        "mimeType"
                      ]
                    }
                  },
                  "scheduledAt": {
                    "description": "Future ISO 8601 datetime with timezone",
                    "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": [
                  "commentary"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "LinkedIn: post or schedule result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "linkedin_post"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/linkedin_check_post_metrics_access": {
      "get": {
        "operationId": "linkedin_check_post_metrics_access",
        "summary": "Insights: LinkedIn: check post metrics access",
        "description": "Check whether DevPost can read post metrics (likes, comments, impressions) for a connected LinkedIn account. Reads the connection stored in DevPost; does not contact LinkedIn. LinkedIn gives member post analytics only to its restricted r_member_social permission, which DevPost does not request, so this returns an explanation, never numbers: metricsAvailable, the permissions this connection granted, whether r_member_social is among them, and the reason.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "linkedin_check_post_metrics_access",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "LinkedIn: check post metrics access result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "linkedin_check_post_metrics_access"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/instagram_get_media": {
      "get": {
        "operationId": "instagram_get_media",
        "summary": "Insights: Instagram: recent media",
        "description": "List recent media published by the connected Instagram professional account.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.\nPaginated: pass `cursor` from the previous response's `pagination.nextCursor`.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "instagram_get_media",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Instagram: recent media result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "instagram_get_media"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/instagram_get_post_metrics": {
      "get": {
        "operationId": "instagram_get_post_metrics",
        "summary": "Insights: Instagram: media metrics",
        "description": "Get current public metrics for an Instagram media id.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "instagram_get_post_metrics",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "mediaId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Instagram: media metrics result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "instagram_get_post_metrics"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/tiktok_post_video": {
      "post": {
        "operationId": "tiktok_post_video",
        "summary": "Publish: TikTok: post or schedule",
        "description": "Send one TikTok video through the shared post pipeline. publishFlow:'inbox' uploads for completion in the TikTok app (video.upload); 'direct' posts through Direct Post (video.publish and approved audit). Call get_composer_context before Direct Post. For public URLs pass the video asset directly; local files use request_media_upload, PUT the bytes, then confirm_media_upload. Open TikTok on your phone, go to Inbox and open the upload notification to edit and publish your video. Caption, visibility, interactions and disclosures must be set in TikTok. Track the returned postId with refresh_publish_status; never resend a processing or awaiting_publish post.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "tiktok_post_video",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  },
                  "caption": {
                    "default": "",
                    "description": "Stored in DevPost; Inbox upload cannot prefill the TikTok caption",
                    "type": "string",
                    "maxLength": 2200
                  },
                  "publishFlow": {
                    "default": "inbox",
                    "description": "inbox: finish in TikTok; direct: publish here after audit approval",
                    "type": "string",
                    "enum": [
                      "direct",
                      "inbox"
                    ]
                  },
                  "video": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string",
                        "format": "uri",
                        "description": "Public HTTPS URL that the platform can fetch"
                      },
                      "storageKey": {
                        "description": "Bucket key when the file lives in our storage — set by the uploader, empty for external URLs",
                        "type": "string"
                      },
                      "mimeType": {
                        "type": "string",
                        "pattern": "^(image|video)\\/[a-z0-9.+-]+$",
                        "description": "IANA image/* or video/* MIME type"
                      },
                      "sizeBytes": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "altText": {
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "url",
                      "mimeType"
                    ],
                    "description": "One MP4, MOV or WebM video asset"
                  },
                  "privacyLevel": {
                    "description": "Required for Direct Post: select from get_composer_context; no implicit default",
                    "type": "string",
                    "enum": [
                      "SELF_ONLY",
                      "MUTUAL_FOLLOW_FRIENDS",
                      "FOLLOWER_OF_CREATOR",
                      "PUBLIC_TO_EVERYONE"
                    ]
                  },
                  "allowComment": {
                    "type": "boolean"
                  },
                  "allowDuet": {
                    "type": "boolean"
                  },
                  "allowStitch": {
                    "type": "boolean"
                  },
                  "brandContent": {
                    "description": "Paid partnership or third-party promotion",
                    "type": "boolean"
                  },
                  "brandOrganic": {
                    "description": "Promotes the creator or their own business",
                    "type": "boolean"
                  },
                  "isAigc": {
                    "description": "Label AI-generated or materially AI-edited video",
                    "type": "boolean"
                  },
                  "musicUsageConsent": {
                    "description": "Required for Direct Post: confirms TikTok’s Music Usage Confirmation",
                    "type": "boolean",
                    "const": true
                  },
                  "brandedContentConsent": {
                    "description": "Required for third-party branded content: confirms TikTok’s Branded Content Policy",
                    "type": "boolean",
                    "const": true
                  },
                  "scheduledAt": {
                    "description": "Future ISO 8601 datetime with timezone",
                    "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": [
                  "video"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "TikTok: post or schedule result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "tiktok_post_video"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/tiktok_upload_video": {
      "post": {
        "operationId": "tiktok_upload_video",
        "summary": "Publish: TikTok: upload to Inbox",
        "description": "Upload one video to TikTok Inbox via video.upload, without Direct Post audit. Public video URLs can be passed directly; local files use request_media_upload → PUT bytes → confirm_media_upload. Open TikTok on your phone, go to Inbox and open the upload notification to edit and publish your video. Caption, visibility, interactions and disclosures must be set in TikTok. Returns a DevPost postId and platformPublishId, not a TikTok editor URL. Call refresh_publish_status until awaiting_publish or posted; do not send the video again. TikTok pending-upload and rate limits still apply.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "tiktok_upload_video",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  },
                  "video": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string",
                        "format": "uri",
                        "description": "Public HTTPS URL that the platform can fetch"
                      },
                      "storageKey": {
                        "description": "Bucket key when the file lives in our storage — set by the uploader, empty for external URLs",
                        "type": "string"
                      },
                      "mimeType": {
                        "type": "string",
                        "pattern": "^(image|video)\\/[a-z0-9.+-]+$",
                        "description": "IANA image/* or video/* MIME type"
                      },
                      "sizeBytes": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "altText": {
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "url",
                      "mimeType"
                    ]
                  },
                  "scheduledAt": {
                    "description": "Future ISO 8601 datetime with timezone",
                    "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": [
                  "video"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "TikTok: upload to Inbox result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "tiktok_upload_video"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/tiktok_get_videos": {
      "get": {
        "operationId": "tiktok_get_videos",
        "summary": "Insights: TikTok: recent videos",
        "description": "List recent videos from the connected TikTok account.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.\nPaginated: pass `cursor` from the previous response's `pagination.nextCursor`.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "tiktok_get_videos",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TikTok: recent videos result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "tiktok_get_videos"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/tiktok_get_video_metrics": {
      "get": {
        "operationId": "tiktok_get_video_metrics",
        "summary": "Insights: TikTok: video metrics",
        "description": "Get likes, comments, shares and views for a TikTok video id.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "tiktok_get_video_metrics",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "videoId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TikTok: video metrics result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "tiktok_get_video_metrics"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/publish/youtube_post_video": {
      "post": {
        "operationId": "youtube_post_video",
        "summary": "Publish: YouTube: post or schedule",
        "description": "Upload, publish or schedule one YouTube video through the standard post pipeline. A vertical clip up to three minutes long publishes as a Short.\n\nOperational area: Publish.\nRequired scope: `publish:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Publish"
        ],
        "security": [
          {
            "oauth2": [
              "publish:write"
            ]
          }
        ],
        "x-scope": "publish:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "youtube_post_video",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "YouTube video title (max 100 characters)"
                  },
                  "description": {
                    "description": "Video description; a #Shorts tag is added when missing",
                    "type": "string",
                    "maxLength": 5000
                  },
                  "video": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string",
                        "format": "uri",
                        "description": "Public HTTPS URL that the platform can fetch"
                      },
                      "storageKey": {
                        "description": "Bucket key when the file lives in our storage — set by the uploader, empty for external URLs",
                        "type": "string"
                      },
                      "mimeType": {
                        "type": "string",
                        "pattern": "^(image|video)\\/[a-z0-9.+-]+$",
                        "description": "IANA image/* or video/* MIME type"
                      },
                      "sizeBytes": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "altText": {
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "url",
                      "mimeType"
                    ],
                    "description": "One MP4, MOV or WebM video asset"
                  },
                  "privacyStatus": {
                    "type": "string",
                    "enum": [
                      "public",
                      "unlisted",
                      "private"
                    ],
                    "description": "Who can see the video once published"
                  },
                  "madeForKids": {
                    "type": "boolean",
                    "description": "COPPA audience declaration required by YouTube for every upload"
                  },
                  "scheduledAt": {
                    "description": "Future ISO 8601 datetime with timezone",
                    "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": [
                  "title",
                  "video",
                  "privacyStatus",
                  "madeForKids"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "YouTube: post or schedule result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "youtube_post_video"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/youtube_get_videos": {
      "get": {
        "operationId": "youtube_get_videos",
        "summary": "Insights: YouTube: recent videos",
        "description": "List recent videos from the connected YouTube channel.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.\nPaginated: pass `cursor` from the previous response's `pagination.nextCursor`.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "youtube_get_videos",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "YouTube: recent videos result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "youtube_get_videos"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/insights/youtube_get_video_metrics": {
      "get": {
        "operationId": "youtube_get_video_metrics",
        "summary": "Insights: YouTube: video metrics",
        "description": "Get views, likes and comments for a YouTube video id.\n\nOperational area: Insights.\nRequired scope: `insights:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Insights"
        ],
        "security": [
          {
            "oauth2": [
              "insights:read"
            ]
          }
        ],
        "x-scope": "insights:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "youtube_get_video_metrics",
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work",
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
            }
          },
          {
            "name": "videoId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "YouTube: video metrics result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "youtube_get_video_metrics"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/growth/get_growth_control_room": {
      "get": {
        "operationId": "get_growth_control_room",
        "summary": "Growth: Growth control room",
        "description": "Read growth playbooks (engage + cadence), channel-aware targets, pending proposals, recent pipeline runs, the signal basket and the reusable asset library.\n\nOperational area: Growth.\nRequired scope: `growth:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Growth"
        ],
        "security": [
          {
            "oauth2": [
              "growth:read"
            ]
          }
        ],
        "x-scope": "growth:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "get_growth_control_room",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Growth control room result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "get_growth_control_room"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/growth/save_growth_goal": {
      "post": {
        "operationId": "save_growth_goal",
        "summary": "Growth: Save a playbook",
        "description": "Create or update a growth playbook for one connected account (an update replaces the whole playbook, targets included). Saving schedules background runs: mode=engage from the next scheduler pass, then about every scanIntervalMinutes within the pace's daily runs and outside quiet hours; mode=cadence at cadence.publishHour every cadence.everyDays, proposing one video, image or text item. Each run: (1) reads the playbook’s DevPost data (new signals, unseen replies and mentions, post history, library assets, past performance); (2) gathers outside context: a prompt playbook (create_prompt_goal, or agentPrompt) calls the read-only tools of the MCP servers the user connected and keeps notes for its next runs, and any tool there that can change something waits for the user to approve that call in DevPost; other engage playbooks search recent public X posts by their people and topics (metered X reads) or read new posts, rules and comments in their subreddits; other cadence playbooks gather none; (3) asks DevPost’s AI model, spending AI credits, whether to act and to plan up to 3 replies, comments, posts or content concepts (one item for a cadence playbook); (4) saves those that pass the engage rules (never a thread the account or playbook already engaged, maxThreadAgeDays, weeklyProposalCap) and the publishing guardrails as proposals, and records every other planned action as skipped with its reason; (5) marks the signals it read as considered and emails the owner a reminder when a review-mode playbook has proposals waiting. When the workspace has no credits left, the run stops and the playbook is paused. approvalMode=review (the default) leaves every proposal to decide_growth_action. approvalMode=auto, where the channel supports it, lets the playbook's scheduled runs, and only those, publish the replies, comments and posts they plan without review, within the pace limits and guardrails; a proposal that would spend generation credits still waits for review unless allowAutoSpend is true, and then a scheduled run also generates its media and schedules the post. Runs started by run_growth_scan or add_growth_signal only propose.\n\nOperational area: Growth.\nRequired scope: `growth:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Growth"
        ],
        "security": [
          {
            "oauth2": [
              "growth:write"
            ]
          }
        ],
        "x-scope": "growth:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "save_growth_goal",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "engage",
                      "cadence"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 80
                  },
                  "objective": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 5000
                  },
                  "agentPrompt": {
                    "default": false,
                    "type": "boolean"
                  },
                  "approvalMode": {
                    "default": "review",
                    "type": "string",
                    "enum": [
                      "review",
                      "auto"
                    ]
                  },
                  "allowAutoSpend": {
                    "default": false,
                    "type": "boolean"
                  },
                  "status": {
                    "default": "active",
                    "type": "string",
                    "enum": [
                      "active",
                      "paused",
                      "archived"
                    ]
                  },
                  "topics": {
                    "default": [],
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 2,
                      "maxLength": 80
                    }
                  },
                  "brief": {
                    "type": "string",
                    "maxLength": 1500
                  },
                  "browserNotifications": {
                    "default": true,
                    "type": "boolean"
                  },
                  "targets": {
                    "default": [],
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "person",
                            "community",
                            "topic",
                            "content_pillar"
                          ]
                        },
                        "value": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 120
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ]
                    }
                  },
                  "pace": {
                    "default": "standard",
                    "type": "string",
                    "enum": [
                      "calm",
                      "standard",
                      "active"
                    ]
                  },
                  "scanIntervalMinutes": {
                    "default": 15,
                    "type": "integer",
                    "minimum": 5,
                    "maximum": 1440
                  },
                  "weeklyProposalCap": {
                    "description": "Engage only: at most this many proposals over a rolling 7 days; rejected and skipped ones free their slot. Omit for no weekly cap (the pace still caps each day).",
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "maxThreadAgeDays": {
                    "description": "Engage only: threads and inbox items older than this many days are never proposed on. Omit for no age limit.",
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 180
                  },
                  "timezone": {
                    "default": "UTC",
                    "type": "string"
                  },
                  "quietHoursStart": {
                    "default": 22,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 23
                  },
                  "quietHoursEnd": {
                    "default": 8,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 23
                  },
                  "cadence": {
                    "type": "object",
                    "properties": {
                      "everyDays": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 14
                      },
                      "format": {
                        "type": "string",
                        "enum": [
                          "video",
                          "image",
                          "text"
                        ]
                      },
                      "preferredVideoMode": {
                        "type": "string",
                        "enum": [
                          "motion",
                          "generative",
                          "either"
                        ]
                      },
                      "publishHour": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 23
                      },
                      "maxCreditsPerItem": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10000
                      }
                    },
                    "required": [
                      "everyDays",
                      "format",
                      "publishHour"
                    ]
                  },
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  }
                },
                "required": [
                  "mode",
                  "name",
                  "objective",
                  "account"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Save a playbook result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "save_growth_goal"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/growth/create_prompt_goal": {
      "post": {
        "operationId": "create_prompt_goal",
        "summary": "Growth: Save a research goal",
        "description": "Save a recurring research goal (a prompt playbook) for one connected social account: a name, the objective each run follows, and the scan interval. The call stores the goal and returns it; DevPost then runs it in the background from the next scheduler pass, about every scanIntervalMinutes and at most 4 times a day. Each run: (1) reads the playbook’s DevPost data (new signals, unseen replies and mentions, post history, library assets, past performance); (2) gathers outside context: a prompt playbook (create_prompt_goal, or agentPrompt) calls the read-only tools of the MCP servers the user connected and keeps notes for its next runs, and any tool there that can change something waits for the user to approve that call in DevPost; other engage playbooks search recent public X posts by their people and topics (metered X reads) or read new posts, rules and comments in their subreddits; other cadence playbooks gather none; (3) asks DevPost’s AI model, spending AI credits, whether to act and to plan up to 3 replies, comments, posts or content concepts (one item for a cadence playbook); (4) saves those that pass the engage rules (never a thread the account or playbook already engaged, maxThreadAgeDays, weeklyProposalCap) and the publishing guardrails as proposals, and records every other planned action as skipped with its reason; (5) marks the signals it read as considered and emails the owner a reminder when a review-mode playbook has proposals waiting. When the workspace has no credits left, the run stops and the playbook is paused. A research goal is always in review mode: its runs never publish, reply, comment or generate media, and every proposal waits for decide_growth_action. Start a run now with run_growth_scan; follow runs and proposals with get_growth_control_room; remove the goal with delete_growth_goal.\n\nOperational area: Growth.\nRequired scope: `growth:write`.\nReaches a third-party platform, so results depend on that platform.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Growth"
        ],
        "security": [
          {
            "oauth2": [
              "growth:write"
            ]
          }
        ],
        "x-scope": "growth:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "create_prompt_goal",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 80
                  },
                  "objective": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 5000
                  },
                  "scanIntervalMinutes": {
                    "default": 15,
                    "type": "integer",
                    "minimum": 5,
                    "maximum": 1440
                  },
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connected account as platform/@handle (as list_accounts shows it); its id or a platform with one account also work"
                  }
                },
                "required": [
                  "name",
                  "objective",
                  "account"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Save a research goal result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "create_prompt_goal"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/growth/delete_growth_goal": {
      "post": {
        "operationId": "delete_growth_goal",
        "summary": "Growth: Delete a playbook",
        "description": "Permanently delete a growth playbook and its runs, proposals, approvals, learned targets and linked signals. Published social activity is not affected.\n\nOperational area: Growth.\nRequired scope: `growth:write`.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Growth"
        ],
        "security": [
          {
            "oauth2": [
              "growth:write"
            ]
          }
        ],
        "x-scope": "growth:write",
        "x-read-only": false,
        "x-idempotent": true,
        "x-destructive": true,
        "x-third-party": false,
        "x-mcp-tool": "delete_growth_goal",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "goalId": {
                    "type": "string"
                  }
                },
                "required": [
                  "goalId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Delete a playbook result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "delete_growth_goal"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/growth/add_growth_signal": {
      "post": {
        "operationId": "add_growth_signal",
        "summary": "Growth: Add a signal",
        "description": "Append news, an idea, a screenshot or a git commit/changelog item to the growth signal basket (optionally with attached media); source+externalId make repeated automations idempotent. Signals are consumable fuel: each channel uses one once. A new signal also starts a run right away for every active cadence playbook (only goalId's, when set); engage playbooks read it at their next scheduled run. That cadence run: (1) reads the playbook’s DevPost data (new signals, unseen replies and mentions, post history, library assets, past performance); (2) gathers outside context: a prompt playbook (create_prompt_goal, or agentPrompt) calls the read-only tools of the MCP servers the user connected and keeps notes for its next runs, and any tool there that can change something waits for the user to approve that call in DevPost; other engage playbooks search recent public X posts by their people and topics (metered X reads) or read new posts, rules and comments in their subreddits; other cadence playbooks gather none; (3) asks DevPost’s AI model, spending AI credits, whether to act and to plan up to 3 replies, comments, posts or content concepts (one item for a cadence playbook); (4) saves those that pass the engage rules (never a thread the account or playbook already engaged, maxThreadAgeDays, weeklyProposalCap) and the publishing guardrails as proposals, and records every other planned action as skipped with its reason; (5) marks the signals it read as considered and emails the owner a reminder when a review-mode playbook has proposals waiting. It only proposes: it never publishes or generates media, and its proposal waits for decide_growth_action.\n\nOperational area: Growth.\nRequired scope: `growth:write`.\nReaches a third-party platform, so results depend on that platform.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Growth"
        ],
        "security": [
          {
            "oauth2": [
              "growth:write"
            ]
          }
        ],
        "x-scope": "growth:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "add_growth_signal",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "goalId": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "news",
                      "commit",
                      "idea",
                      "mention",
                      "feed_post"
                    ]
                  },
                  "source": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "externalId": {
                    "type": "string",
                    "maxLength": 250
                  },
                  "title": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 300
                  },
                  "content": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 10000
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "media": {
                    "maxItems": 4,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "mimeType": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "url",
                        "mimeType"
                      ]
                    }
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "type",
                  "source",
                  "title",
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Add a signal result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "add_growth_signal"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/growth/add_growth_asset": {
      "post": {
        "operationId": "add_growth_asset",
        "summary": "Growth: Add a library asset",
        "description": "Add a reusable reference asset to the library: a reference photo of the person, product demo footage, brand marks. Unlike signals, assets never run out — the planner reuses them across many generations. The description is what the agent reads to decide when the asset fits, so make it explicit (\"front-lit reference photo of me — use whenever a video should include my person\").\n\nOperational area: Growth.\nRequired scope: `growth:write`.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Growth"
        ],
        "security": [
          {
            "oauth2": [
              "growth:write"
            ]
          }
        ],
        "x-scope": "growth:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "add_growth_asset",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "storageKey": {
                    "type": "string"
                  },
                  "mimeType": {
                    "type": "string"
                  },
                  "sizeBytes": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "title": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "description": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 1000,
                    "description": "What this asset shows and when the agent should use it"
                  },
                  "tags": {
                    "default": [],
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 30
                    }
                  }
                },
                "required": [
                  "url",
                  "mimeType",
                  "title",
                  "description"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Add a library asset result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "add_growth_asset"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/growth/list_growth_assets": {
      "get": {
        "operationId": "list_growth_assets",
        "summary": "Growth: List library assets",
        "description": "List the reusable asset library with usage history (times used, last used).\n\nOperational area: Growth.\nRequired scope: `growth:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Growth"
        ],
        "security": [
          {
            "oauth2": [
              "growth:read"
            ]
          }
        ],
        "x-scope": "growth:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "list_growth_assets",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "default": "active",
              "type": "string",
              "enum": [
                "active",
                "archived"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List library assets result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "list_growth_assets"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/growth/archive_growth_asset": {
      "post": {
        "operationId": "archive_growth_asset",
        "summary": "Growth: Archive or restore an asset",
        "description": "Archive (or restore) a library asset so the planner stops (or resumes) considering it.\n\nOperational area: Growth.\nRequired scope: `growth:write`.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Growth"
        ],
        "security": [
          {
            "oauth2": [
              "growth:write"
            ]
          }
        ],
        "x-scope": "growth:write",
        "x-read-only": false,
        "x-idempotent": true,
        "x-destructive": true,
        "x-third-party": false,
        "x-mcp-tool": "archive_growth_asset",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "assetId": {
                    "type": "string"
                  },
                  "status": {
                    "default": "archived",
                    "type": "string",
                    "enum": [
                      "active",
                      "archived"
                    ]
                  }
                },
                "required": [
                  "assetId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Archive or restore an asset result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "archive_growth_asset"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/growth/decide_growth_action": {
      "post": {
        "operationId": "decide_growth_action",
        "summary": "Growth: Decide on a proposal",
        "description": "Decide one pending growth proposal, as the web review does. rejected: records the feedback and marks its source interaction seen; nothing is published. approved or edited (content and title replace the proposed text), once the publishing guardrails pass: a reply, comment or post is published on the account now, or after delayMinutes; an X reply that X only accepts from its own composer returns the composer URL for the user to send instead; a concept is saved to the signal basket; a proposal with a media plan or scene creates a draft post, spends its estimated generation credits, generates the media and schedules the post (delayMinutes from now, or the playbook’s next publish slot).\n\nOperational area: Growth.\nRequired scope: `growth:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Growth"
        ],
        "security": [
          {
            "oauth2": [
              "growth:write"
            ]
          }
        ],
        "x-scope": "growth:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "decide_growth_action",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "actionId": {
                    "type": "string"
                  },
                  "decision": {
                    "type": "string",
                    "enum": [
                      "approved",
                      "edited",
                      "rejected"
                    ]
                  },
                  "content": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40000
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "feedback": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "delayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1440
                  }
                },
                "required": [
                  "actionId",
                  "decision"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Decide on a proposal result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "decide_growth_action"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/growth/run_growth_scan": {
      "post": {
        "operationId": "run_growth_scan",
        "summary": "Growth: Start a run now",
        "description": "Start one run of a growth playbook now, in the background, and return the queued run, or the run already in progress (deduplicated). The run: (1) reads the playbook’s DevPost data (new signals, unseen replies and mentions, post history, library assets, past performance); (2) gathers outside context: a prompt playbook (create_prompt_goal, or agentPrompt) calls the read-only tools of the MCP servers the user connected and keeps notes for its next runs, and any tool there that can change something waits for the user to approve that call in DevPost; other engage playbooks search recent public X posts by their people and topics (metered X reads) or read new posts, rules and comments in their subreddits; other cadence playbooks gather none; (3) asks DevPost’s AI model, spending AI credits, whether to act and to plan up to 3 replies, comments, posts or content concepts (one item for a cadence playbook); (4) saves those that pass the engage rules (never a thread the account or playbook already engaged, maxThreadAgeDays, weeklyProposalCap) and the publishing guardrails as proposals, and records every other planned action as skipped with its reason; (5) marks the signals it read as considered and emails the owner a reminder when a review-mode playbook has proposals waiting. When the workspace has no credits left, the run stops and the playbook is paused. A run started this way only proposes, whatever the playbook's approval mode: it never publishes, replies, comments or generates media, and each proposal waits for decide_growth_action. Follow the run and its proposals with get_growth_control_room.\n\nOperational area: Growth.\nRequired scope: `growth:write`.\nReaches a third-party platform, so results depend on that platform.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Growth"
        ],
        "security": [
          {
            "oauth2": [
              "growth:write"
            ]
          }
        ],
        "x-scope": "growth:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "run_growth_scan",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "goalId": {
                    "type": "string"
                  }
                },
                "required": [
                  "goalId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Start a run now result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "run_growth_scan"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/media/request_media_upload": {
      "post": {
        "operationId": "request_media_upload",
        "summary": "Media: Start a direct upload",
        "description": "Step 1 of uploading a local file: get a presigned PUT URL to send the bytes straight to storage. PREFER THIS over upload_media for any real file — the bytes go from disk to the bucket without passing through your context, so file size is irrelevant. Upload the returned uploadUrl with e.g. `curl -X PUT --upload-file <path> -H 'Content-Type: <mimeType>' \"<uploadUrl>\"`, then call confirm_media_upload with the storageKey. The URL expires in an hour. Nothing is charged.\n\nOperational area: Media.\nRequired scope: `media:write`.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Media"
        ],
        "security": [
          {
            "oauth2": [
              "media:write"
            ]
          }
        ],
        "x-scope": "media:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "request_media_upload",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mimeType": {
                    "type": "string",
                    "description": "IANA type of the file you are about to upload, e.g. image/png or video/mp4."
                  },
                  "sizeBytes": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "description": "Size of the file in bytes. Checked again against the bucket on confirm."
                  },
                  "kind": {
                    "default": "media",
                    "description": "'media' for a post attachment, 'asset' for a reusable library item.",
                    "type": "string",
                    "enum": [
                      "media",
                      "asset"
                    ]
                  }
                },
                "required": [
                  "mimeType",
                  "sizeBytes"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Start a direct upload result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "request_media_upload"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/media/confirm_media_upload": {
      "post": {
        "operationId": "confirm_media_upload",
        "summary": "Media: Finish a direct upload",
        "description": "Step 2 after PUTting the bytes to the presigned URL: verifies the file landed, reads its real size from storage and returns the finished media record — pass it straight as `media` on create_post/update_post, or as the asset URL on add_growth_asset.\n\nOperational area: Media.\nRequired scope: `media:write`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Media"
        ],
        "security": [
          {
            "oauth2": [
              "media:write"
            ]
          }
        ],
        "x-scope": "media:write",
        "x-read-only": false,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "confirm_media_upload",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "storageKey": {
                    "type": "string",
                    "minLength": 10,
                    "description": "The storageKey returned by the request step."
                  },
                  "mimeType": {
                    "type": "string"
                  },
                  "altText": {
                    "description": "Accessibility description carried onto the post media.",
                    "type": "string",
                    "maxLength": 1000
                  }
                },
                "required": [
                  "storageKey",
                  "mimeType"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Finish a direct upload result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "confirm_media_upload"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/media/upload_media": {
      "post": {
        "operationId": "upload_media",
        "summary": "Media: Upload a small file or a URL",
        "description": "One-shot upload for a file already at a public URL (`sourceUrl`, fetched server-side — no size concern) or a SMALL inline payload (`data`, base64). For a local file of any real size use request_media_upload instead: `data` has to travel through your context and will blow up on anything large. Returns a media record to pass as `media` on create_post/update_post. Nothing is charged. Max 512 MB.\n\nOperational area: Media.\nRequired scope: `media:write`.\nReaches a third-party platform, so results depend on that platform.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Media"
        ],
        "security": [
          {
            "oauth2": [
              "media:write"
            ]
          }
        ],
        "x-scope": "media:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "upload_media",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "description": "Base64-encoded file bytes (raw base64 or a data: URL). Use for local files you already hold.",
                    "type": "string",
                    "minLength": 1
                  },
                  "sourceUrl": {
                    "description": "Public URL to fetch and store instead of passing bytes. Use for remote files.",
                    "type": "string",
                    "format": "uri"
                  },
                  "mimeType": {
                    "description": "IANA type, e.g. image/png or video/mp4. Required with data; inferred from the response when omitted with sourceUrl.",
                    "type": "string"
                  },
                  "kind": {
                    "default": "media",
                    "description": "'media' for a post attachment, 'asset' for a reusable library item.",
                    "type": "string",
                    "enum": [
                      "media",
                      "asset"
                    ]
                  },
                  "altText": {
                    "description": "Accessibility description carried onto the post media.",
                    "type": "string",
                    "maxLength": 1000
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Upload a small file or a URL result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "upload_media"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/media/analyze_media": {
      "get": {
        "operationId": "analyze_media",
        "summary": "Media: Watch and read media",
        "description": "Read photos and videos before writing about them: returns a factual breakdown — on-screen text verbatim, scenes in order with timestamps, transcribed speech and sound, visible people, products and brands, tone — plus the post angles the media supports. Pass the same {url, mimeType} records you attach with create_post. Call it before drafting copy, a title or content-driven fields (such as TikTok's AI-generated label or commercial disclosure) for media you have not seen. Metered as AI usage.\n\nOperational area: Media.\nRequired scope: `media:read`.\nReaches a third-party platform, so results depend on that platform.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Media"
        ],
        "security": [
          {
            "oauth2": [
              "media:read"
            ]
          }
        ],
        "x-scope": "media:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": true,
        "x-mcp-tool": "analyze_media",
        "parameters": [
          {
            "name": "media",
            "in": "query",
            "required": true,
            "description": "Photos or videos to read, as the {url, mimeType} records a post carries",
            "schema": {
              "minItems": 1,
              "maxItems": 4,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public HTTPS URL that the platform can fetch"
                  },
                  "mimeType": {
                    "type": "string",
                    "pattern": "^(image|video)\\/[a-z0-9.+-]+$",
                    "description": "IANA image/* or video/* MIME type"
                  }
                },
                "required": [
                  "url",
                  "mimeType"
                ]
              },
              "description": "Photos or videos to read, as the {url, mimeType} records a post carries"
            }
          },
          {
            "name": "focus",
            "in": "query",
            "required": false,
            "description": "What to pay extra attention to, e.g. \"the product claims\" or \"what could open a hook\"",
            "schema": {
              "description": "What to pay extra attention to, e.g. \"the product claims\" or \"what could open a hook\"",
              "type": "string",
              "maxLength": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Watch and read media result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "analyze_media"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/billing/get_usage": {
      "get": {
        "operationId": "get_usage",
        "summary": "Billing: Credits and limits",
        "description": "The workspace's access status, this month's credits (used and included, with an AI / X API / video generation breakdown) and its connected-account and playbook limits. Check it before operations that consume credits.\n\nOperational area: Billing.\nRequired scope: `billing:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Billing"
        ],
        "security": [
          {
            "oauth2": [
              "billing:read"
            ]
          }
        ],
        "x-scope": "billing:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "get_usage",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Credits and limits result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "get_usage"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/media/estimate_scene": {
      "get": {
        "operationId": "estimate_scene",
        "summary": "Media: Estimate a scene",
        "description": "Credits preview for a whole generative video scene (frames + Seedance clips + merge) — free and deterministic. ALWAYS show this and get confirmation before create_scene.\n\nOperational area: Media.\nRequired scope: `media:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Media"
        ],
        "security": [
          {
            "oauth2": [
              "media:read"
            ]
          }
        ],
        "x-scope": "media:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "estimate_scene",
        "parameters": [
          {
            "name": "graph",
            "in": "query",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "number",
                  "const": 1
                },
                "title": {
                  "default": "Untitled scene",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "output": {
                  "type": "object",
                  "properties": {
                    "ratio": {
                      "default": "9:16",
                      "type": "string",
                      "enum": [
                        "16:9",
                        "4:3",
                        "1:1",
                        "3:4",
                        "9:16",
                        "21:9",
                        "adaptive"
                      ]
                    },
                    "resolution": {
                      "default": "720p",
                      "type": "string",
                      "enum": [
                        "480p",
                        "720p"
                      ]
                    }
                  }
                },
                "nodes": {
                  "maxItems": 40,
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "key": {
                            "type": "string",
                            "pattern": "^[a-z][a-z0-9_]{0,30}$"
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 60
                          },
                          "kind": {
                            "type": "string",
                            "const": "reference"
                          },
                          "mediaType": {
                            "type": "string",
                            "enum": [
                              "image",
                              "video",
                              "audio"
                            ]
                          },
                          "source": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "from": {
                                    "type": "string",
                                    "const": "asset"
                                  },
                                  "assetId": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                },
                                "required": [
                                  "from",
                                  "assetId"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "from": {
                                    "type": "string",
                                    "const": "upload"
                                  },
                                  "url": {
                                    "type": "string",
                                    "format": "uri"
                                  },
                                  "mimeType": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                },
                                "required": [
                                  "from",
                                  "url",
                                  "mimeType"
                                ]
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "key",
                          "label",
                          "kind",
                          "mediaType",
                          "source"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "key": {
                            "type": "string",
                            "pattern": "^[a-z][a-z0-9_]{0,30}$"
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 60
                          },
                          "kind": {
                            "type": "string",
                            "const": "frame"
                          },
                          "prompt": {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 4000
                          },
                          "aspect": {
                            "default": "square",
                            "description": "square (1:1), landscape (3:2), portrait (2:3)",
                            "type": "string",
                            "enum": [
                              "square",
                              "landscape",
                              "portrait"
                            ]
                          },
                          "uses": {
                            "default": [],
                            "maxItems": 6,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                },
                                "nodeId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "key",
                                "nodeId"
                              ]
                            }
                          }
                        },
                        "required": [
                          "id",
                          "key",
                          "label",
                          "kind",
                          "prompt"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "key": {
                            "type": "string",
                            "pattern": "^[a-z][a-z0-9_]{0,30}$"
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 60
                          },
                          "kind": {
                            "type": "string",
                            "const": "clip"
                          },
                          "prompt": {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 4000
                          },
                          "durationSeconds": {
                            "default": 5,
                            "type": "integer",
                            "minimum": 4,
                            "maximum": 15
                          },
                          "ratio": {
                            "default": "adaptive",
                            "type": "string",
                            "enum": [
                              "16:9",
                              "4:3",
                              "1:1",
                              "3:4",
                              "9:16",
                              "21:9",
                              "adaptive"
                            ]
                          },
                          "resolution": {
                            "default": "480p",
                            "type": "string",
                            "enum": [
                              "480p",
                              "720p"
                            ]
                          },
                          "quality": {
                            "default": "fast",
                            "type": "string",
                            "enum": [
                              "fast",
                              "pro"
                            ]
                          },
                          "generateAudio": {
                            "default": true,
                            "type": "boolean"
                          },
                          "modality": {
                            "type": "string",
                            "const": "references"
                          },
                          "uses": {
                            "default": [],
                            "maxItems": 15,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                },
                                "nodeId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "startHint": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "key",
                                "nodeId"
                              ]
                            }
                          }
                        },
                        "required": [
                          "id",
                          "key",
                          "label",
                          "kind",
                          "prompt",
                          "modality"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "key": {
                            "type": "string",
                            "pattern": "^[a-z][a-z0-9_]{0,30}$"
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 60
                          },
                          "kind": {
                            "type": "string",
                            "const": "clip"
                          },
                          "prompt": {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 4000
                          },
                          "durationSeconds": {
                            "default": 5,
                            "type": "integer",
                            "minimum": 4,
                            "maximum": 15
                          },
                          "ratio": {
                            "default": "adaptive",
                            "type": "string",
                            "const": "adaptive"
                          },
                          "resolution": {
                            "default": "480p",
                            "type": "string",
                            "enum": [
                              "480p",
                              "720p"
                            ]
                          },
                          "quality": {
                            "default": "fast",
                            "type": "string",
                            "enum": [
                              "fast",
                              "pro"
                            ]
                          },
                          "generateAudio": {
                            "default": true,
                            "type": "boolean"
                          },
                          "modality": {
                            "type": "string",
                            "const": "frames"
                          },
                          "firstFrame": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "pattern": "^[a-z][a-z0-9_]{0,30}$"
                              },
                              "nodeId": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "key",
                              "nodeId"
                            ]
                          },
                          "lastFrame": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "pattern": "^[a-z][a-z0-9_]{0,30}$"
                              },
                              "nodeId": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "key",
                              "nodeId"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "key",
                          "label",
                          "kind",
                          "prompt",
                          "modality"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "key": {
                            "type": "string",
                            "pattern": "^[a-z][a-z0-9_]{0,30}$"
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 60
                          },
                          "kind": {
                            "type": "string",
                            "const": "clip"
                          },
                          "modality": {
                            "type": "string",
                            "const": "motion"
                          },
                          "prompt": {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 4000
                          },
                          "durationSeconds": {
                            "default": 12,
                            "type": "integer",
                            "minimum": 4,
                            "maximum": 60
                          },
                          "ratio": {
                            "default": "9:16",
                            "type": "string",
                            "enum": [
                              "16:9",
                              "9:16",
                              "1:1"
                            ]
                          },
                          "resolution": {
                            "default": "720p",
                            "type": "string",
                            "enum": [
                              "480p",
                              "720p"
                            ]
                          },
                          "uses": {
                            "default": [],
                            "maxItems": 10,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                },
                                "nodeId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "key",
                                "nodeId"
                              ]
                            }
                          }
                        },
                        "required": [
                          "id",
                          "key",
                          "label",
                          "kind",
                          "modality",
                          "prompt"
                        ]
                      }
                    ]
                  }
                },
                "sequence": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "clipId": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "clipId"
                    ]
                  }
                }
              },
              "required": [
                "version",
                "output",
                "nodes"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Estimate a scene result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "estimate_scene"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/media/create_scene": {
      "post": {
        "operationId": "create_scene",
        "summary": "Media: Create a scene",
        "description": "Create generative media from a node graph — one photo or a whole multi-shot video, the same way. A still is the degenerate graph: one frame node, no sequence. End to end: reference photos/videos → generated frames → clips → merged video. A clip is EITHER modality 'references'/'frames' (Seedance generated footage, 4–15s, @handle prompts, metered per second) OR modality 'motion' (DevMotion motion design: animates the referenced assets and copy, flat rate, up to 60s, no generated footage). Charges the estimated credits to the monthly basket as each node generates. Returns a sceneId to poll with get_scene, and a sceneUrl — the Studio page where the user reviews the graph and releases it. With autoRelease=false NOTHING is generated and nothing is charged until they do: prepare the scene, then hand them the sceneUrl. Pass postId to back a draft or scheduled post with the scene: this call publishes nothing, and whenever that post is published (update_post, or its scheduled time) it carries the render, held until the render is ready. Pass forkOf to tune a scene that already ran: every node you leave byte-identical keeps the output it already produced, so retuning one shot of a twelve-shot scene generates and charges that shot alone.\n\nOperational area: Media.\nRequired scope: `media:write`.\nReaches a third-party platform, so results depend on that platform.\nDestructive: it removes or overwrites data, or publishes something that cannot be taken back.\nNot naturally idempotent: send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Media"
        ],
        "security": [
          {
            "oauth2": [
              "media:write"
            ]
          }
        ],
        "x-scope": "media:write",
        "x-read-only": false,
        "x-idempotent": false,
        "x-destructive": true,
        "x-third-party": true,
        "x-mcp-tool": "create_scene",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "graph": {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "title": {
                        "default": "Untitled scene",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                      },
                      "output": {
                        "type": "object",
                        "properties": {
                          "ratio": {
                            "default": "9:16",
                            "type": "string",
                            "enum": [
                              "16:9",
                              "4:3",
                              "1:1",
                              "3:4",
                              "9:16",
                              "21:9",
                              "adaptive"
                            ]
                          },
                          "resolution": {
                            "default": "720p",
                            "type": "string",
                            "enum": [
                              "480p",
                              "720p"
                            ]
                          }
                        }
                      },
                      "nodes": {
                        "maxItems": 40,
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "key": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 60
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "reference"
                                },
                                "mediaType": {
                                  "type": "string",
                                  "enum": [
                                    "image",
                                    "video",
                                    "audio"
                                  ]
                                },
                                "source": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "from": {
                                          "type": "string",
                                          "const": "asset"
                                        },
                                        "assetId": {
                                          "type": "string",
                                          "minLength": 1
                                        }
                                      },
                                      "required": [
                                        "from",
                                        "assetId"
                                      ]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "from": {
                                          "type": "string",
                                          "const": "upload"
                                        },
                                        "url": {
                                          "type": "string",
                                          "format": "uri"
                                        },
                                        "mimeType": {
                                          "type": "string",
                                          "minLength": 1
                                        }
                                      },
                                      "required": [
                                        "from",
                                        "url",
                                        "mimeType"
                                      ]
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "key",
                                "label",
                                "kind",
                                "mediaType",
                                "source"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "key": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 60
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "frame"
                                },
                                "prompt": {
                                  "type": "string",
                                  "minLength": 3,
                                  "maxLength": 4000
                                },
                                "aspect": {
                                  "default": "square",
                                  "description": "square (1:1), landscape (3:2), portrait (2:3)",
                                  "type": "string",
                                  "enum": [
                                    "square",
                                    "landscape",
                                    "portrait"
                                  ]
                                },
                                "uses": {
                                  "default": [],
                                  "maxItems": 6,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "key": {
                                        "type": "string",
                                        "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                      },
                                      "nodeId": {
                                        "type": "string",
                                        "minLength": 1
                                      }
                                    },
                                    "required": [
                                      "key",
                                      "nodeId"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "key",
                                "label",
                                "kind",
                                "prompt"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "key": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 60
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "clip"
                                },
                                "prompt": {
                                  "type": "string",
                                  "minLength": 3,
                                  "maxLength": 4000
                                },
                                "durationSeconds": {
                                  "default": 5,
                                  "type": "integer",
                                  "minimum": 4,
                                  "maximum": 15
                                },
                                "ratio": {
                                  "default": "adaptive",
                                  "type": "string",
                                  "enum": [
                                    "16:9",
                                    "4:3",
                                    "1:1",
                                    "3:4",
                                    "9:16",
                                    "21:9",
                                    "adaptive"
                                  ]
                                },
                                "resolution": {
                                  "default": "480p",
                                  "type": "string",
                                  "enum": [
                                    "480p",
                                    "720p"
                                  ]
                                },
                                "quality": {
                                  "default": "fast",
                                  "type": "string",
                                  "enum": [
                                    "fast",
                                    "pro"
                                  ]
                                },
                                "generateAudio": {
                                  "default": true,
                                  "type": "boolean"
                                },
                                "modality": {
                                  "type": "string",
                                  "const": "references"
                                },
                                "uses": {
                                  "default": [],
                                  "maxItems": 15,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "key": {
                                        "type": "string",
                                        "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                      },
                                      "nodeId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "startHint": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "key",
                                      "nodeId"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "key",
                                "label",
                                "kind",
                                "prompt",
                                "modality"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "key": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 60
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "clip"
                                },
                                "prompt": {
                                  "type": "string",
                                  "minLength": 3,
                                  "maxLength": 4000
                                },
                                "durationSeconds": {
                                  "default": 5,
                                  "type": "integer",
                                  "minimum": 4,
                                  "maximum": 15
                                },
                                "ratio": {
                                  "default": "adaptive",
                                  "type": "string",
                                  "const": "adaptive"
                                },
                                "resolution": {
                                  "default": "480p",
                                  "type": "string",
                                  "enum": [
                                    "480p",
                                    "720p"
                                  ]
                                },
                                "quality": {
                                  "default": "fast",
                                  "type": "string",
                                  "enum": [
                                    "fast",
                                    "pro"
                                  ]
                                },
                                "generateAudio": {
                                  "default": true,
                                  "type": "boolean"
                                },
                                "modality": {
                                  "type": "string",
                                  "const": "frames"
                                },
                                "firstFrame": {
                                  "type": "object",
                                  "properties": {
                                    "key": {
                                      "type": "string",
                                      "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                    },
                                    "nodeId": {
                                      "type": "string",
                                      "minLength": 1
                                    }
                                  },
                                  "required": [
                                    "key",
                                    "nodeId"
                                  ]
                                },
                                "lastFrame": {
                                  "type": "object",
                                  "properties": {
                                    "key": {
                                      "type": "string",
                                      "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                    },
                                    "nodeId": {
                                      "type": "string",
                                      "minLength": 1
                                    }
                                  },
                                  "required": [
                                    "key",
                                    "nodeId"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "key",
                                "label",
                                "kind",
                                "prompt",
                                "modality"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "key": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 60
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "clip"
                                },
                                "modality": {
                                  "type": "string",
                                  "const": "motion"
                                },
                                "prompt": {
                                  "type": "string",
                                  "minLength": 3,
                                  "maxLength": 4000
                                },
                                "durationSeconds": {
                                  "default": 12,
                                  "type": "integer",
                                  "minimum": 4,
                                  "maximum": 60
                                },
                                "ratio": {
                                  "default": "9:16",
                                  "type": "string",
                                  "enum": [
                                    "16:9",
                                    "9:16",
                                    "1:1"
                                  ]
                                },
                                "resolution": {
                                  "default": "720p",
                                  "type": "string",
                                  "enum": [
                                    "480p",
                                    "720p"
                                  ]
                                },
                                "uses": {
                                  "default": [],
                                  "maxItems": 10,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "key": {
                                        "type": "string",
                                        "pattern": "^[a-z][a-z0-9_]{0,30}$"
                                      },
                                      "nodeId": {
                                        "type": "string",
                                        "minLength": 1
                                      }
                                    },
                                    "required": [
                                      "key",
                                      "nodeId"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "key",
                                "label",
                                "kind",
                                "modality",
                                "prompt"
                              ]
                            }
                          ]
                        }
                      },
                      "sequence": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "clipId": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "clipId"
                          ]
                        }
                      }
                    },
                    "required": [
                      "version",
                      "output",
                      "nodes"
                    ]
                  },
                  "autoRelease": {
                    "default": true,
                    "type": "boolean"
                  },
                  "postId": {
                    "description": "Draft or scheduled post to back with this scene. Linking publishes nothing: when the post is published it carries the current render, never a stale copy, and waits for it if needed.",
                    "type": "string"
                  },
                  "forkOf": {
                    "description": "Scene this graph was tuned from. Keep the node ids you are not changing: each one inherits its finished output instead of being generated again.",
                    "type": "string"
                  }
                },
                "required": [
                  "graph"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Create a scene result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "create_scene"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/media/get_scene": {
      "get": {
        "operationId": "get_scene",
        "summary": "Media: Poll a scene",
        "description": "Poll a scene: overall status, per-node state (planned/queued/generating/ready/failed), the merged output URL once complete, the Studio sceneUrl, and the posts linked to it. A `planned` scene is waiting on the user at sceneUrl — releasing is theirs to do. Prefer linking a post to the scene (create_post sceneId) over copying outputUrl: the link stays correct if the scene is regenerated.\n\nOperational area: Media.\nRequired scope: `media:read`.\nRetrying with the same input is safe (idempotent); the `Idempotency-Key` header is ignored.",
        "tags": [
          "Media"
        ],
        "security": [
          {
            "oauth2": [
              "media:read"
            ]
          }
        ],
        "x-scope": "media:read",
        "x-read-only": true,
        "x-idempotent": true,
        "x-destructive": false,
        "x-third-party": false,
        "x-mcp-tool": "get_scene",
        "parameters": [
          {
            "name": "sceneId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Poll a scene result.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OperationResult"
                    },
                    {
                      "properties": {
                        "operationId": {
                          "const": "get_scene"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/OperationFailed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "BadRequest": {
        "description": "The input does not match the operation contract.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimitLimit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimitRemaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimitReset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "invalid_request",
                "message": "The input does not match the operation contract.",
                "resolution": "Fix the parameters listed in error.details.issues. The exact input contract is in /openapi.json.",
                "status": 400,
                "documentationUrl": "/openapi.json"
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Missing, invalid or expired bearer token.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimitLimit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimitRemaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimitReset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "unauthenticated",
                "message": "Missing, invalid or expired bearer token.",
                "resolution": "Send an OAuth 2.1 bearer token in the Authorization header. Discover the endpoints at /.well-known/oauth-authorization-server (dynamic client registration is open).",
                "status": 401,
                "documentationUrl": "/openapi.json"
              }
            }
          }
        }
      },
      "PaymentRequired": {
        "description": "An active plan or live trial is required.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimitLimit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimitRemaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimitReset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "no_plan",
                "message": "An active plan or live trial is required.",
                "resolution": "Start the free trial or pick a plan at /pricing, then retry.",
                "status": 402,
                "documentationUrl": "/openapi.json"
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "The token lacks the scope this operation needs.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimitLimit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimitRemaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimitReset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "insufficient_scope",
                "message": "The token lacks the scope this operation needs.",
                "resolution": "Re-run the OAuth authorization request asking for the scope named in error.details.requiredScope.",
                "status": 403,
                "documentationUrl": "/openapi.json"
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "No such operation.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimitLimit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimitRemaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimitReset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "unknown_operation",
                "message": "No such operation.",
                "resolution": "List the available operations at GET /api/v1, or read /openapi.json.",
                "status": 404,
                "documentationUrl": "/openapi.json"
              }
            }
          }
        }
      },
      "Conflict": {
        "description": "This Idempotency-Key is in flight or was used with another payload.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimitLimit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimitRemaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimitReset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "idempotency_conflict",
                "message": "This Idempotency-Key is in flight or was used with another payload.",
                "resolution": "This Idempotency-Key is already in flight or was used with a different payload. Retry later or use a fresh key.",
                "status": 409,
                "documentationUrl": "/openapi.json"
              }
            }
          }
        }
      },
      "OperationFailed": {
        "description": "The operation ran but could not complete.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimitLimit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimitRemaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimitReset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "operation_failed",
                "message": "The operation ran but could not complete.",
                "resolution": "The operation ran but could not complete. Read error.message — it is the same explanation the MCP tool returns.",
                "status": 422,
                "documentationUrl": "/openapi.json"
              }
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Too many requests for this account.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimitLimit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimitRemaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimitReset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "rate_limited",
                "message": "Too many requests for this account.",
                "resolution": "Wait for the window in the Retry-After header, then retry.",
                "status": 429,
                "documentationUrl": "/openapi.json"
              }
            }
          }
        }
      },
      "InternalError": {
        "description": "Unexpected server failure.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimitLimit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimitRemaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimitReset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "internal_error",
                "message": "Unexpected server failure.",
                "resolution": "Retry with backoff. If it persists, report the operationId and the time.",
                "status": 500,
                "documentationUrl": "/openapi.json"
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "Same authorization server as the MCP endpoint. Metadata at /.well-known/oauth-authorization-server; dynamic client registration is open.",
        "x-registration-endpoint": "https://devpost.app/api/auth/mcp/register",
        "x-metadata-endpoint": "https://devpost.app/.well-known/oauth-authorization-server",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://devpost.app/api/auth/mcp/authorize",
            "tokenUrl": "https://devpost.app/api/auth/mcp/token",
            "refreshUrl": "https://devpost.app/api/auth/mcp/token",
            "scopes": {
              "accounts:read": "Read accounts data.",
              "accounts:write": "Create, change and run accounts operations.",
              "growth:read": "Read growth data.",
              "growth:write": "Create, change and run growth operations.",
              "compose:read": "Read compose data.",
              "compose:write": "Create, change and run compose operations.",
              "media:read": "Read media data.",
              "media:write": "Create, change and run media operations.",
              "publish:read": "Read publish data.",
              "publish:write": "Create, change and run publish operations.",
              "insights:read": "Read insights data.",
              "insights:write": "Create, change and run insights operations.",
              "billing:read": "Read billing data.",
              "billing:write": "Create, change and run billing operations."
            }
          }
        }
      }
    },
    "parameters": {
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": false,
        "description": "Unique key making a retry of this write safe. Replaying it returns the first response with `Idempotent-Replayed: true`; reusing it with a different payload returns 409. Remembered for 24h.",
        "schema": {
          "type": "string",
          "maxLength": 255
        }
      }
    },
    "headers": {
      "RateLimitLimit": {
        "description": "Requests allowed in the current window.",
        "schema": {
          "type": "integer"
        }
      },
      "RateLimitRemaining": {
        "description": "Requests left in the current window.",
        "schema": {
          "type": "integer"
        }
      },
      "RateLimitReset": {
        "description": "Seconds until the window resets.",
        "schema": {
          "type": "integer"
        }
      },
      "IdempotentReplayed": {
        "description": "Present and true when the response was replayed from an Idempotency-Key.",
        "schema": {
          "type": "boolean"
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "description": "The single error shape of every /api/v1 response path.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "resolution",
              "status",
              "documentationUrl"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "no_plan",
                  "trial_expired",
                  "budget_exhausted",
                  "plan_limit",
                  "unauthenticated",
                  "invalid_token",
                  "insufficient_scope",
                  "workspace_inactive",
                  "invalid_request",
                  "unknown_operation",
                  "method_not_allowed",
                  "idempotency_conflict",
                  "operation_failed",
                  "rate_limited",
                  "internal_error"
                ],
                "description": "Stable machine-readable failure code."
              },
              "message": {
                "type": "string",
                "description": "Human explanation of what went wrong."
              },
              "resolution": {
                "type": "string",
                "description": "What the caller can do about it."
              },
              "status": {
                "type": "integer",
                "description": "HTTP status of this failure."
              },
              "operationId": {
                "type": "string"
              },
              "details": {
                "type": "object",
                "additionalProperties": true,
                "description": "Structured context: validation `issues`, `requiredScope`, and similar."
              },
              "documentationUrl": {
                "type": "string"
              }
            }
          }
        }
      },
      "Pagination": {
        "type": "object",
        "description": "Present only when the operation returned a cursor.",
        "required": [
          "nextCursor",
          "hasMore"
        ],
        "properties": {
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass back as the cursor parameter; null means no further pages."
          },
          "hasMore": {
            "type": "boolean"
          }
        }
      },
      "OperationResult": {
        "type": "object",
        "required": [
          "operationId",
          "data"
        ],
        "properties": {
          "operationId": {
            "type": "string"
          },
          "data": {
            "description": "The operation payload — the same JSON the matching MCP tool returns (a string when the tool answers in prose). Payload shapes are documented by the operation description and by `describe_platform`."
          },
          "pagination": {
            "$ref": "#/components/schemas/Pagination"
          }
        }
      },
      "ApiIndex": {
        "type": "object",
        "required": [
          "version",
          "operations"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "documentationUrl": {
            "type": "string"
          },
          "openapiUrl": {
            "type": "string"
          },
          "mcpUrl": {
            "type": "string"
          },
          "authorizationMetadataUrl": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              }
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "operations": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      }
    }
  }
}