Reference
API Endpoints
A technical reference for the SyncFlo REST API. All requests require a valid API key in the Authorization header.
POST
/api/whatsapp/simulateSimulate a conversation with an AI Agent to test behavior programmatically.
Request Body
message (string): The user's message.
history (array, optional): Conversation history.
Response Payload
{
"reply": "Hello! How can I help you today?",
"toolsUsed": [
"KnowledgeBase"
]
}GET
/api/agentsRetrieve all AI agents linked to your integration.
No Parameters
Response Payload
{
"agents": [
{
"id": "...",
"name": "Support Bot",
"model": "gpt-4o-mini",
"temperature": 0.7
}
]
}