Skip to content
Join Pilot

For developers

Voice AI API for developers

Send leads in over HTTP, and your Answrable agent calls them automatically. When each call ends, you get a signed webhook with the outcome and summary.

Apply for API access

1. Send a lead

POST /inbound/leads adds a lead to one of your workflows. Authenticate with your organisation's inbound lead API key as a Bearer token (API access is turned on per account; ask us to enable it). The agent calls the lead after autoCallDelayMinutes (default 1), and context is given to the agent for that call only.

curl -X POST https://api.answrable.com/inbound/leads \
  -H "Authorization: Bearer $ANSWRABLE_INBOUND_LEAD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workflowId": "6f1c2b9e-3d7a-4c1e-9a52-0b8e2f4d7a10",
    "name": "Rohit Sharma",
    "phone": "+919876543210",
    "email": "rohit@example.com",
    "context": "Enquired about 2BHK in Wakad, budget 75 lakh",
    "autoCallDelayMinutes": 1
  }'

# 201 Created
{ "leadId": "1b7f0c52-8f3e-4c55-a0de-2b6a1f9c3e77" }
  • Required: workflowId (UUID), name, phone.
  • Errors: 400 invalid request or unknown workflow, 401 missing or wrong key, 403 plan doesn't include the API.
  • Leads marked do-not-call are skipped.

2. Tools your agent uses during the call

Each call is bound to its lead, so these actions update that lead directly. Calls from numbers that don't match a lead still connect, but without these tools.

In-call tools
ToolWhat it does
book_appointmentBooks an appointment for the lead in Answrable's appointments list.
update_lead_statusChanges the lead's status, for example to interested or not interested.
schedule_callbackSchedules a follow-up call at a time the customer chooses.
escalate_to_humanFlags the call for your team to follow up and records why. It doesn't transfer the live call.
get_product_infoLooks up answers in your business information (keyword matching).
send_whatsapp_messageSends a WhatsApp message to the lead during the call.Free-form text only, so Meta delivers it only if the customer messaged you in the last 24 hours.

3. Get the result when the call ends

Set a webhook URL in your dashboard and Answrable sends a call.completed event after every call. Failed deliveries are retried, up to 5 attempts.

POST <your webhook URL>
Content-Type: application/json
X-Answrable-Signature: <hex HMAC-SHA256 of the raw body, using your webhook secret>

{
  "event": "call.completed",
  "callSessionId": "c4d9…",
  "leadId": "1b7f0c52-8f3e-4c55-a0de-2b6a1f9c3e77",
  "leadName": "Rohit Sharma",
  "leadPhone": "+919876543210",
  "outcome": "…",
  "summary": "Interested in the 74 lakh flat. Site visit booked for Saturday 11 AM.",
  "collectedData": { "budget": "75 lakh" },
  "durationSeconds": 96,
  "completedAt": "2026-11-04T10:42:13.000Z"
}

Check the signature

Compute an HMAC-SHA256 of the raw request body with your webhook secret and compare it to the X-Answrable-Signature header.

import { createHmac, timingSafeEqual } from "node:crypto";

export function isFromAnswrable(rawBody: string, signature: string, secret: string) {
  const expected = createHmac("sha256", secret).update(rawBody).digest("hex");
  return expected.length === signature.length &&
    timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
}

4. Use Answrable from AI assistants (MCP)

Coming soon: an MCP server so Claude, ChatGPT, Perplexity and other assistants can run Answrable for a signed-in person.

What people can do with it, in plain words: Claude, ChatGPT and Perplexity.

Need something else?

Building something we don't cover here? Email operations@answrable.com or see what's already connected on the integrations page.

Get a free demo call

Tell us where to call. We'll ring you back and show you an AI agent for your kind of business.