Authorization: Api-Key YOUR_API_KEY
curl -X GET \
'https://api.maiagent.ai/api/v1/chatbots/?page=1&pageSize=10' \
-H 'Authorization: Api-Key YOUR_API_KEY'
{
"count": "integer",
"next": "string|null",
"previous": "string|null",
"results": [
{
"id": "string",
"name": "string",
"largeLanguageModel": {
"id": "string",
"name": "string",
"isDefault": "boolean"
},
"rag": {
"id": "string",
"name": "string",
"isDefault": "boolean",
"isEmbeddingModelSelectable": "boolean",
"isRerankerModelSelectable": "boolean"
},
"embeddingModel": {
"id": "string",
"name": "string",
"isDefault": "boolean"
},
"rerankerModel": {
"id": "string",
"name": "string",
"isDefault": "boolean"
},
"updatedAt": "string"
}
]
}
curl -X POST \
'https://api.maiagent.ai/api/v1/chatbots/{chatbot_id}/completions/' \
-H 'Authorization: Api-Key YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"conversation": "string|null",
"message": {
"content": "string",
"attachments": []
},
"is_streaming": boolean
}'
{
"content": "string",
"conversationId": "string"
}
data: {
"content": "string",
"conversation_id": "string",
"done": boolean
}