Start training.
{
"error": "invalid request body"
}| Field | Type | Required | Description |
|---|---|---|---|
rep_number |
string |
yes | Rep number |
persona |
number |
no | Persona |
{"status": "calling", "persona": persona["name"]}Try it:
curl -X POST http://localhost:5000/train \
-H "Content-Type: application/json" \
-d '{"error": "invalid request body"}'Receives Telnyx Call Control webhook events. Called automatically by Telnyx during calls — do not call directly.
Try it:
curl -X POST http://localhost:5000/webhooks/voiceGet a specific results by ID.
{
"error": "invalid request body"
}Try it:
curl http://localhost:5000/resultsList all personas.
{"personas": [{"index": null, "name": p["name"], "style": p["style"]}Try it:
curl http://localhost:5000/personasHealth check and service status.
{
"status": "ok",
"active": "<string>",
"completed": "<string>"
}Try it:
curl http://localhost:5000/healthRecords use these status values: calling, ended, in_character, listening, ok, reprompting, responding
All endpoints return JSON. On error:
{
"error": "invalid request body"
}| Status | Meaning |
|---|---|
200 |
Success |
400 |
Bad request — missing or invalid fields |
500 |
Server error |