Everything you need to build empathic voice agents with RealSpeak.
All API requests require a Bearer token. Generate API keys from the dashboard.
Authorization: Bearer rs_live_...
POST /api/v1/agents
{
"name": "Support Agent",
"systemPrompt": "You are a helpful support agent...",
"voiceName": "ITO",
"webhookUrl": "https://yourapp.com/webhook",
"webhookSecret": "whsec_your_secret",
"tools": [{
"name": "lookup_order",
"description": "Look up order by ID",
"parameters": {
"type": "object",
"properties": {
"orderId": { "type": "string" }
},
"required": ["orderId"]
}
}]
}RealSpeak sends HMAC-SHA256 signed webhooks to your endpoint. Verify using the X-RealSpeak-Signature header.
Sent when a new call connects. Return agent config.
Sent when the agent invokes a tool. Return the result as a string.
{
"event": "tool_call",
"callId": "call_abc123",
"toolCallId": "tc_xyz",
"name": "lookup_order",
"parameters": { "orderId": "ORD-456" }
}
// Your response:
{ "result": "Order ORD-456 shipped yesterday, tracking: 1Z999..." }Real-time emotion data from Hume EVI (48 dimensions per utterance).
Sent when the call ends. Includes transcript, summary, prosody timeline.
GET /api/v1/calls?limit=50&offset=0
GET /api/v1/usage