{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/your-instance.example.com"
        }
    ],
    "info": {
        "name": "PromptlyAgent API Documentation",
        "_postman_id": "2fc9d9a4-f445-4725-997c-cc12198ee7da",
        "description": "PromptlyAgent API provides programmatic access to AI-powered research, knowledge management, agent orchestration, and RAG capabilities. Build intelligent applications with multi-agent workflows, semantic search, and real-time streaming.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "",
            "description": "",
            "item": [
                {
                    "name": "Create artifact from chat interaction (API endpoint for PWA)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/artifacts",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/artifacts"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"chat_interaction_id\":\"est\",\"chat_session_id\":\"dolor\",\"content\":\"provident\",\"title\":\"trruxqcx\",\"filetype\":\"evejejq\",\"privacy_level\":\"private\"}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Update artifact metadata and content",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/artifacts\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/artifacts\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the artifact."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"podsedlfknpif\",\"description\":\"Vitae enim natus consequuntur voluptatem vel fugit.\",\"content\":\"non\",\"privacy_level\":\"private\",\"filetype\":\"juhdibbkcdkobdatbrpa\"}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Queue async conversion of artifact (API endpoint)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/artifacts\/:artifact_id\/convert",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/artifacts\/:artifact_id\/convert",
                            "variable": [
                                {
                                    "id": "artifact_id",
                                    "key": "artifact_id",
                                    "value": "1",
                                    "description": "The ID of the artifact."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"output_format\":\"latex\",\"template\":\"academic\"}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Show artifact details (API endpoint)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/artifacts\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/artifacts\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the artifact."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 401,
                            "body": "{\"success\":false,\"error\":\"UNAUTHENTICATED\",\"message\":\"Authentication required.\",\"timestamp\":\"2026-02-10T11:16:48+00:00\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get conversions for an artifact (API endpoint for PWA)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/artifacts\/:artifact_id\/conversions",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/artifacts\/:artifact_id\/conversions",
                            "variable": [
                                {
                                    "id": "artifact_id",
                                    "key": "artifact_id",
                                    "value": "1",
                                    "description": "The ID of the artifact."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 401,
                            "body": "{\"success\":false,\"error\":\"UNAUTHENTICATED\",\"message\":\"Authentication required.\",\"timestamp\":\"2026-02-10T11:16:48+00:00\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Download conversion via API (uses signed URLs)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/artifacts\/:artifact_id\/conversions\/:conversion_id\/download",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/artifacts\/:artifact_id\/conversions\/:conversion_id\/download",
                            "variable": [
                                {
                                    "id": "artifact_id",
                                    "key": "artifact_id",
                                    "value": "1",
                                    "description": "The ID of the artifact."
                                },
                                {
                                    "id": "conversion_id",
                                    "key": "conversion_id",
                                    "value": "8",
                                    "description": "The ID of the conversion."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint uses signed URLs for secure, time-limited access.\nThe 'signed' middleware validates the URL signature, ensuring\nthe URL was generated by our server and hasn't expired."
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "x-ratelimit-limit",
                                    "value": "300"
                                },
                                {
                                    "key": "x-ratelimit-remaining",
                                    "value": "298"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 404,
                            "body": "{\"success\":false,\"error\":\"NOT_FOUND\",\"message\":\"The requested resource was not found.\",\"timestamp\":\"2026-02-10T11:16:48+00:00\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get conversion status (for polling)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/conversions\/:conversion_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/conversions\/:conversion_id",
                            "variable": [
                                {
                                    "id": "conversion_id",
                                    "key": "conversion_id",
                                    "value": "16",
                                    "description": "The ID of the conversion."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 401,
                            "body": "{\"success\":false,\"error\":\"UNAUTHENTICATED\",\"message\":\"Authentication required.\",\"timestamp\":\"2026-02-10T11:16:48+00:00\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Agents & Tools",
            "description": "\nAPI endpoints for managing and querying AI agents and their configurations.\nAll endpoints require authentication and the `agent:view` token ability.",
            "item": [
                {
                    "name": "List available agents",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/agents",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/agents"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Returns all agents available to the authenticated user, including public agents\nand user-created agents. Only active agents are returned.\n\n## Example Usage\n\n**Ulauncher Extension** ([github.com\/promptlyagentai\/ulauncher-promptlyagent](https:\/\/github.com\/promptlyagentai\/ulauncher-promptlyagent)) - Desktop AI integration:\n- Browse and select from configured agents via keyboard shortcut\n- Smart caching (1-hour default) to reduce API calls\n- Agent filtering and quick selection in TUI\n- Requires `agent:view` token ability"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"agents\": [\n    {\n      \"id\": 1,\n      \"name\": \"Direct Chat Agent\",\n      \"description\": \"General purpose conversational agent\",\n      \"agent_type\": \"chat\",\n      \"ai_provider\": \"openai\",\n      \"ai_model\": \"gpt-4\",\n      \"is_active\": true,\n      \"max_steps\": 10,\n      \"tool_count\": 5,\n      \"created_at\": \"2024-01-01T00:00:00.000000Z\"\n    }\n  ]\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n  \"success\": false,\n  \"error\": \"Unauthorized\",\n  \"message\": \"Your API token does not have the agent:view ability\"\n}",
                            "name": "Insufficient permissions"
                        }
                    ]
                },
                {
                    "name": "Get agent details",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/agents\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/agents\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The agent ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Returns detailed information about a specific agent, including its configuration,\nsystem prompt, and enabled tools.\n\n## Example Usage\n\n**PWA** (`resources\/js\/pwa\/agent-api.js`) - Agent details with caching:\n- Retrieves specific agent configuration and settings\n- Uses cached agent list for faster access\n- Fallback to cache when offline\n- Cache validity: 1 hour"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"agent\": {\n    \"id\": 1,\n    \"name\": \"Direct Chat Agent\",\n    \"description\": \"General purpose conversational agent\",\n    \"agent_type\": \"chat\",\n    \"ai_provider\": \"openai\",\n    \"ai_model\": \"gpt-4\",\n    \"is_active\": true,\n    \"max_steps\": 10,\n    \"system_prompt\": \"You are a helpful AI assistant...\",\n    \"tools\": [\"web_search\", \"calculator\", \"file_read\"],\n    \"created_at\": \"2024-01-01T00:00:00.000000Z\",\n    \"updated_at\": \"2024-01-01T00:00:00.000000Z\"\n  }\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"success\": false,\n  \"error\": \"Not Found\",\n  \"message\": \"Agent not found\"\n}",
                            "name": "Agent not found"
                        }
                    ]
                },
                {
                    "name": "List tools enabled for a specific agent",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/agents\/:id\/tools",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/agents\/:id\/tools",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the agent."
                                },
                                {
                                    "id": "agentId",
                                    "key": "agentId",
                                    "value": "5",
                                    "description": "The agent ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve all tools currently assigned to a specific agent. Only tools that have been\nexplicitly enabled for the agent are returned."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"agent_id\": 5, \"agent_name\": \"Research Agent\", \"tools\": [{\"name\": \"web_search\", \"description\": \"Search the web using SearXNG meta-search engine\", \"category\": \"research\", \"enabled\": true}, {\"name\": \"search_knowledge\", \"description\": \"Query the knowledge base with semantic search\", \"category\": \"research\", \"enabled\": true}], \"total\": 2}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the tools:view ability\"}",
                            "name": "Missing tools:view ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the agent:view ability required to access agent tools\"}",
                            "name": "Missing agent:view ability"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"error\": \"Not Found\", \"message\": \"Agent not found\"}",
                            "name": "Agent Not Found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while retrieving agent tools\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "List all available tools",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/tools",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/tools"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve all tools registered in the ToolRegistry with their descriptions, categories,\nand authentication requirements. These are the tools that can be assigned to agents."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"tools\": [{\"name\": \"web_search\", \"description\": \"Search the web using SearXNG meta-search engine\", \"category\": \"research\", \"requires_auth\": false}, {\"name\": \"search_knowledge\", \"description\": \"Query the knowledge base with semantic search\", \"category\": \"research\", \"requires_auth\": false}, {\"name\": \"calculator\", \"description\": \"Perform mathematical calculations\", \"category\": \"calculation\", \"requires_auth\": false}], \"total\": 15}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the tools:view ability\"}",
                            "name": "Missing tools:view ability"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while retrieving tools\"}",
                            "name": "Server Error"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Chat & Streaming",
            "description": "\nDirect chat API endpoints with real-time SSE streaming support.\nIntegrate conversational AI into your applications without webhook triggers.\n\n## Features\n- Real-time streaming responses via Server-Sent Events (SSE)\n- Session management and history\n- File attachments support\n- Multi-turn conversations\n- Agent selection per message\n\n## Required Token Abilities\n- `chat:create` - Send messages and create sessions\n- `agent:attach` - Upload file attachments\n\n## Rate Limiting\n- Streaming & send: 10 requests\/minute (expensive AI operations)\n- Session management: 60 requests\/minute\n- Session viewing: 300 requests\/minute",
            "item": [
                {
                    "name": "Stream a chat message with real-time SSE responses",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/chat\/stream",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/chat\/stream"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"message\":\"What are Laravel best practices for routing and middleware?\",\"session_id\":123,\"agent_id\":5}"
                        },
                        "description": "Sends a message to an AI agent and streams the response in real-time using Server-Sent Events (SSE).\nSupports multi-turn conversations, file attachments, and automatic session management.\n\nThe stream returns various event types (message, tool_call, source, artifact, heartbeat, complete, error)\nwith JSON-encoded data payloads. Connections are kept alive with periodic heartbeats and protected\nagainst timeouts.\n\n## Example Usage\n\n**Support Widget** ([github.com\/promptlyagentai\/support-widget](https:\/\/github.com\/promptlyagentai\/support-widget)) - AI-powered support chat:\n- Real-time streaming responses with SSE\n- Session persistence with cookies\n- Element selection for contextual help\n- Screenshot capture with messages\n\n**Ulauncher Extension** ([github.com\/promptlyagentai\/ulauncher-promptlyagent](https:\/\/github.com\/promptlyagentai\/ulauncher-promptlyagent)) - Desktop AI assistant:\n- Quick access from Linux desktop\n- Real-time streaming with notifications\n- Clipboard integration for results\n- Agent selection and filtering"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "event: message\ndata: {\"type\": \"text\", \"content\": \"Here are the best practices for Laravel routing...\", \"delta\": true}\n\nevent: tool_call\ndata: {\"tool\": \"search_knowledge\", \"arguments\": {\"query\": \"routing best practices\"}}\n\nevent: source\ndata: {\"title\": \"Laravel Docs - Routing\", \"url\": \"https:\/\/laravel.com\/docs\/routing\", \"domain\": \"laravel.com\"}\n\nevent: artifact\ndata: {\"type\": \"code\", \"language\": \"php\", \"content\": \"Route::get('\/user', [UserController::class, 'index']);\"}\n\nevent: heartbeat\ndata: {\"timestamp\": 1704067200}\n\nevent: complete\ndata: {\"status\": \"completed\", \"duration_seconds\": 12}",
                            "name": "SSE Stream"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"success\": false, \"error\": \"Agent Inactive\", \"message\": \"This agent is not currently active.\"}",
                            "name": "Agent Inactive"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the chat:create ability\"}",
                            "name": "Missing chat:create ability"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"error\": \"Not Found\", \"message\": \"The specified resource was not found\"}",
                            "name": "Resource Not Found"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"File Validation Failed\", \"message\": \"File type not allowed: executable\"}",
                            "name": "File Validation Failed"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Agent Not Found\", \"message\": \"Direct Chat Agent not found. Please run database seeder.\"}",
                            "name": "Agent Not Found"
                        }
                    ]
                },
                {
                    "name": "Send a chat message (non-streaming)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/chat",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/chat"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"message\":\"Explain dependency injection in Laravel\",\"session_id\":123,\"agent_id\":5}"
                        },
                        "description": "Non-streaming chat endpoint for sending messages and receiving complete responses.\nCurrently not implemented - use the `\/api\/v1\/chat\/stream` endpoint instead for all chat operations."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 501,
                            "body": "{\"success\": false, \"error\": \"Not Implemented\", \"message\": \"Non-streaming chat endpoint not yet implemented. Please use \/api\/v1\/chat\/stream instead.\"}",
                            "name": "Not Implemented"
                        }
                    ]
                },
                {
                    "name": "Toggle keep flag on a session",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/chat\/sessions\/:id\/keep",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/chat\/sessions\/:id\/keep",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "123",
                                    "description": "The session ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Mark a session as \"kept\" to protect it from automatic deletion, or remove the keep flag.\nKept sessions are excluded from cleanup routines and remain permanently until manually deleted.\n\n## Example Usage\n\n**PWA** (`resources\/js\/pwa\/session-api.js`) - Session management:\n- Toggles keep flag to protect important conversations\n- Prevents automatic cleanup of marked sessions\n- Supports bulk operations on multiple sessions\n- Requires `chat:manage` token ability"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"session\": {\"id\": 123, \"is_kept\": true}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the chat:manage ability\"}",
                            "name": "Missing chat:manage ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to modify this session\"}",
                            "name": "Not Session Owner"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"error\": \"Not Found\", \"message\": \"Chat session not found\"}",
                            "name": "Session Not Found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while updating the session\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Archive a chat session",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/chat\/sessions\/:id\/archive",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/chat\/sessions\/:id\/archive",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "123",
                                    "description": "The session ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Move a session to the archive. Archived sessions are hidden from the default session list\nand can be restored later. Cannot archive sessions marked as kept.\n\n## Example Usage\n\n**PWA** (`resources\/js\/pwa\/session-api.js`) - Session organization:\n- Archives old or completed conversations\n- Keeps chat history clean without permanent deletion\n- Bulk operation support for multiple sessions\n- Requires `chat:manage` token ability"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"session\": {\"id\": 123, \"is_archived\": true, \"archived_at\": \"2024-01-01T12:00:00Z\"}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the chat:manage ability\"}",
                            "name": "Missing chat:manage ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to modify this session\"}",
                            "name": "Not Session Owner"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"error\": \"Not Found\", \"message\": \"Chat session not found\"}",
                            "name": "Session Not Found"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Cannot Archive Kept Session\", \"message\": \"Cannot archive a session marked as kept. Remove the keep flag first.\"}",
                            "name": "Cannot Archive Kept Session"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Already Archived\", \"message\": \"This session is already archived\"}",
                            "name": "Already Archived"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while archiving the session\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Unarchive a chat session",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/chat\/sessions\/:id\/unarchive",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/chat\/sessions\/:id\/unarchive",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "123",
                                    "description": "The session ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Restore an archived session back to the active session list."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"session\": {\"id\": 123, \"is_archived\": false, \"archived_at\": null}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the chat:manage ability\"}",
                            "name": "Missing chat:manage ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to modify this session\"}",
                            "name": "Not Session Owner"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"error\": \"Not Found\", \"message\": \"Chat session not found\"}",
                            "name": "Session Not Found"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Not Archived\", \"message\": \"This session is not archived\"}",
                            "name": "Not Archived"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while unarchiving the session\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Share a chat session publicly",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/chat\/sessions\/:id\/share",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/chat\/sessions\/:id\/share",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "123",
                                    "description": "The session ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"expires_in_days\":30}"
                        },
                        "description": "Make a session publicly accessible via a unique URL. Optionally set an expiration period\nafter which the public link will no longer work. Public sessions can be viewed by anyone\nwith the link without authentication.\n\n## Example Usage\n\n**PWA** (`resources\/js\/pwa\/session-api.js`) - Public sharing:\n- Generates public shareable URLs for conversations\n- Optional TTL-based expiration (1-365 days)\n- Returns full public URL for easy sharing\n- Requires `chat:manage` token ability"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"session\": {\"id\": 123, \"uuid\": \"550e8400-e29b-41d4-a716-446655440000\", \"is_public\": true, \"public_url\": \"https:\/\/promptlyagent.com\/share\/550e8400-e29b-41d4-a716-446655440000\", \"public_shared_at\": \"2024-01-01T12:00:00Z\", \"public_expires_at\": \"2024-01-31T12:00:00Z\"}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the chat:manage ability\"}",
                            "name": "Missing chat:manage ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to modify this session\"}",
                            "name": "Not Session Owner"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"error\": \"Not Found\", \"message\": \"Chat session not found\"}",
                            "name": "Session Not Found"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Already Public\", \"message\": \"This session is already publicly shared\"}",
                            "name": "Already Public"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Validation Failed\", \"message\": \"Invalid request parameters\", \"errors\": {\"expires_in_days\": [\"The expires in days must be between 1 and 365.\"]}}",
                            "name": "Invalid Expiration"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while sharing the session\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Unshare a chat session (make private)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/chat\/sessions\/:id\/unshare",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/chat\/sessions\/:id\/unshare",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "123",
                                    "description": "The session ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Remove public access from a session. The public URL will no longer work and the session\nwill only be accessible to the owner when authenticated."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"session\": {\"id\": 123, \"is_public\": false, \"public_shared_at\": null, \"public_expires_at\": null}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the chat:manage ability\"}",
                            "name": "Missing chat:manage ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to modify this session\"}",
                            "name": "Not Session Owner"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"error\": \"Not Found\", \"message\": \"Chat session not found\"}",
                            "name": "Session Not Found"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Not Public\", \"message\": \"This session is not publicly shared\"}",
                            "name": "Not Public"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while unsharing the session\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Delete a chat session",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/chat\/sessions\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/chat\/sessions\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "123",
                                    "description": "The session ID."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Permanently delete a session and all associated interactions, attachments, and artifacts.\nThis action cannot be undone. Only the session owner can delete their sessions.\n\n## Example Usage\n\n**PWA** (`resources\/js\/pwa\/session-api.js`) - Session deletion:\n- Permanently removes sessions and all related data\n- Supports bulk deletion of multiple sessions\n- Progress tracking for bulk operations\n- Requires `chat:delete` token ability"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"message\": \"Session deleted successfully\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the chat:delete ability\"}",
                            "name": "Missing chat:delete ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to delete this session\"}",
                            "name": "Not Session Owner"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"error\": \"Not Found\", \"message\": \"Chat session not found\"}",
                            "name": "Session Not Found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while deleting the session\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "List all chat sessions",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/chat\/sessions",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "Laravel+routing",
                                    "description": "Optional search query for session titles and interaction content. Maximum 200 characters.",
                                    "disabled": false
                                },
                                {
                                    "key": "source_type",
                                    "value": "api",
                                    "description": "Optional filter by session source. Options: web, api, webhook, slack, trigger, all. Defaults to all.",
                                    "disabled": false
                                },
                                {
                                    "key": "include_archived",
                                    "value": "",
                                    "description": "Optional include archived sessions in results. Defaults to false.",
                                    "disabled": true
                                },
                                {
                                    "key": "kept_only",
                                    "value": "1",
                                    "description": "Optional show only sessions marked as kept. Defaults to false.",
                                    "disabled": false
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "description": "Optional page number for pagination. Minimum 1.",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "description": "Optional items per page (1-50). Defaults to 50.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/chat\/sessions?search=Laravel+routing&source_type=api&include_archived=&kept_only=1&page=1&per_page=20"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve all chat sessions for the authenticated user with optional filtering and search.\nSupports filtering by source type, archive status, kept status, and full-text search across\nsession titles and interaction content.\n\n## Example Usage\n\n**PWA** (`resources\/js\/pwa\/session-api.js`) - Session history and management:\n- Lists sessions with advanced filtering (search, source_type, archived, kept)\n- Pagination support (per_page, page parameters)\n- Powers the chat history interface in the Progressive Web App\n- Requires `chat:view` token ability"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"sessions\": [{\"id\": 123, \"name\": \"API Chat Session\", \"title\": \"Discussion about Laravel\", \"uuid\": \"550e8400-e29b-41d4-a716-446655440000\", \"is_public\": false, \"source_type\": \"api\", \"is_kept\": false, \"is_archived\": false, \"archived_at\": null, \"interactions_count\": 5, \"attachments_count\": 2, \"artifacts_count\": 1, \"sources_count\": 3, \"created_at\": \"2024-01-01T00:00:00Z\", \"updated_at\": \"2024-01-01T00:15:00Z\"}], \"filters\": {\"source_type\": \"all\", \"include_archived\": false, \"kept_only\": false, \"limit\": 50}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the chat:view ability\"}",
                            "name": "Missing chat:view ability"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Validation Failed\", \"message\": \"Invalid query parameters\", \"errors\": {\"per_page\": [\"The per page must be between 1 and 50.\"]}}",
                            "name": "Invalid Parameters"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while retrieving sessions\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "View a chat session",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/chat\/sessions\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/chat\/sessions\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "123",
                                    "description": "The session ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve a single chat session with all interactions, messages, and sources.\nReturns the complete conversation history with nested source attributions from the knowledge base.\n\n## Example Usage\n\n**Support Widget** ([github.com\/promptlyagentai\/support-widget](https:\/\/github.com\/promptlyagentai\/support-widget)) - Restore conversation history:\n- Retrieves existing sessions from cookie-stored session IDs\n- Displays full conversation history when reopening widget\n\n**Trigger API Client** ([github.com\/promptlyagentai\/trigger-api-client](https:\/\/github.com\/promptlyagentai\/trigger-api-client)) - Session validation:\n- Validates session IDs before streaming trigger responses\n- Continues conversations in specific chat sessions"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"session\": {\"id\": 123, \"name\": \"API Chat Session\", \"title\": \"Discussion about Laravel routing\", \"uuid\": \"550e8400-e29b-41d4-a716-446655440000\", \"is_public\": false, \"created_at\": \"2024-01-01T00:00:00Z\", \"updated_at\": \"2024-01-01T00:15:00Z\"}, \"interactions\": [{\"id\": 456, \"question\": \"What are Laravel best practices?\", \"answer\": \"Here are the Laravel best practices...\", \"agent_name\": \"Direct Chat Agent\", \"sources\": [{\"title\": \"Laravel Documentation\", \"url\": \"https:\/\/laravel.com\/docs\", \"domain\": \"laravel.com\"}], \"created_at\": \"2024-01-01T00:00:00Z\"}]}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the chat:view ability\"}",
                            "name": "Missing chat:view ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to access this session\"}",
                            "name": "Not Session Owner"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"error\": \"Not Found\", \"message\": \"Chat session not found\"}",
                            "name": "Session Not Found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while retrieving the session\"}",
                            "name": "Server Error"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Input Triggers",
            "description": "\nInput Triggers provide webhook-based automation for invoking AI agents.\nExecute triggers via REST API with Sanctum authentication and optional IP whitelisting.\n\n## Authentication & Authorization\nRequired token abilities:\n- `trigger:invoke` - Execute triggers\n- `trigger:attach` - Upload file attachments\n- `trigger:tools` - Override tool selection\n- `trigger:status` - View trigger metadata\n\n## Execution Modes\n- **Synchronous** (`\/invoke`): Returns complete response after execution\n- **Streaming** (`\/stream`): Real-time SSE streaming with step-by-step updates\n\n## Rate Limiting\n- Expensive operations (invoke, stream): 10 requests\/minute\n- Read operations (index, show): 300 requests\/minute",
            "item": [
                {
                    "name": "Execute trigger synchronously",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/triggers\/:trigger_id\/invoke",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/triggers\/:trigger_id\/invoke",
                            "variable": [
                                {
                                    "id": "trigger_id",
                                    "key": "trigger_id",
                                    "value": "soluta",
                                    "description": "The ID of the trigger."
                                },
                                {
                                    "id": "trigger",
                                    "key": "trigger",
                                    "value": "1",
                                    "description": "The trigger ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"input\":\"Analyze this data\",\"options\":{\"temperature\":0.7},\"async\":false}"
                        },
                        "description": "Invoke an input trigger and wait for the complete response. Supports both synchronous\nand asynchronous execution modes. For real-time streaming responses, use the `\/stream` endpoint instead.\n\nThe request format depends on the trigger's provider. Common providers include:\n- `direct_text`: Simple text input via `input` parameter\n- `schedule`: No input required (scheduled triggers)\n- Custom providers: May require specific fields"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"result\": {\"answer\": \"Analysis complete. Here are the findings...\", \"sources\": [], \"artifacts\": []}, \"execution_time\": 5.2}",
                            "name": "Success (Sync)"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"execution_id\": 456, \"status\": \"queued\", \"message\": \"Trigger execution started asynchronously\"}",
                            "name": "Success (Async)"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the trigger:invoke ability\"}",
                            "name": "Missing trigger:invoke ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to invoke this trigger\"}",
                            "name": "Not Trigger Owner"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Trigger Disabled\", \"message\": \"This trigger is currently disabled\"}",
                            "name": "Trigger Disabled"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Validation Failed\", \"message\": \"Invalid input format\", \"errors\": {\"input\": [\"The input field is required\"]}}",
                            "name": "Validation Failed"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Invalid Input\", \"message\": \"Input exceeds maximum length\"}",
                            "name": "Invalid Input"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Provider Not Found\", \"message\": \"Provider 'custom_provider' is not registered\"}",
                            "name": "Provider Not Found"
                        }
                    ]
                },
                {
                    "name": "Execute trigger with real-time SSE streaming",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/triggers\/:trigger_id\/stream",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/triggers\/:trigger_id\/stream",
                            "variable": [
                                {
                                    "id": "trigger_id",
                                    "key": "trigger_id",
                                    "value": "repellat",
                                    "description": "The ID of the trigger."
                                },
                                {
                                    "id": "trigger",
                                    "key": "trigger",
                                    "value": "1",
                                    "description": "The trigger ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"input\":\"Analyze this data\",\"tools\":[\"web_search\",\"calculator\"],\"options\":{\"temperature\":0.7}}"
                        },
                        "description": "Invoke an input trigger and stream the AI response in real-time using Server-Sent Events (SSE).\nSupports file attachments, tool overrides, and session continuity.\n\nThe stream returns various event types (message, tool_call, source, artifact, heartbeat, complete, error)\nwith JSON-encoded data payloads. Connections are kept alive with periodic heartbeats.\n\n## Example Usage\n\n**Trigger API Client** ([github.com\/promptlyagentai\/trigger-api-client](https:\/\/github.com\/promptlyagentai\/trigger-api-client)) - Full-featured Python CLI:\n- Three operation modes: Interactive TUI, Direct, and JSON output\n- Real-time SSE streaming with live status updates\n- File attachment support (up to 5MB per file)\n- Session management and conversation history\n- Rich markdown rendering in TUI mode\n- Requires `trigger:invoke`, `trigger:status`, and `trigger:attach` token abilities"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "event: message\ndata: {\"type\": \"text\", \"content\": \"Analysis complete. Here are the key findings...\", \"delta\": true}\n\nevent: tool_call\ndata: {\"tool\": \"search_knowledge\", \"arguments\": {\"query\": \"data analysis\"}}\n\nevent: source\ndata: {\"title\": \"Data Analysis Guide\", \"url\": \"https:\/\/example.com\/guide\", \"domain\": \"example.com\"}\n\nevent: heartbeat\ndata: {\"timestamp\": 1704067200}\n\nevent: complete\ndata: {\"status\": \"completed\", \"duration_seconds\": 8}",
                            "name": "SSE Stream"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the trigger:invoke ability\"}",
                            "name": "Missing trigger:invoke ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the trigger:attach ability required for file uploads\"}",
                            "name": "Missing trigger:attach for files"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the trigger:tools ability required for tool override\"}",
                            "name": "Missing trigger:tools for override"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to invoke this trigger\"}",
                            "name": "Not Trigger Owner"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Trigger Disabled\", \"message\": \"This trigger is currently disabled\"}",
                            "name": "Trigger Disabled"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"File Validation Failed\", \"message\": \"File type not allowed: executable\"}",
                            "name": "File Validation Failed"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Invalid Tool Override\", \"message\": \"Tool 'invalid_tool' not available for this agent\", \"details\": []}",
                            "name": "Invalid Tool Override"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Validation Failed\", \"message\": \"Invalid input format\", \"errors\": {}}",
                            "name": "Validation Failed"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Provider Not Found\", \"message\": \"Provider 'custom_provider' is not registered\"}",
                            "name": "Provider Not Found"
                        }
                    ]
                },
                {
                    "name": "List all triggers",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/triggers",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/triggers"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve all input triggers for the authenticated user with basic information and API URLs.\nResults are ordered by creation date (newest first)."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"triggers\": [{\"id\": 1, \"name\": \"Daily Report Generator\", \"description\": \"Generates daily analytics reports\", \"provider\": \"schedule\", \"is_active\": true, \"agent_name\": \"Report Agent\", \"usage_count\": 42, \"last_invoked_at\": \"2024-01-01T10:00:00Z\", \"api_url\": \"https:\/\/promptlyagent.com\/api\/input-triggers\/1\"}]}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the trigger:status ability\"}",
                            "name": "Missing trigger:status ability"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while retrieving triggers\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "View a trigger's details",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/triggers\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/triggers\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "dolor",
                                    "description": "The ID of the trigger."
                                },
                                {
                                    "id": "trigger",
                                    "key": "trigger",
                                    "value": "1",
                                    "description": "The trigger ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve comprehensive information about a specific input trigger including configuration,\nusage statistics, and provider metadata."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"trigger\": {\"id\": 1, \"name\": \"Daily Report Generator\", \"description\": \"Generates daily analytics reports\", \"provider\": \"schedule\", \"is_active\": true, \"agent_id\": 5, \"agent_name\": \"Report Agent\", \"session_strategy\": \"continue_last\", \"usage_count\": 42, \"last_invoked_at\": \"2024-01-01T10:00:00Z\", \"rate_limits\": {\"max_per_minute\": 10}, \"created_at\": \"2023-12-01T00:00:00Z\"}, \"provider_info\": {\"name\": \"Schedule\", \"description\": \"Scheduled triggers\", \"icon\": \"\u23f0\"}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the trigger:status ability\"}",
                            "name": "Missing trigger:status ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to view this trigger\"}",
                            "name": "Not Trigger Owner"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"error\": \"Not Found\", \"message\": \"Trigger not found\"}",
                            "name": "Trigger Not Found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while retrieving trigger information\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Resolve session for a trigger",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/triggers\/:trigger_id\/session",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/triggers\/:trigger_id\/session",
                            "variable": [
                                {
                                    "id": "trigger_id",
                                    "key": "trigger_id",
                                    "value": "a",
                                    "description": "The ID of the trigger."
                                },
                                {
                                    "id": "trigger",
                                    "key": "trigger",
                                    "value": "1",
                                    "description": "The trigger ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Determine which chat session would be used for a trigger execution based on its session strategy,\nwithout actually executing the trigger. Useful for understanding session continuity behavior\nor pre-loading session history in CLI tools.\n\nSession strategies:\n- `new_each`: Creates a new session for each execution\n- `continue_last`: Continues the most recent session for this trigger\n- `specified`: Uses a specific default session"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"session_id\": null, \"is_existing\": false, \"will_create\": true, \"session_name\": \"\u23f0 Daily Report Generator\", \"strategy\": \"new_each\"}",
                            "name": "Will Create New Session"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"session_id\": 123, \"session_name\": \"Daily Report Generator\", \"is_existing\": true, \"will_create\": false, \"strategy\": \"continue_last\", \"interactions_count\": 15}",
                            "name": "Will Continue Existing"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the trigger:status ability\"}",
                            "name": "Missing trigger:status ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to access this trigger\"}",
                            "name": "Not Trigger Owner"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Server Error\", \"message\": \"An error occurred while resolving the session\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Validate or resolve session",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/triggers\/:trigger_id\/validate-session",
                            "query": [
                                {
                                    "key": "session_id",
                                    "value": "123",
                                    "description": "Optional session ID to validate.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/triggers\/:trigger_id\/validate-session?session_id=123",
                            "variable": [
                                {
                                    "id": "trigger_id",
                                    "key": "trigger_id",
                                    "value": "labore",
                                    "description": "The ID of the trigger."
                                },
                                {
                                    "id": "trigger",
                                    "key": "trigger",
                                    "value": "1",
                                    "description": "The trigger ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Validate that a specific session ID is compatible with this trigger, or resolve which session\nwould be used based on the trigger's session strategy.\n\nUse cases:\n- Validate a session ID before execution: `?session_id=123`\n- Resolve which session will be used: No parameters"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"valid\": true, \"session\": {\"id\": 123, \"name\": \"Daily Report Generator\", \"url\": \"https:\/\/promptlyagent.com\/dashboard\/research-chat\/123\", \"strategy_used\": \"validated\"}}",
                            "name": "Session Valid"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"valid\": true, \"session\": {\"id\": 456, \"name\": \"Report Session\", \"url\": \"https:\/\/promptlyagent.com\/dashboard\/research-chat\/456\", \"strategy_used\": \"continue_last\"}}",
                            "name": "Session Resolved"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"valid\": true, \"session\": null, \"message\": \"No existing session available\", \"strategy\": \"new_each\", \"url_pattern\": \"https:\/\/promptlyagent.com\/dashboard\/research-chat\/<id>\"}",
                            "name": "No Session Available"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"valid\": false, \"error\": \"Unauthorized\", \"message\": \"Your API token does not have the trigger:status ability\"}",
                            "name": "Missing trigger:status ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"valid\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to access this trigger\"}",
                            "name": "Not Trigger Owner"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"valid\": false, \"session\": null, \"message\": \"Session not found\"}",
                            "name": "Session Not Found"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"valid\": false, \"session\": null, \"message\": \"Session does not belong to you\"}",
                            "name": "Session Not Owned"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"success\": false, \"valid\": false, \"session\": null, \"message\": \"Session does not belong to this trigger\"}",
                            "name": "Session Wrong Trigger"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"valid\": false, \"error\": \"Internal Server Error\", \"message\": \"Failed to validate session\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "List webhook trigger configurations",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/input-triggers",
                            "query": [
                                {
                                    "key": "provider",
                                    "value": "webhook",
                                    "description": "Optional filter triggers by provider (webhook, schedule, etc.).",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/input-triggers?provider=webhook"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve webhook trigger configurations for UI integration. Returns trigger metadata\nincluding webhook URLs and secrets needed for external webhook setup.\n\n**Note**: This endpoint is primarily for UI consumption. For API integration, use the\nv1 API endpoints instead."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"triggers\": [{\"id\": 1, \"name\": \"GitHub Push Webhook\", \"config\": {\"provider\": \"webhook\", \"description\": \"Trigger on push events\"}, \"webhook_url\": \"https:\/\/example.com\/webhooks\/triggers\/1\", \"webhook_secret\": \"whs_abc123xyz456\"}]}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\"message\": \"Unauthenticated.\"}",
                            "name": "Unauthenticated"
                        }
                    ]
                },
                {
                    "name": "Get webhook trigger configuration",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/input-triggers\/:trigger",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/input-triggers\/:trigger",
                            "variable": [
                                {
                                    "id": "trigger",
                                    "key": "trigger",
                                    "value": "1",
                                    "description": "The trigger ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve webhook configuration for a specific trigger. Returns webhook URL and secret\nneeded for external webhook setup.\n\n**Note**: This endpoint is primarily for UI consumption. For API integration, use the\nv1 API endpoints instead."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\": 1, \"name\": \"GitHub Push Webhook\", \"config\": {\"provider\": \"webhook\", \"description\": \"Trigger on push events\"}, \"webhook_url\": \"https:\/\/example.com\/webhooks\/triggers\/1\", \"webhook_secret\": \"whs_abc123xyz456\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\"message\": \"Unauthenticated.\"}",
                            "name": "Unauthenticated"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"message\": \"Not found\"}",
                            "name": "Not Found"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Knowledge Management",
            "description": "\nComprehensive API for managing knowledge documents, files, and RAG (Retrieval-Augmented Generation) operations.\n\n## Document Types\n- **File uploads**: PDF, Word, text files, code files\n- **Text documents**: Direct text content\n- **External URLs**: Automatic fetching and refresh\n\n## Features\n- Semantic search with embeddings\n- Hybrid search (keyword + semantic)\n- Document tagging and categorization\n- Agent assignment for RAG context\n- Privacy controls (private\/public)\n\n## Rate Limiting\n- File uploads & extraction: 10 requests\/minute\n- Search & reprocessing: 60 requests\/minute\n- Read operations: 300 requests\/minute\n\n## Security\nAll file uploads are validated with magic byte verification, executable detection,\nand path traversal protection.",
            "item": [
                {
                    "name": "Create a new knowledge document",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"Laravel Best Practices\",\"description\":\"Comprehensive guide to Laravel development patterns\",\"content_type\":\"text\",\"content\":\"Laravel follows the MVC pattern...\",\"external_source\":\"https:\\\/\\\/laravel.com\\\/docs\",\"async\":false,\"external_source_identifier\":\"https:\\\/\\\/example.com\\\/article\",\"author\":\"Taylor Otwell\",\"thumbnail_url\":\"https:\\\/\\\/example.com\\\/thumb.jpg\",\"favicon_url\":\"https:\\\/\\\/example.com\\\/favicon.ico\",\"notes\":\"Added for Q1 training materials\",\"auto_refresh_enabled\":false,\"refresh_interval_minutes\":1440,\"tags\":[\"laravel\",\"php\",\"best-practices\"],\"privacy_level\":\"private\",\"ttl_hours\":168}"
                        },
                        "description": "Create a knowledge document from text content, file upload, or external URL.\nSupports automatic content extraction, embedding generation, and TTL-based expiration.\n\n## Example Usage\n\n**Chrome Extension** ([github.com\/promptlyagentai\/chrome-extension](https:\/\/github.com\/promptlyagentai\/chrome-extension)) - Save web page content to knowledge base:\n- Extracts content using Mozilla Readability\n- Sends as `content_type: 'text'` with title, content, tags, TTL\n- Requires `knowledge:create` token ability"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"success\": true, \"data\": {\"id\": 1, \"title\": \"Laravel Best Practices\", \"content_type\": \"text\", \"privacy_level\": \"private\", \"processing_status\": \"completed\", \"created_at\": \"2024-01-01T00:00:00Z\"}, \"message\": \"Knowledge document created successfully\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"FILE_VALIDATION_FAILED\", \"message\": \"File type not allowed: executable\"}",
                            "name": "File Validation Failed"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"CREATION_FAILED\", \"message\": \"Failed to create document\"}",
                            "name": "Creation Failed"
                        }
                    ]
                },
                {
                    "name": "Extract content from a URL",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/extract-url",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/extract-url"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"url\":\"https:\\\/\\\/laravel.com\\\/docs\"}"
                        },
                        "description": "Extract and parse content from a URL without creating a document. Returns extracted\ntext, title, description, and metadata. Useful for previewing content before saving.\n\nIncludes SSRF protection to block access to private networks and metadata services."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"content\": \"Laravel is a web application framework...\", \"title\": \"Laravel Documentation\", \"description\": \"The PHP framework for web artisans\", \"tags\": [\"framework\", \"php\"], \"metadata\": {\"author\": \"Laravel\", \"published_at\": \"2024-01-01\"}}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"SSRF_BLOCKED\", \"message\": \"Access to this URL is not allowed for security reasons\"}",
                            "name": "SSRF Blocked"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"VALIDATION_ERROR\", \"message\": \"URL parameter is required\"}",
                            "name": "Validation Failed"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"VALIDATION_ERROR\", \"message\": \"Invalid URL format\"}",
                            "name": "Invalid URL"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to extract content from URL: Connection timeout\"}",
                            "name": "Extraction Failed"
                        }
                    ]
                },
                {
                    "name": "Query knowledge base for RAG context",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/rag\/query",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/rag\/query"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"query\":\"How do I configure Laravel queues?\",\"agent_id\":5,\"limit\":10,\"context_length\":8000,\"include_sources\":true,\"include_expired\":false}"
                        },
                        "description": "Retrieve relevant knowledge documents for a given query, formatted as RAG context.\nReturns concatenated document excerpts with source attribution, ready for AI injection.\n\nResults are automatically filtered by privacy (public + user-owned) and TTL expiration.\nOptionally filter to agent-specific documents."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"context\": \"[Source: Laravel Queues Guide]\\nLaravel queues provide a unified API for background job processing...\\n\\n[Source: Redis Configuration]\\nTo use Redis as your queue driver, set QUEUE_CONNECTION=redis...\", \"query\": \"How do I configure Laravel queues?\", \"total_sources\": 2, \"sources\": [{\"id\": 1, \"title\": \"Laravel Queues Guide\", \"relevance_score\": 0.8, \"document_type\": \"text\"}, {\"id\": 5, \"title\": \"Redis Configuration\", \"relevance_score\": 0.8, \"document_type\": \"file\"}]}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"context\": \"\", \"query\": \"obscure query with no matches\", \"total_sources\": 0, \"sources\": []}}",
                            "name": "No Sources Found"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"RAG query failed\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Get RAG context (alias)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/rag\/context",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/rag\/context"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"query\":\"How do I configure Laravel queues?\",\"agent_id\":5,\"limit\":10,\"context_length\":8000,\"include_sources\":true,\"include_expired\":false}"
                        },
                        "description": "Alternative endpoint for retrieving RAG context. Functionally identical to the query endpoint.\nProvided for semantic clarity in workflows where \"context\" terminology is preferred."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"context\": \"[Source: Laravel Queues Guide]\\nLaravel queues provide a unified API...\", \"query\": \"How do I configure Laravel queues?\", \"total_sources\": 2, \"sources\": [{\"id\": 1, \"title\": \"Laravel Queues Guide\", \"relevance_score\": 0.8, \"document_type\": \"text\"}]}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"RAG query failed\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Stream RAG context with real-time SSE",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/rag\/stream",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/rag\/stream"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"query\":\"How do I configure Laravel queues?\",\"agent_id\":3,\"limit\":10,\"context_length\":8000,\"include_sources\":false,\"include_expired\":false}"
                        },
                        "description": "Retrieve relevant knowledge with Server-Sent Events (SSE) streaming. Returns context\nprogressively as sources are found and processed, enabling real-time UI updates.\n\nIdeal for building responsive interfaces where users see sources appearing in real-time\nrather than waiting for the complete result.\n\n**Connection Requirements:**\n- Set `Accept: text\/event-stream` header\n- Keep connection open to receive events\n- Parse SSE format: `data: {json}\\n\\n`\n\n**Event Sequence:**\n1. `context_retrieved` - Initial event with source count\n2. `source` - One event per source document (progressive)\n3. `context` - Final formatted RAG context\n4. `done` - Completion signal\n5. `error` - Only on failure"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "event: message\ndata: {\"type\": \"context_retrieved\", \"sources_found\": 3}\n\ndata: {\"type\": \"source\", \"data\": {\"id\": 1, \"title\": \"Laravel Queues Guide\", \"score\": 0.8}}\n\ndata: {\"type\": \"source\", \"data\": {\"id\": 5, \"title\": \"Redis Configuration\", \"score\": 0.8}}\n\ndata: {\"type\": \"context\", \"data\": \"[Source: Laravel Queues Guide]\\nLaravel queues provide...\"}\n\ndata: {\"type\": \"done\"}",
                            "name": "SSE Stream"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "event: message\ndata: {\"type\": \"error\", \"message\": \"RAG streaming failed\"}",
                            "name": "SSE Error"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"error\": \"Unauthorized\", \"message\": \"Your API token does not have the knowledge:rag ability\"}",
                            "name": "Missing Ability"
                        }
                    ]
                },
                {
                    "name": "Bulk delete documents",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/bulk\/delete",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/bulk\/delete"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"document_ids\":[1,2,3,4,5]}"
                        },
                        "description": "Delete multiple knowledge documents in a single operation. Each document is individually\nauthorized - documents you don't have permission to delete will be skipped.\n\nReturns a detailed summary including successful deletions and errors for failed operations."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"deleted_count\": 3, \"total_requested\": 5, \"errors\": [\"Document 2 not found\", \"Access denied for document 4\"]}, \"message\": \"Successfully deleted 3 documents\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Bulk delete failed\"}",
                            "name": "Operation Failed"
                        }
                    ]
                },
                {
                    "name": "Bulk assign tag to documents",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/bulk\/assign-tag",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/bulk\/assign-tag"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"document_ids\":[1,2,3,4,5],\"tag_name\":\"important\"}"
                        },
                        "description": "Assign a tag to multiple knowledge documents in a single operation. If the tag doesn't exist,\nit will be created automatically. Each document is individually authorized - documents you don't\nhave permission to update will be skipped."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"assigned_count\": 4, \"total_requested\": 5, \"tag\": {\"id\": 1, \"name\": \"important\", \"color\": \"zinc\"}, \"errors\": [\"Access denied for document 3\"]}, \"message\": \"Successfully assigned tag 'important' to 4 documents\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Bulk assign tag failed\"}",
                            "name": "Operation Failed"
                        }
                    ]
                },
                {
                    "name": "Regenerate missing embeddings in bulk",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/embeddings\/regenerate",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/embeddings\/regenerate"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"document_ids\":[3],\"limit\":50,\"force\":false,\"batch_size\":10,\"async\":false}"
                        },
                        "description": "Process multiple documents that are missing embeddings and generate embeddings for them.\nUseful for batch processing after system updates or when embeddings fail."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"processed\": 25, \"successful\": 23, \"failed\": 2, \"failed_documents\": [{\"id\": 10, \"error\": \"Content too large\"}, {\"id\": 15, \"error\": \"Invalid format\"}]}, \"message\": \"Processed 25 documents. Successful: 23, Failed: 2\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to regenerate embeddings\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Regenerate embeddings for a document",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/embeddings\/:document_id\/regenerate",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/embeddings\/:document_id\/regenerate",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "15",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Regenerate embeddings for a specific document. Deletes existing embeddings and generates\nnew ones from the current document content."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"chunk_count\": 150, \"generated_at\": \"2024-01-01T12:00:00Z\", \"embedding_model\": \"text-embedding-ada-002\"}, \"message\": \"Document embedding regenerated successfully\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"You do not have permission to modify this document\"}",
                            "name": "No Permission"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to regenerate embedding\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Reprocess a knowledge document",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/:document_id\/reprocess",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/:document_id\/reprocess",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "7",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"async\":true}"
                        },
                        "description": "Regenerate embeddings and reindex the document. Useful after system updates\nor when embeddings are corrupted."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"chunks_processed\": 150, \"embeddings_generated\": 150}, \"message\": \"Document reprocessed successfully\"}",
                            "name": "Success (Sync)"
                        },
                        {
                            "header": [],
                            "code": 202,
                            "body": "{\"success\": true, \"status\": \"processing\", \"job_id\": \"job_abc123\", \"status_url\": \"\/api\/v1\/knowledge\/1\"}",
                            "name": "Success (Async)"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"You do not have permission to reprocess this document\"}",
                            "name": "Unauthorized"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to reprocess document\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Refresh external document content",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/:document_id\/refresh",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/:document_id\/refresh",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "1",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Queue a job to re-fetch content from the external URL. Only available for\ndocuments created from external URLs (content_type: external)."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": null, \"message\": \"Document refresh queued successfully\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"You do not have permission to refresh this document\"}",
                            "name": "Unauthorized"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"INVALID_DOCUMENT\", \"message\": \"Document is not refreshable\"}",
                            "name": "Not Refreshable"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"INVALID_DOCUMENT\", \"message\": \"Document does not have an external source URL\"}",
                            "name": "No External URL"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to queue document refresh\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Search knowledge documents",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/search",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/search"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"query\":\"Laravel routing best practices\",\"limit\":20,\"filters\":{\"tags\":[\"laravel\",\"php\"]},\"include_expired\":false,\"highlight\":false,\"content_type\":\"external\",\"tags\":[\"laravel\",\"php\"]}"
                        },
                        "description": "Full-text search across all accessible knowledge documents using Meilisearch.\nSupports filtering by content type, tags, and expiration status.\n\n## Example Usage\n\n**PWA** (`resources\/js\/pwa\/knowledge-api.js`) - Knowledge search with offline support:\n- Full-text keyword search with typo tolerance\n- Automatic result caching for offline access\n- Intelligent fallback to cached results when offline\n- Cache validity: 30 minutes"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": [{\"id\": 1, \"title\": \"Laravel Routing Guide\", \"content\": \"Laravel routing allows you to...\", \"score\": 1.0, \"created_at\": \"2024-01-01T00:00:00Z\"}]}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Search failed\"}",
                            "name": "Search Failed"
                        }
                    ]
                },
                {
                    "name": "Semantic search knowledge documents",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/semantic-search",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/semantic-search"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"query\":\"How to handle HTTP requests\",\"limit\":20,\"filters\":{\"tags\":[\"laravel\",\"php\"]},\"include_expired\":false,\"highlight\":false,\"content_type\":\"external\",\"tags\":[\"laravel\"]}"
                        },
                        "description": "Search documents by semantic meaning using embeddings. Finds conceptually similar content\neven when exact keywords don't match.\n\n## Example Usage\n\n**PWA** (`resources\/js\/pwa\/knowledge-api.js`) - Semantic knowledge search:\n- Meaning-based search using embeddings\n- Finds conceptually related content\n- Offline cache support with 30-minute validity\n- Automatic fallback for offline queries"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": [{\"id\": 1, \"title\": \"Laravel HTTP Client\", \"content\": \"The Laravel HTTP client...\", \"score\": 0.95, \"created_at\": \"2024-01-01T00:00:00Z\"}]}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Search failed\"}",
                            "name": "Search Failed"
                        }
                    ]
                },
                {
                    "name": "Hybrid search knowledge documents",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/hybrid-search",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/hybrid-search"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"query\":\"Laravel middleware authentication\",\"limit\":20,\"filters\":{\"tags\":[\"laravel\",\"php\"]},\"include_expired\":false,\"highlight\":false,\"content_type\":\"text\",\"tags\":[\"laravel\",\"security\"]}"
                        },
                        "description": "Combines full-text and semantic search for optimal results. Uses keyword matching\nfor precision and semantic similarity for recall.\n\n## Example Usage\n\n**PWA** (`resources\/js\/pwa\/knowledge-api.js`) - Hybrid knowledge search (default):\n- Combines keyword and semantic search for best results\n- Default search type in PWA knowledge interface\n- Offline cache support with intelligent fallback\n- Cache validity: 30 minutes"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": [{\"id\": 1, \"title\": \"Authentication Middleware\", \"content\": \"Laravel middleware...\", \"score\": 0.98, \"created_at\": \"2024-01-01T00:00:00Z\"}]}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Search failed\"}",
                            "name": "Search Failed"
                        }
                    ]
                },
                {
                    "name": "Find similar documents",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/:document_id\/similar",
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "Optional maximum results to return (1-100). Defaults to 5.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/:document_id\/similar?limit=10",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "16",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID to find similar documents for."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Find documents similar to a given document based on content type and other attributes.\nUseful for recommendations and related content discovery."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": [{\"id\": 2, \"title\": \"Laravel Routing Advanced\", \"content\": \"Advanced routing techniques...\", \"score\": 0.8}]}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to find similar documents\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Create a new knowledge tag",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/tags",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/tags"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"laravel\",\"description\":\"Laravel framework documentation and guides\",\"color\":\"blue\"}"
                        },
                        "description": "Create a new tag for organizing knowledge documents. If a tag with the same name\nalready exists, returns the existing tag."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"success\": true, \"data\": {\"id\": 1, \"name\": \"laravel\", \"description\": \"Laravel framework documentation and guides\", \"color\": \"blue\", \"created_at\": \"2024-01-01T00:00:00Z\"}, \"message\": \"Tag created successfully\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Validation failed\", \"errors\": {\"name\": [\"The name field is required.\"]}}",
                            "name": "Validation Failed"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to create tag\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Add tags to a document",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/:document_id\/tags",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/:document_id\/tags",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "11",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"tag_ids\":[1,2,3]}"
                        },
                        "description": "Add one or more tags to a knowledge document. Existing tags are preserved (does not replace)."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"id\": 1, \"title\": \"Laravel Guide\", \"tags\": [{\"id\": 1, \"name\": \"laravel\"}, {\"id\": 2, \"name\": \"php\"}]}, \"message\": \"Tags added to document successfully\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"You do not have permission to modify this document\"}",
                            "name": "No Permission"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Validation failed\", \"errors\": {\"tag_ids\": [\"The tag ids field is required.\"]}}",
                            "name": "Validation Failed"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to add tags\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Assign document to agent",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/:document_id\/assign-agent",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/:document_id\/assign-agent",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "20",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"agent_id\":5,\"config\":{\"priority\":\"high\"}}"
                        },
                        "description": "Make a knowledge document available to an agent for RAG context. The agent will be able\nto query this document's content during executions."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": null, \"message\": \"Document assigned to agent successfully\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"You do not have permission to modify this document\"}",
                            "name": "No Permission"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Validation failed\", \"errors\": {\"agent_id\": [\"The agent id field is required.\"]}}",
                            "name": "Validation Failed"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to assign document to agent\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Unassign document from agent",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/:document_id\/unassign-agent\/:agent",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/:document_id\/unassign-agent\/:agent",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "18",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "agent",
                                    "key": "agent",
                                    "value": "5",
                                    "description": "The agent ID."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Remove a knowledge document from an agent's RAG context. The agent will no longer\nbe able to query this document's content."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": null, \"message\": \"Document unassigned from agent successfully\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"You do not have permission to modify this document\"}",
                            "name": "No Permission"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to unassign document from agent\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Update a knowledge document",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/:document_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/:document_id",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "10",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"Updated Laravel Guide\",\"description\":\"Updated comprehensive guide\",\"notes\":\"Updated with Laravel 12 changes\",\"auto_refresh_enabled\":false,\"refresh_interval_minutes\":1440,\"tags\":[\"laravel\",\"updated\"],\"privacy_level\":\"public\",\"ttl_hours\":720}"
                        },
                        "description": "Update document metadata including title, description, privacy level, tags, and TTL.\nContent cannot be modified - create a new document for content changes."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"id\": 1, \"title\": \"Updated Laravel Guide\", \"privacy_level\": \"public\"}, \"message\": \"Knowledge document updated successfully\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"You do not have permission to update this document\"}",
                            "name": "Unauthorized"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to update document\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Delete a knowledge document",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/:document_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/:document_id",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "8",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Permanently delete a document, its embeddings, and associated files.\nThis action cannot be undone."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": null, \"message\": \"Knowledge document deleted successfully\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"You do not have permission to delete this document\"}",
                            "name": "Unauthorized"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to delete document\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "List knowledge documents",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge",
                            "query": [
                                {
                                    "key": "only_my_documents",
                                    "value": "",
                                    "description": "Optional show only documents created by you. Defaults to false (shows public + yours).",
                                    "disabled": true
                                },
                                {
                                    "key": "content_type",
                                    "value": "text",
                                    "description": "Optional filter by content type. Options: text, file, external.",
                                    "disabled": false
                                },
                                {
                                    "key": "privacy_level",
                                    "value": "private",
                                    "description": "Optional filter by privacy. Options: private, public.",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "completed",
                                    "description": "Optional filter by processing status. Options: pending, processing, completed, failed.",
                                    "disabled": false
                                },
                                {
                                    "key": "tags[0]",
                                    "value": "laravel",
                                    "description": "Optional filter by tag names.",
                                    "disabled": false
                                },
                                {
                                    "key": "tags[1]",
                                    "value": "php",
                                    "description": "Optional filter by tag names.",
                                    "disabled": false
                                },
                                {
                                    "key": "include_expired",
                                    "value": "",
                                    "description": "Optional include expired documents (past TTL). Defaults to false.",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "description": "Optional results per page (1-100). Defaults to 50.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge?only_my_documents=&content_type=text&privacy_level=private&status=completed&tags[0]=laravel&tags[1]=php&include_expired=&per_page=20"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"page\":63,\"per_page\":23,\"search\":\"fmvussyedclhvcv\",\"content_type\":\"text\",\"status\":\"failed\",\"include_expired\":false}"
                        },
                        "description": "Retrieve knowledge documents with filtering and pagination. Returns public documents\nand the authenticated user's private documents. Supports filtering by content type,\nprivacy level, processing status, tags, and TTL expiration."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": [{\"id\": 1, \"title\": \"Laravel Documentation\", \"description\": \"Comprehensive Laravel guide\", \"content_type\": \"external\", \"privacy_level\": \"public\", \"processing_status\": \"completed\", \"url\": \"https:\/\/laravel.com\/docs\", \"domain\": \"laravel.com\", \"tags\": [{\"id\": 1, \"name\": \"laravel\"}], \"created_at\": \"2024-01-01T00:00:00Z\", \"updated_at\": \"2024-01-01T00:00:00Z\"}], \"meta\": {\"current_page\": 1, \"per_page\": 50, \"total\": 100}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to retrieve documents\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "List recent knowledge documents",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/recent",
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "50",
                                    "description": "Optional maximum number of documents to return (1-100). Defaults to 20.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/recent?limit=50"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve recently created knowledge documents. Returns up to 100 most recent completed documents\nthat are either public or owned by the authenticated user. Excludes expired documents.\n\n## Example Usage\n\n**PWA** (`resources\/js\/pwa\/knowledge-api.js`) - Recent documents with offline support:\n- Displays recently added knowledge documents\n- Caches all returned documents for offline access\n- Fallback to cached documents when offline\n- Sorted by creation date (newest first)"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": [{\"id\": 1, \"title\": \"Laravel Documentation\", \"content_type\": \"external\", \"created_at\": \"2024-01-01T00:00:00Z\"}]}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to retrieve recent documents\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Check if URL already exists",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/check-url",
                            "query": [
                                {
                                    "key": "url",
                                    "value": "https%3A%2F%2Flaravel.com%2Fdocs",
                                    "description": "The URL to check.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/check-url?url=https%3A%2F%2Flaravel.com%2Fdocs"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Check if a URL has already been added to your knowledge base. Useful for preventing\nduplicate document creation when importing external content."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"exists\": true, \"document\": {\"id\": 1, \"title\": \"Laravel Documentation\", \"url\": \"https:\/\/laravel.com\/docs\"}}",
                            "name": "URL Exists"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"exists\": false, \"document\": null}",
                            "name": "URL Not Found"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"VALIDATION_ERROR\", \"message\": \"URL parameter is required\"}",
                            "name": "Missing URL"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to check URL\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "View a knowledge document",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/:document_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/:document_id",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "13",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve complete details for a specific knowledge document including content,\nmetadata, tags, and embedding status.\n\n## Example Usage\n\n**PWA** (`resources\/js\/pwa\/knowledge-api.js`) - Document viewer with offline support:\n- Retrieves full document details including content\n- Automatic caching for offline access\n- Staleness check (cached data valid for 30 minutes)\n- Fallback to cache when offline"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"id\": 1, \"title\": \"Laravel Documentation\", \"description\": \"Comprehensive guide\", \"content\": \"Laravel is a web application framework...\", \"content_type\": \"external\", \"privacy_level\": \"public\", \"processing_status\": \"completed\", \"url\": \"https:\/\/laravel.com\/docs\", \"embedding_status\": {\"has_embeddings\": true, \"chunk_count\": 150, \"last_embedded_at\": \"2024-01-01T00:00:00Z\"}, \"tags\": [{\"id\": 1, \"name\": \"laravel\"}], \"created_at\": \"2024-01-01T00:00:00Z\"}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"You do not have permission to view this document\"}",
                            "name": "Unauthorized"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to retrieve document\"}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "Download a knowledge document file",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/:document_id\/download",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/:document_id\/download",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "7",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Download the original uploaded file for file-type documents.\nOnly available for documents created from file uploads."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "(binary file download)",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "Forbidden",
                            "name": "Unauthorized"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "File not found",
                            "name": "Not a File"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "File not found",
                            "name": "File Missing"
                        }
                    ]
                },
                {
                    "name": "Get system-wide embedding status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/embeddings\/status",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/embeddings\/status"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve overall embedding statistics and status for all documents in the system.\nShows counts of documents with\/without embeddings and processing status."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"statistics\": {\"total_documents\": 1000, \"documents_with_embeddings\": 950, \"documents_without_embeddings\": 50, \"total_chunks\": 15000, \"avg_chunks_per_document\": 15.8}, \"documents\": [{\"id\": 1, \"title\": \"Laravel Guide\", \"has_embeddings\": true, \"chunk_count\": 150}]}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to retrieve embedding status\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Get document embedding status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/embeddings\/:document_id\/status",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/embeddings\/:document_id\/status",
                            "variable": [
                                {
                                    "id": "document_id",
                                    "key": "document_id",
                                    "value": "16",
                                    "description": "The ID of the document."
                                },
                                {
                                    "id": "document",
                                    "key": "document",
                                    "value": "1",
                                    "description": "The document ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve embedding status for a specific document including chunk count and last generation time."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"has_embeddings\": true, \"chunk_count\": 150, \"last_embedded_at\": \"2024-01-01T00:00:00Z\", \"embedding_model\": \"text-embedding-ada-002\"}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"You do not have permission to view this document\"}",
                            "name": "No Permission"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to retrieve embedding status\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "List all knowledge tags",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/tags",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/tags"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve all knowledge tags ordered alphabetically by name."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": [{\"id\": 1, \"name\": \"laravel\", \"description\": \"Laravel framework documentation\", \"color\": \"blue\", \"created_at\": \"2024-01-01T00:00:00Z\"}]}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to retrieve tags\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Get agent's available documents",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/agents\/:agent\/documents",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/agents\/:agent\/documents",
                            "variable": [
                                {
                                    "id": "agent",
                                    "key": "agent",
                                    "value": "5",
                                    "description": "The agent ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve all knowledge documents available to an agent. Includes both directly assigned\ndocuments and documents tagged with tags assigned to the agent."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"agent_id\": 5, \"documents\": [{\"id\": 1, \"title\": \"Laravel Guide\", \"tags\": [{\"id\": 1, \"name\": \"laravel\"}]}], \"assigned_tags\": [{\"id\": 1, \"name\": \"laravel\"}], \"total_documents\": 1}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to retrieve agent knowledge\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Get knowledge base overview statistics",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/stats\/overview",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/stats\/overview"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve comprehensive statistics about your knowledge documents including totals,\nprocessing status, content type breakdowns, and recent activity."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"total_documents\": 1000, \"completed_documents\": 950, \"failed_documents\": 10, \"processing_rate\": 95.0, \"embedding_completion_rate\": 92.5, \"content_types\": {\"text\": 400, \"file\": 350, \"external\": 250}, \"recent_activity\": 45, \"embedding_service_status\": {\"enabled\": true, \"provider\": \"openai\", \"model\": \"text-embedding-ada-002\"}}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to retrieve statistics\"}",
                            "name": "Failed"
                        }
                    ]
                },
                {
                    "name": "Get embedding statistics",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/knowledge\/stats\/embeddings",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/knowledge\/stats\/embeddings"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve detailed statistics about embedding coverage and service configuration."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"data\": {\"total_documents\": 1000, \"documents_with_embeddings\": 925, \"documents_without_embeddings\": 75, \"completion_rate\": 92.5, \"total_chunks\": 15000, \"avg_chunks_per_document\": 16.2, \"embedding_service_enabled\": true, \"embedding_provider\": \"openai\", \"embedding_model\": \"text-embedding-ada-002\"}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Unauthorized\"}",
                            "name": "Missing Ability"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Failed to retrieve embedding statistics\"}",
                            "name": "Failed"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Output Actions",
            "description": "\nView execution logs and audit trails for output actions.\nOutput actions are automated webhooks triggered by agent executions.\n\n## Use Cases\n- Compliance reporting and audit trails\n- Debugging failed webhook deliveries\n- Monitoring action success rates\n- Performance analysis\n\n## Authentication\nRequired token abilities:\n- `output-action:view` - View action logs and statistics\n\n## Log Retention\nLogs are retained for up to 365 days and can be filtered by date range.",
            "item": [
                {
                    "name": "List execution logs for an output action",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/output-actions\/:action_id\/logs",
                            "query": [
                                {
                                    "key": "status",
                                    "value": "success",
                                    "description": "Optional filter by execution status. Options: success, failed, timeout.",
                                    "disabled": false
                                },
                                {
                                    "key": "days",
                                    "value": "7",
                                    "description": "Optional filter by recent days (1-365). Defaults to 30.",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "description": "Optional results per page (1-100). Defaults to 50.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/output-actions\/:action_id\/logs?status=success&days=7&per_page=20",
                            "variable": [
                                {
                                    "id": "action_id",
                                    "key": "action_id",
                                    "value": "adipisci",
                                    "description": "The ID of the action."
                                },
                                {
                                    "id": "action",
                                    "key": "action",
                                    "value": "1",
                                    "description": "The output action ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve paginated execution logs with filtering and statistics for a specific output action.\nUseful for debugging, compliance reporting, and monitoring webhook delivery success rates."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"action\": {\"id\": 1, \"name\": \"Slack Notification\", \"type\": \"webhook\", \"status\": \"active\"}, \"stats\": {\"total_executions\": 100, \"successes\": 95, \"failures\": 4, \"timeouts\": 1, \"success_rate\": 95.0, \"avg_duration_ms\": 245.3, \"last_executed_at\": \"2024-01-01T12:00:00Z\", \"period_days\": 30}, \"logs\": {\"data\": [{\"id\": 123, \"status\": \"success\", \"response_code\": 200, \"duration_ms\": 234, \"executed_at\": \"2024-01-01T12:00:00Z\"}], \"current_page\": 1, \"per_page\": 50, \"total\": 100}}",
                            "name": "Success with logs"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to view this action\"}",
                            "name": "Not Action Owner"
                        }
                    ]
                },
                {
                    "name": "List all execution logs across all actions",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/output-action-logs",
                            "query": [
                                {
                                    "key": "action_id",
                                    "value": "1",
                                    "description": "Optional filter by specific output action ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "failed",
                                    "description": "Optional filter by execution status. Options: success, failed, timeout.",
                                    "disabled": false
                                },
                                {
                                    "key": "days",
                                    "value": "30",
                                    "description": "Optional filter by recent days (1-365). Defaults to 7.",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "description": "Optional results per page (1-100). Defaults to 50.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/output-action-logs?action_id=1&status=failed&days=30&per_page=20"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve execution logs across all output actions owned by the authenticated user.\nSupports filtering by action, status, and date range."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"logs\": {\"data\": [{\"id\": 123, \"output_action\": {\"id\": 1, \"name\": \"Slack Notification\"}, \"status\": \"success\", \"response_code\": 200, \"duration_ms\": 234, \"executed_at\": \"2024-01-01T12:00:00Z\"}], \"current_page\": 1, \"per_page\": 50, \"total\": 250}}",
                            "name": "Success"
                        }
                    ]
                },
                {
                    "name": "View a specific execution log",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/output-action-logs\/:log_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/output-action-logs\/:log_id",
                            "variable": [
                                {
                                    "id": "log_id",
                                    "key": "log_id",
                                    "value": "5",
                                    "description": "The ID of the log."
                                },
                                {
                                    "id": "log",
                                    "key": "log",
                                    "value": "123",
                                    "description": "The log entry ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve complete details for a single output action execution log including request\/response data,\nheaders, timing information, and error details."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"log\": {\"id\": 123, \"output_action\": {\"id\": 1, \"name\": \"Slack Notification\", \"type\": \"webhook\"}, \"user\": {\"id\": 10, \"name\": \"John Doe\"}, \"triggerable\": {\"type\": \"App\\\\Models\\\\AgentExecution\", \"id\": 456}, \"url\": \"https:\/\/hooks.slack.com\/services\/...\", \"method\": \"POST\", \"headers\": {\"Content-Type\": \"application\/json\"}, \"body\": {\"text\": \"Agent completed successfully\"}, \"status\": \"success\", \"response_code\": 200, \"response_body\": {\"ok\": true}, \"error_message\": null, \"duration_ms\": 234, \"executed_at\": \"2024-01-01T12:00:00Z\", \"created_at\": \"2024-01-01T12:00:00Z\"}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Forbidden\", \"message\": \"You do not have permission to view this log\"}",
                            "name": "Not Log Owner"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Public Access",
            "description": "\nRead-only access to publicly shared chat sessions.\nNo authentication required - accessible to anyone with a valid share link.",
            "item": [
                {
                    "name": "Retrieve public chat session by UUID",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/sessions\/:uuid",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/sessions\/:uuid",
                            "variable": [
                                {
                                    "id": "uuid",
                                    "key": "uuid",
                                    "value": "9d4e1c23-5f2b-4d3e-8a9c-0b1a2c3d4e5f",
                                    "description": "The session's unique identifier (UUID)."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve a chat session that has been shared publicly via its UUID.\nReturns the full conversation history with all interactions, sources, and metadata.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"session\": {\n    \"uuid\": \"9d4e1c23-5f2b-4d3e-8a9c-0b1a2c3d4e5f\",\n    \"title\": \"My Research Session\",\n    \"shared_at\": \"2024-01-01T00:00:00.000000Z\",\n    \"expires_at\": \"2024-02-01T00:00:00.000000Z\",\n    \"interaction_count\": 5,\n    \"created_at\": \"2024-01-01T00:00:00.000000Z\"\n  },\n  \"interactions\": [\n    {\n      \"id\": 1,\n      \"question\": \"What is the capital of France?\",\n      \"answer\": \"Paris is the capital of France...\",\n      \"agent_name\": \"Research Agent\",\n      \"sources\": [],\n      \"created_at\": \"2024-01-01T00:00:00.000000Z\"\n    }\n  ]\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"success\": false,\n  \"error\": \"Not Found\",\n  \"message\": \"This session is not publicly accessible or has expired\"\n}",
                            "name": "Not found or not public"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Utility",
            "description": "\nUtility endpoints for URL validation, metadata extraction, and link previews.\nUsed internally by the UI but available for API integration.\n\n## Rate Limiting\n- Validation operations: 60 requests\/minute",
            "item": [
                {
                    "name": "Validate URL and extract metadata",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/validate-link",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/validate-link"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"url\":\"https:\\\/\\\/example.com\\\/article\"}"
                        },
                        "description": "Validate a URL and extract rich metadata including title, description, images,\nand Open Graph tags. Useful for generating link previews and validating external\nURLs before processing.\n\n**Security**: URL validation includes checks for private IP ranges, localhost,\nand suspicious schemes to prevent SSRF attacks."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"valid\": true, \"url\": \"https:\/\/example.com\/article\", \"title\": \"Example Article\", \"description\": \"An interesting article about...\", \"image\": \"https:\/\/example.com\/og-image.jpg\", \"domain\": \"example.com\", \"metadata\": {\"og:title\": \"Example Article\", \"og:description\": \"An interesting article...\", \"og:image\": \"https:\/\/example.com\/og-image.jpg\", \"twitter:card\": \"summary_large_image\"}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"valid\": false, \"error\": \"Invalid URL format\", \"url\": \"not-a-valid-url\"}",
                            "name": "Invalid URL"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"valid\": false, \"error\": \"URL is not reachable\", \"url\": \"https:\/\/nonexistent-domain-12345.com\"}",
                            "name": "Unreachable URL"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"message\": \"The url field is required.\", \"errors\": {\"url\": [\"The url field is required.\"]}}",
                            "name": "Validation Failed"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Webhooks",
            "description": "\nInvoke input triggers via webhooks using HMAC signature authentication. Webhooks provide\nan alternative to API tokens for automated trigger invocation from external systems.\n\n## Authentication\nWebhooks use **HMAC-SHA256 signature validation** instead of Sanctum tokens:\n- **X-Webhook-Signature**: HMAC signature of request body\n- **X-Webhook-Timestamp**: Unix timestamp (prevents replay attacks)\n- **X-Webhook-Nonce**: Unique request identifier\n\n**Signature Generation:**\n```\npayload = timestamp + \":\" + nonce + \":\" + request_body\nsignature = HMAC-SHA256(payload, secret_key)\n```\n\n## Trigger Types\n- **Agent Triggers**: Execute agent with webhook payload as input\n- **Command Triggers**: Execute triggerable command with webhook parameters\n\n## Rate Limiting\n- Webhook invocations: 60 requests\/minute per trigger\n- Ping endpoint: 120 requests\/minute per trigger\n\n## Use Cases\n- GitHub\/GitLab webhook integration for CI\/CD automation\n- External system notifications triggering agent workflows\n- Third-party service callbacks (payment processors, CRMs, etc.)\n- Scheduled jobs from external cron services",
            "item": [
                {
                    "name": "Invoke webhook trigger",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "webhooks\/triggers\/:trigger_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/webhooks\/triggers\/:trigger_id",
                            "variable": [
                                {
                                    "id": "trigger_id",
                                    "key": "trigger_id",
                                    "value": "fugit",
                                    "description": "The ID of the trigger."
                                },
                                {
                                    "id": "trigger",
                                    "key": "trigger",
                                    "value": "1",
                                    "description": "The trigger ID or slug."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "X-Webhook-Signature",
                                "value": "required HMAC-SHA256 signature of the request. Example: a1b2c3d4e5f6..."
                            },
                            {
                                "key": "X-Webhook-Timestamp",
                                "value": "required Unix timestamp when request was created. Example: 1704067200"
                            },
                            {
                                "key": "X-Webhook-Nonce",
                                "value": "required Unique identifier for this request (prevents replay). Example: uuid-1234-5678"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"*\":\"{\\\"repository\\\": \\\"owner\\\/repo\\\", \\\"event\\\": \\\"push\\\", \\\"branch\\\": \\\"main\\\"}\"}"
                        },
                        "description": "Execute an input trigger via webhook invocation. The trigger processes the webhook\npayload asynchronously and returns immediately with a 202 Accepted response.\n\n**Agent Triggers**: Webhook payload is passed as the chat input to the agent.\n**Command Triggers**: Webhook payload parameters are mapped to command arguments.\n\n**Security:** All requests must include valid HMAC signature headers or will be rejected\nwith 401 Unauthorized. Disabled triggers return 403 Forbidden.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 202,
                            "body": "{\"success\": true, \"message\": \"Webhook received and processing\", \"invocation_id\": \"inv_abc123\", \"session_id\": 1, \"interaction_id\": 5, \"status\": \"dispatched\", \"status_url\": \"\/api\/status\/inv_abc123\", \"chat_url\": \"\/chat\/1\"}",
                            "name": "Agent Trigger Accepted"
                        },
                        {
                            "header": [],
                            "code": 202,
                            "body": "{\"success\": true, \"message\": \"Command execution dispatched\", \"trigger_id\": 1, \"trigger_type\": \"command\", \"command_class\": \"App\\\\Console\\\\Commands\\\\ProcessData\", \"status\": \"dispatched\", \"queue\": \"research-coordinator\"}",
                            "name": "Command Trigger Accepted"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"success\": false, \"error\": \"Invalid Endpoint\", \"message\": \"This trigger does not accept webhook invocations\"}",
                            "name": "Invalid Trigger Type"
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\"success\": false, \"error\": \"Validation Failed\", \"message\": \"HMAC signature verification failed\"}",
                            "name": "Invalid Signature"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"success\": false, \"error\": \"Trigger Disabled\", \"message\": \"This webhook endpoint is currently disabled\"}",
                            "name": "Trigger Disabled"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"success\": false, \"error\": \"Invalid Input\", \"message\": \"Missing required parameter: repository\"}",
                            "name": "Invalid Input"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"success\": false, \"error\": \"Processing Failed\", \"message\": \"An error occurred while processing the webhook\"}",
                            "name": "Processing Failed"
                        }
                    ]
                },
                {
                    "name": "Test webhook connectivity",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "webhooks\/triggers\/:trigger_id\/ping",
                            "query": [],
                            "raw": "{{baseUrl}}\/webhooks\/triggers\/:trigger_id\/ping",
                            "variable": [
                                {
                                    "id": "trigger_id",
                                    "key": "trigger_id",
                                    "value": "enim",
                                    "description": "The ID of the trigger."
                                },
                                {
                                    "id": "trigger",
                                    "key": "trigger",
                                    "value": "1",
                                    "description": "The trigger ID or slug."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Ping endpoint to verify webhook configuration and accessibility. Use this to test\nwebhook URLs, verify trigger status, and confirm HMAC signature validation works.\n\nUnlike the main webhook endpoint, ping does not execute the trigger or require\nHMAC signature validation, making it safe for testing and health checks.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"success\": true, \"message\": \"Webhook endpoint is reachable\", \"trigger\": {\"name\": \"GitHub Push Webhook\", \"is_active\": true, \"last_invoked_at\": \"2024-01-01T12:00:00Z\"}}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"success\": false, \"error\": \"Invalid Endpoint\", \"message\": \"This is not a webhook trigger\"}",
                            "name": "Not a Webhook Trigger"
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "Authorization",
                "type": "string"
            }
        ]
    }
}