Developers
REST API & webhooks for AMBITION AI
Base URL
https://app.ambitnhouse.com/apiEndpoints
GET
/agentsList all agentsPOST
/agentsCreate an agentGET
/agents/:idGet one agentPUT
/agents/:idUpdate an agentPOST
/twilio/outbound-callStart an outbound callPOST
/batch-callsStart a batch of callsGET
/callsList call historyGET
/calls/:idGet a call with transcript & analysisGET
/calls/analyticsAggregate analyticsPOST
/contactsCreate a contactStart an outbound call
curl
curl -X POST https://app.ambitnhouse.com/api/twilio/outbound-call \
-H "Content-Type: application/json" \
-d '{
"to": "+34600000000",
"from_number": "+13158183970",
"agent_id": "your-agent-id"
}'Post-call webhook
Set a Webhook URL on any agent. When a call finishes and is analyzed, this JSON is POSTed to it.
POST body
{
"event": "call_analyzed",
"call_id": "e3b0c...",
"agent_id": "d3e8c...",
"agent_name": "Receptionist",
"from_number": "+34600000000",
"direction": "inbound",
"transcript": [ { "role": "user", "content": "..." } ],
"summary": "Caller booked an appointment for Tuesday.",
"sentiment": "positive",
"call_successful": true,
"custom_data": { "appointment_date": "Tue 3pm" },
"recording_url": "/api/calls/e3b0c.../recording"
}