View .md

Chatbot endpoints (Client API: VDS)

6 FeatherPanel Client API: VDS endpoints from user/vds/chatbot.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Last synced from FeatherPanel 15b94e9 on .

On this page

Defined in backend/app/routes/user/vds/chatbot.php. Authentication used here: Signed-in user. Read Authentication for how to send credentials and Rate limits and errors for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

Endpoints

POST/api/user/vds-chatbot/chat

Auth: Signed-in userDefault rate limit: 30 / minute (user-vds-chatbot)Route name: vds-chatbot-chatController: VdsChatbotController::chatroute source

Send a message to the VDS AI chatbot Send a message to the VDS AI assistant and receive a response. Optionally include chat history for context.

Request body: VdsChatbotRequest (application/json)

Body fieldTypeRequiredDescription
messagestringyesUser message
historyobject[]noChat history
Response data fieldTypeDescription
responsestring
curl -X POST "$PANEL_URL/api/user/vds-chatbot/chat" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"message":"","history":[]}'

Responses: 200 Chat response received successfully · 400 Invalid request · 401 Unauthorized

POST/api/user/vds-chatbot/chat/stream

Auth: Signed-in userDefault rate limit: 30 / minute (user-vds-chatbot)Route name: vds-chatbot-chat-streamController: VdsChatbotController::streamChatroute source
curl -X POST "$PANEL_URL/api/user/vds-chatbot/chat/stream" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

GET/api/user/vds-chatbot/conversations

Auth: Signed-in userDefault rate limit: 30 / minute (user-vds-chatbot)Route name: vds-chatbot-conversationsController: VdsChatbotController::getConversationsroute source

Get user VDS chatbot conversations Retrieve all VDS chatbot conversations for the authenticated user.

Response data fieldTypeDescription
conversationsobject[]
curl -X GET "$PANEL_URL/api/user/vds-chatbot/conversations" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Conversations retrieved successfully · 401 Unauthorized

GET/api/user/vds-chatbot/conversations/{id}

Auth: Signed-in userDefault rate limit: 30 / minute (user-vds-chatbot)Route name: vds-chatbot-conversationController: VdsChatbotController::getConversationroute source

Get VDS chatbot conversation messages Retrieve all messages for a specific VDS chatbot conversation.

ParameterInTypeRequiredDescription
idpathintegeryesConversation ID
Response data fieldTypeDescription
conversationobject
messagesobject[]
curl -X GET "$PANEL_URL/api/user/vds-chatbot/conversations/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Messages retrieved successfully · 401 Unauthorized · 404 Conversation not found

DELETE/api/user/vds-chatbot/conversations/{id}

Auth: Signed-in userDefault rate limit: 10 / minute (user-vds-chatbot)Route name: vds-chatbot-conversation-deleteController: VdsChatbotController::deleteConversationroute source

Delete VDS chatbot conversation Delete a VDS chatbot conversation and all its messages.

ParameterInTypeRequiredDescription
idpathintegeryesConversation ID
curl -X DELETE "$PANEL_URL/api/user/vds-chatbot/conversations/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Plugin events: featherpanel:chatbot:conversation:delete

Responses: 200 Conversation deleted successfully · 401 Unauthorized · 404 Conversation not found

PATCH/api/user/vds-chatbot/conversations/{id}/memory

Auth: Signed-in userDefault rate limit: 10 / minute (user-vds-chatbot)Route name: vds-chatbot-conversation-memoryController: VdsChatbotController::updateMemoryroute source

Update VDS chatbot conversation memory Update the memory field for a VDS chatbot conversation. This memory is included in the AI context for future messages.

ParameterInTypeRequiredDescription
idpathintegeryesConversation ID
Body fieldTypeRequiredDescription
memorystringnoMemory content
curl -X PATCH "$PANEL_URL/api/user/vds-chatbot/conversations/$ID/memory" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"memory":""}'

Plugin events: featherpanel:chatbot:conversation:memory:update

Responses: 200 Memory updated successfully · 401 Unauthorized · 404 Conversation not found