Webhooks

ElevenLabs tool: send an SMS to the caller mid-call

POST
/api/webhook/elevenlabs/tools/send-sms

Server tool webhook called by the ElevenLabs voice agent mid-call to text the caller a link, confirmation, or follow-up info while the call is still active. Identifies the contact by phone_number within the org scoped from the tool secret and sends as the agent, in the contact's SMS thread on the chosen line (created if needed, assigned to the line's owner). The line is the first of: the line the call is on (conversation_id), the one usable SMS line the agent answers on (agent_id), the line of the contact's most recent SMS thread, the org default line. Dispatches through the standard sendOutboundMessage helper so it routes via the org's configured SMS provider (Sinch / TextGrid / Twilio) and appears in the conversation thread as an AI-authored message. The send is marked skipAutomation so it doesn't retrigger workflows in a loop. Recoverable problems return HTTP 200 with success:false. Authenticated via Bearer token (per-org elevenlabsToolSecret).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

ElevenLabs send-sms tool args. phone_number identifies the contact within the org.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/webhook/elevenlabs/tools/send-sms" \  -H "Content-Type: application/json" \  -d '{    "phone_number": "+14165550100",    "message": "Hi Alex - here\'s the application link we just talked about: https://app.tetherai.ca/a/MZ4K. Let me know if you have any trouble.",    "called_id": "+12362320246"  }'
{  "success": true,  "message": "SMS sent"}