Read your calls
Recent calls with outcomes, full transcripts as Caller and Agent turns, private recording links, and monthly minutes.
Developers · PhoneIQ MCP Server
The PhoneIQ MCP server connects Claude, ChatGPT, Cursor, Replit or any MCP client to your PhoneIQ account. Add one URL, sign in with PhoneIQ and pick your workspace. Your AI tool can then read calls and transcripts, and draft and deploy your agents. An API key works too.
Control your agent
Your AI tool works through the same steps you would. New agents start as drafts and never answer calls on create. Deploying makes a saved version live, so you can roll forward to a new version or back to an earlier one.
Draft and review
"Draft a Saturday agent called Weekend Desk. It should say we close at 2pm on Saturdays and take a message. Show it to me before it goes live."
create_agent_draft with a name, greeting and instructionsget_agent to show the greeting, instructions and versionsDeploy
"Looks right. Deploy Weekend Desk."
deploy_agent_version makes the latest saved version live and switches the draft to activeconnect_numberRoll forward or back
"Version 4 of the front desk agent is the one we tested. Make it live."
list_agents and get_agent to find the agent and its saved versionsdeploy_agent_version with version: 4Check the setup
"Which number goes to which agent, and what does the front desk agent say when it answers?"
list_routes for each number and the agent it reachesget_agent for the greeting and instructionsNot in the MCP server yet: editing an existing agent, and choosing a voice or model (new agents use your account defaults).
From a new account to an agent answering calls, in one conversation with your AI tool.
create_agent_draft with a name, greeting and instructions.get_phone_number gets a local number on your trial or plan.connect_number with that number and the agent's id.deploy_agent_version makes the agent live.The agent now answers calls at its number. get_account_status shows your remaining credit and trial status at any time.
To cover only certain hours, forward your business phone to your agent's number during those hours. Business hours and rules live in the agent's instructions.
New accounts that sign up through a connector get this trial.
Free trial: 1,000 credits (about 29 minutes of calls), 14 days, one local number, no card needed.
Auth and safety
MCP · app · host, and lists it in Settings, API keys.Authorization: Bearer YOUR_API_KEY.retry-after header.Webhooks
PhoneIQ sends an HTTPS POST to your endpoint as things happen. Subscribe to any of these events, or to all of them:
call.created, call.answered, call.ended, call.failedtranscript.final and recording.readyusage.call_summary and contact.erasedwebhook.test for checking your endpointEvery delivery is signed. Verify the x-phoneiq-signature header (HMAC-SHA256) with the signing secret you get once when you create the webhook (how). Delivery is at least once and unordered, so dedupe on the event id. Reply with any 2xx within 10 seconds.
"Add a webhook to https://your-app.example.com/phoneiq for call.ended and transcript.final, send a test event, and tell me if it arrived."
create_webhook returns the endpoint and its signing secrettest_webhook sends a test event and reports the resultRequest headers on every delivery
POST /your/path
content-type: application/json
user-agent: PhoneIQ-Webhooks/1.0
x-phoneiq-signature: t=1781372528,v1=<64 hex chars>
x-phoneiq-event-id: evt_4f0a9c1b2d3e4f5061728394a5b6c7d8
x-phoneiq-event-type: call.ended
Every body is the same envelope: id, type, apiVersion, createdAt, customerId and a data object that depends on the type. Fields marked nullable below can be null.
call.endeddata is the full call, the same shape as GET /api/agents/v1/calls/{id} without the transcript. Nullable: runtimeNode, routeId, agentId, agentVersion, answeredAt, endedAt, endReason, both numbers, recordingUrl, totalTurns, both latencies and metadata. transcriptUrl is always null; the turns arrive in transcript.final. Treat endReason as free text.
{
"id": "evt_4f0a9c1b2d3e4f5061728394a5b6c7d8",
"type": "call.ended",
"apiVersion": "2026-06",
"createdAt": "2026-06-13T17:43:42.512Z",
"customerId": "cust_9a8b7c6d",
"data": {
"id": "call_77c1a2b3c4d5e6f70819",
"direction": "inbound",
"runtimeNode": "node-sjc-04",
"routeId": "route_0a1b2c3d4e5f60718293a4b5c6d7e8f9",
"agentId": "agent_1234567890abcdef1234567890abcdef",
"agentVersion": 3,
"startedAt": "2026-06-13T17:41:55.000Z",
"answeredAt": "2026-06-13T17:41:58.000Z",
"endedAt": "2026-06-13T17:43:42.000Z",
"endReason": "caller_hangup",
"callerNumber": "+14155550123",
"calleeNumber": "+14155550199",
"transcriptUrl": null,
"recordingUrl": "https://agents.phoneiq.co/api/agents/v1/calls/call_77c1a2b3c4d5e6f70819/recording",
"totalTurns": 12,
"latencyMsP50": 540,
"latencyMsP95": 910,
"metadata": null
}
}
recordingUrl downloads with your API key in the Authorization header.
transcript.finaldata has the callId and the ordered transcript. Each turn has speaker ("caller" or "assistant"), text, and atMs, the offset from the start of the call in milliseconds. It can arrive before or after call.ended for the same call.
{
"id": "evt_0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e",
"type": "transcript.final",
"apiVersion": "2026-06",
"createdAt": "2026-06-13T17:43:43.020Z",
"customerId": "cust_9a8b7c6d",
"data": {
"callId": "call_77c1a2b3c4d5e6f70819",
"transcript": [
{
"speaker": "assistant",
"text": "Thanks for calling. How can I help?",
"atMs": 1200
},
{
"speaker": "caller",
"text": "I need to reschedule my appointment.",
"atMs": 4300
}
]
}
}
The header looks like x-phoneiq-signature: t=1781372528,v1=5d41.... t is the Unix time in seconds when PhoneIQ signed the body. v1 is the HMAC-SHA256 of t, a dot and the raw body, as lowercase hex.
, and then on = to get t and v1.t + . + raw body, as UTF-8.whsec_ prefix. Do not hex-decode it.v1 with a constant-time comparison.t is more than 5 minutes from your clock. PhoneIQ does not enforce a time window, so this check is yours.id.The signing secret looks like whsec_ followed by 64 hex characters. It is shown once, when the webhook is created. Store it as a secret, for example PHONEIQ_WEBHOOK_SECRET.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verifyPhoneIQ(rawBody: string, header: string | null, secret: string): boolean {
const parts = Object.fromEntries((header ?? "").split(",").map((p) => p.split("=")));
const t = Number(parts.t);
if (!parts.v1 || !Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > 300) return false;
const expected = createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
const a = Buffer.from(expected);
const b = Buffer.from(parts.v1);
return a.length === b.length && timingSafeEqual(a, b);
}
// In a fetch-style handler (Next.js, Hono, Bun, Workers):
const raw = await req.text();
if (!verifyPhoneIQ(raw, req.headers.get("x-phoneiq-signature"), process.env.PHONEIQ_WEBHOOK_SECRET!)) {
return new Response("bad signature", { status: 400 });
}
const event = JSON.parse(raw);
In Express, keep the raw body with express.json({ verify: (req, _res, buf) => { req.rawBody = buf.toString("utf8"); } }) and pass req.rawBody.
Tell us what you're building and which AI tool you use. We'll get your account enabled.
Or email [email protected].