v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Plugins

Create a new plugin

Creates a new plugin with the specified configuration.

post/api/plugins

Request body

namestring required
enabledboolean
configobject
pathstring

Response

Plugin created successfully

messagestring

Example response

{
  "plugin": {
    "name": "my_custom_plugin",
    "actualName": "MyCustomPlugin",
    "enabled": true,
    "config": {
      "api_key": "xxx"
    },
    "isCustom": true,
    "path": "/plugins/my_custom_plugin.so",
    "status": {
      "name": "my_custom_plugin",
      "status": "active",
      "logs": [
        "plugin my_custom_plugin initialized successfully"
      ],
      "types": [
        "llm",
        "http"
      ]
    }
  }
}