{
  "opencollection": "1.0.0",
  "info": {
    "name": "B3OS Workflow Action Ai API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Ai",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "GET /v1/ai/workflow/chat/history",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/ai/workflow/chat/history",
            "params": [
              {
                "name": "workflowId",
                "value": "",
                "type": "query",
                "description": "Workflow ID (for edit page)"
              },
              {
                "name": "sessionId",
                "value": "",
                "type": "query",
                "description": "Session ID (for create page)"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of messages to return (default: 20, max: 100)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Get chat history for a workflow or session"
        },
        {
          "info": {
            "name": "GET /v1/ai/workflow/chat/sessions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/ai/workflow/chat/sessions",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of sessions to return (default: 20, max: 50)"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Offset for pagination (default: 0)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "List chat sessions for the current organization"
        },
        {
          "info": {
            "name": "POST /v1/ai/workflow/chat/stream",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/ai/workflow/chat/stream",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Stream AI chat for workflow generation and updates via SSE"
        }
      ]
    }
  ],
  "bundled": true
}