> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tetherai.ca/llms.txt
> Use this file to discover all available pages before exploring further.

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

> 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`).



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/webhook/elevenlabs/tools/create-note
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/webhook/elevenlabs/tools/create-note:
    post:
      tags:
        - Webhooks
      summary: 'ElevenLabs tool: save a mid-call note to the contact'
      description: >-
        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`).
      operationId: post_webhook_elevenlabs_tools_create_note
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ElevenLabsCreateNoteRequest'
      responses:
        '200':
          description: Note creation result. Inspect `success`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ElevenLabsCreateNoteResponse'
        '401':
          description: Unauthorized — missing or invalid tool secret
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookErrorResponse'
components:
  schemas:
    ElevenLabsCreateNoteRequest:
      type: object
      description: >-
        ElevenLabs create-note tool args. `phone_number` identifies the contact
        within the org.
      properties:
        phone_number:
          type: string
        note:
          type: string
          description: 'Free-form note text. Trimmed and stored as `type: ai_summary`.'
        called_id:
          type: string
        called_number:
          type: string
      required:
        - phone_number
        - note
      additionalProperties: true
      example:
        phone_number: '+14165550100'
        note: >-
          Caller asked about availability for the corner unit at Maple Court;
          promised a callback by Friday.
        called_id: '+12362320246'
    ElevenLabsCreateNoteResponse:
      type: object
      properties:
        success:
          type: boolean
        note_id:
          type: string
        error:
          type: string
      required:
        - success
      additionalProperties: true
      example:
        success: true
        note_id: 64d2f9c5e8a1d4e001a0b1c2
    WebhookErrorResponse:
      type: object
      description: >-
        Error envelope used across provider webhook routes. Most failures only
        carry `error`; a few (ElevenLabs tool errors, ingress validation) add
        `success:false`, `message`, or a `code`. Many of these endpoints respond
        200 with `success:false` for recoverable cases (especially the
        ElevenLabs server tools) — only hard failures use 4xx/5xx.
      properties:
        error:
          type: string
        message:
          type: string
        success:
          type: boolean
          enum:
            - false
        code:
          type: string
        details:
          description: Optional diagnostic detail (stack snippet, validation issues, etc.).
      additionalProperties: true
      example:
        error: Webhook processing failed

````