Piero Scaruffi
Piero Scaruffi · Actions GPT
WebTranspose Chat Database Query API
POST /chat/database/queryQuery database via Chatbot
Schéma original API
{
"openapi": "3.0.0",
"info": {
"title": "WebTranspose Chat Database Query API",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.webtranspose.com/v1",
"description": "Main API server"
}
],
"paths": {
"/chat/database/query": {
"post": {
"summary": "Query database via Chatbot",
"operationId": "chatDatabaseQuery",
"tags": [
"Chatbot Query"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChatbotQueryRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChatbotQueryResponse"
}
}
}
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}
}
},
"components": {
"schemas": {
"ChatbotQueryRequest": {
"type": "object",
"properties": {
"chatbot_id": {
"type": "string",
"description": "Unique identifier for the chatbot"
},
"query": {
"type": "string",
"description": "Database query string"
}
}
},
"ChatbotQueryResponse": {
"type": "object",
"properties": {
"response": {
"type": "string",
"description": "Response from the database"
}
}
}
},
"securitySchemes": {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key"
}
}
}
}