Landline.sh
By Avatar 8. Phone numbers, voice calls and SMS for AI agents. Remote MCP server (JSON-RPC at https://landline.sh/api/mcp) plus REST API, with per-workspace scoped keys, signed webhooks, idempotent sends, spend limits and human approval for outbound.
Hosted MCP Server
npx add-mcp 'https://landline.sh/api/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
Landline.sh is phone numbers, calls, and SMS for AI agents. The first authenticated read is GET /api/v1/onboarding. It returns the next unfinished step for this tenant. It does not send.
Authenticate with Authorization: Bearer aph_…. Keys are shown once and stored as a hash. Revocation is immediate. Every query is scoped to the key’s tenant; another tenant’s id returns 404.
The OpenAPI document is at /openapi.json. Dangerous operations carry the vendor flag x-landline-dangerous. They do not place live calls or texts unless an isolated Twilio subaccount is connected and the workspace gates are open.
MCP is a JSON-RPC POST at /api/mcp. Initialize, then tools/list and tools/call. send_sms, place_call, hangup_call, and request_number are marked destructive. There is no tool for OTP collection.
Send one SMS with POST /api/v1/messages and an Idempotency-Key. The same key and body replay the stored result. A different body returns 409. Lists, approvals, consent, allowlist, budget, and compliance are all evaluated. If the only remaining block is the live-send stop, the response says so and no money is reserved.
Approvals are created by a person in the dashboard. The API refuses to approve its own outbound.
Twilio webhooks at /api/provider/twilio/sms, /voice, and /status verify X-Twilio-Signature against TWILIO_PUBLIC_BASE_URL plus the path. The incoming Host header is not used. If the token or canonical URL is missing, the webhook is rejected. Do not point Cooper’s existing numbers at these routes.
AI voice agents
Create an agent with POST /api/v1/agents: name, greeting, instructions, voice (default, google-wavenet-d, google-wavenet-f), optional transfer_to, max_call_seconds (up to 600), and silence_seconds. Attach it with PUT /api/v1/numbers/:id/agent and {"agent_id": "…"}. Inbound calls to that number are then answered by the agent, powered by Gemini 2.5 Flash Lite by default.
Saved preferences on each agent: voice (default, rachel, matilda, adam, or the English-only Google voices), language plus allowed_languages (English, Spanish, French, German, Italian, Portuguese, Hebrew), auto_detect_language, tools (end_call, always on, plus change_voice, set_language, callback, background), ambience (none or busy_room), remember_caller_choices, and callback_max_per_day. Read and change them with GET and PATCH /api/v1/agents/:id.
On a call, the agent hangs up when the caller asks, in any supported language. It switches language when the caller speaks or asks for one, and changes voice when asked. With callback on, it can call the caller back, but only when they ask: one callback per call, only to the number they called from, within 4 minutes of hanging up, and only if outbound voice, spend limits, and AI caps allow it. The callback is billed as an outbound call plus AI minutes. Background sound plays between replies, not under the agent's voice.
The greeting always tells callers they are talking to an AI. The agent keeps replies short, ends the call when asked, and can transfer only to the number you set. It asks a silent caller whether they're still there and ends the call after a second silence. Calls end at your limit or 10 minutes, whichever comes first.
Read a transcript with GET /api/v1/calls/:id/transcript. When an AI call ends, a signed call.agent.ended event with the transcript, duration, and end reason goes to your event webhooks. MCP tools: list_agents, create_agent, update_agent, attach_agent, and get_transcript. API keys need the agents:read or agents:write scope.
AI answering costs $0.10 per minute on top of the normal voice rate, billed per second. It needs at least one minute of credit; otherwise callers hear a short unavailable message. Not an emergency service.
A dry number search is GET /api/v1/numbers/available. It returns an empty list and does not buy a number.
Tenant event webhooks are signed as v1 HMAC-SHA256 of the timestamp, a dot, and the raw body, in the X-Landline-Signature header. URLs must be HTTPS and must not resolve to private, loopback, or metadata addresses. Redirects are refused. Delivery from this process stays off unless AGENT_PHONE_DELIVER_WEBHOOKS is true.
Cooper is an optional downstream adapter. The reported commit ed498a4 was not readable here, so the adapter does not call the network and does not change numbers or webhooks. A process-wide founder key is ignored. Only a per-customer bearer, stored encrypted, would be eligible later.
The public SMS opt-in page is at https://landline.sh/sms-consent.