Webhooks

ElevenLabs tool: save a mid-call note to the contact

POST
/api/webhook/elevenlabs/tools/create-note

Server tool webhook called by the ElevenLabs voice agent mid-call to persist a free-form note on the caller's contact. Identifies the contact by phone_number within the org scoped from the tool secret. The note is stored as a ContactNote with type: 'ai_summary' so the contact timeline can distinguish AI-authored notes from human ones, and emits the same note_created socket event as the manual flow so live UIs update in real time. Per ElevenLabs convention, 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 create-note 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/create-note" \  -H "Content-Type: application/json" \  -d '{    "phone_number": "+14165550100",    "note": "Caller asked about availability for the corner unit at Maple Court; promised a callback by Friday.",    "called_id": "+12362320246"  }'
{  "success": true,  "note_id": "64d2f9c5e8a1d4e001a0b1c2"}