{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dunsocial-com/json-schema/dunsocial-com-post-api-ai-chat-request-schema.json",
  "title": "PostApiAiChatRequest",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/dunsocial-com-openapi-generated.yml#/components/schemas/PostApiAiChatRequest",
  "type": "object",
  "properties": {
    "messages": {
      "type": "array",
      "description": "Array of message objects with role and content"
    },
    "sessionId": {
      "type": "string",
      "description": "Optional session identifier"
    },
    "connectedPlatforms": {
      "type": "object",
      "description": "Map of platform flags, e.g. linkedin, x"
    },
    "selectedCollectionIds": {
      "type": "array",
      "description": "Array of collection IDs"
    }
  },
  "required": [
    "messages"
  ]
}