curl --request GET \
--url https://api.example.com/api/get-settings.php{
"success": true,
"settings": {
"systemPrompt": "<string>",
"welcomeMessage": "<string>",
"errorMessage": "<string>",
"contextMessagesCount": 123,
"calendarEnabled": true,
"botMode": "<string>",
"botName": "<string>"
}
}Retrieve all bot configuration settings
curl --request GET \
--url https://api.example.com/api/get-settings.php{
"success": true,
"settings": {
"systemPrompt": "<string>",
"welcomeMessage": "<string>",
"errorMessage": "<string>",
"contextMessagesCount": 123,
"calendarEnabled": true,
"botMode": "<string>",
"botName": "<string>"
}
}curl https://your-domain.com/api/get-settings.php
"Eres un asistente virtual útil y amigable.""Hola! Soy un asistente virtual. ¿En qué puedo ayudarte?""Lo siento, no encontré información relevante. Un operador te atenderá pronto."5false"ai" (RAG mode) or "classic" (flow-based)Default: "ai""WhatsApp Bot"{
"success": true,
"settings": {
"systemPrompt": "Eres un asistente virtual útil y amigable.",
"welcomeMessage": "Hola! Soy un asistente virtual. ¿En qué puedo ayudarte?",
"errorMessage": "Lo siento, no encontré información relevante. Un operador te atenderá pronto.",
"contextMessagesCount": 5,
"calendarEnabled": false,
"botMode": "ai",
"botName": "WhatsApp Bot"
}
}
{
"success": false,
"error": "Error al obtener configuración"
}
| Status Code | Description |
|---|---|
| 200 | Settings retrieved successfully |
| 500 | Internal server error |
settings table for all configuration key-value pairsapi/get-settings.php:9-48