Base URL: https://ws.n8nbox.cloud
Authentication: All requests must include the x-api-key header.
Check if the server is running and view active session count.
Initialize a new chat session.
Body:{
"first_name": "John",
"phone_number": "1234567890",
"target_url": "wss://ag-txt.wittify.ai/v1/ws"
}
target_url: (Optional) The WebSocket URL to connect to. Defaults to the system configured URL.
Send a message to an active session.
Body:{
"message": "Hello, how are you?",
"wait_for_response": true
}
wait_for_response: (Optional) If true, waits (up to 30s) for the AI response.
Retrieve messages from a session.
Query Params: clear=true (default) or false.
Check the status of a specific session.
List all active sessions (Admin only).
Terminate a specific session.