Twilio Voice API

The Voice API from Twilio — 10 operation(s) for voice.

Operations 12

GET /v1/Voice/Settings #
POST /v1/Voice/Settings #
POST /v1/Voice/{CallSid}/Annotation #
GET /v1/Voice/{CallSid}/Annotation #
GET /v1/Voice/{Sid} #
GET /v1/Voice/Summaries #
GET /v1/Voice/{CallSid}/Events #
GET /v1/Voice/{CallSid}/Metrics #
GET /v1/Voice/{CallSid}/Summary #
GET /v2/Voice/Countries #
GET /v2/Voice/Countries/{IsoCountry} #
GET /v2/Voice/Numbers/{DestinationNumber} #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/twilio-voice-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

twilio-voice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Twilio Voice API
  version: 1.52.0
  contact:
    name: Twilio Support
    url: https://support.twilio.com
    email: support@twilio.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: https://www.twilio.com/legal/tos
  description: 'Operations tagged Voice across 2 of this provider''s published API definitions: insights-openapi-original.yml, pricing-openapi-original.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://insights.twilio.com
- url: https://pricing.twilio.com
tags:
- name: Voice
paths:
  /v1/Voice/Settings:
    servers:
    - url: https://insights.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - advanced_features
      - voice_trace
      pathType: instance
    get:
      description: Get the Voice Insights Settings.
      tags:
      - Voice
      parameters:
      - name: SubaccountSid
        in: query
        description: The unique SID identifier of the Subaccount.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^AC[0-9a-fA-F]{32}$
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/insights.v1.account_settings'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchAccountSettings
      x-maturity:
      - GA
    post:
      description: Update a specific Voice Insights Setting.
      tags:
      - Voice
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/insights.v1.account_settings'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateAccountSettings
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateAccountSettingsRequest'
  /v1/Voice/{CallSid}/Annotation:
    servers:
    - url: https://insights.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - call_sid
      - account_sid
      pathType: instance
      parent: /Voice/{Sid}
    post:
      description: Update an Annotation for a specific Call.
      tags:
      - Voice
      parameters:
      - name: CallSid
        in: path
        description: The unique string that Twilio created to identify this Call resource. It always starts with a CA.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^CA[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/insights.v1.call.annotation'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateAnnotation
      x-maturity:
      - Beta
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateAnnotationRequest'
    get:
      description: Get the Annotation for a specific Call.
      tags:
      - Voice
      parameters:
      - name: CallSid
        in: path
        description: The unique SID identifier of the Call.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^CA[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/insights.v1.call.annotation'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchAnnotation
      x-maturity:
      - Beta
  /v1/Voice/{Sid}:
    servers:
    - url: https://insights.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties: []
      pathType: instance
      dependentProperties:
        events:
          mapping:
            call_sid: sid
          resource_url: /v1/Voice/{call_sid}/Events
        metrics:
          mapping:
            call_sid: sid
          resource_url: /v1/Voice/{call_sid}/Metrics
        summary:
          mapping:
            call_sid: sid
          resource_url: /v1None
        annotation:
          mapping:
            call_sid: sid
          resource_url: /v1None
      mountName: calls
    get:
      description: ''
      tags:
      - Voice
      parameters:
      - name: Sid
        in: path
        description: ''
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^CA[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/insights.v1.call'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchCall
      x-maturity:
      - GA
  /v1/Voice/Summaries:
    servers:
    - url: https://insights.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - account_sid
      - call_sid
      - create_time
      - start_time
      - end_time
      - duration
      - connect_duration
      - call_type
      - call_state
      pathType: list
      mountName: call_summaries
      className: call_summaries
    get:
      description: Get a list of Call Summaries.
      tags:
      - Voice
      parameters:
      - name: From
        in: query
        description: A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        schema:
          type: string
        x-twilio:
          pii:
            handling: standard
            deleteSla: 30
      - name: To
        in: query
        description: A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
        schema:
          type: string
        x-twilio:
          pii:
            handling: standard
            deleteSla: 30
      - name: FromCarrier
        in: query
        description: An origination carrier.
        schema:
          type: string
      - name: ToCarrier
        in: query
        description: A destination carrier.
        schema:
          type: string
      - name: FromCountryCode
        in: query
        description: A source country code based on phone number in From.
        schema:
          type: string
      - name: ToCountryCode
        in: query
        description: A destination country code. Based on phone number in To.
        schema:
          type: string
      - name: Branded
        in: query
        description: A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls.
        schema:
          type: boolean
      - name: VerifiedCaller
        in: query
        description: A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.
        schema:
          type: boolean
      - name: HasTag
        in: query
        description: A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags).
        schema:
          type: boolean
      - name: StartTime
        in: query
        description: A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h.
        schema:
          type: string
      - name: EndTime
        in: query
        description: An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m.
        schema:
          type: string
      - name: CallType
        in: query
        description: A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`.
        schema:
          type: string
      - name: CallState
        in: query
        description: A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`.
        schema:
          type: string
      - name: Direction
        in: query
        description: A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`.
        schema:
          type: string
      - name: ProcessingState
        in: query
        description: A Processing State of the Call Summaries. One of `completed`, `partial` or `all`.
        schema:
          type: string
          $ref: '#/components/schemas/call_summaries_enum_processing_state_request'
      - name: SortBy
        in: query
        description: A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`.
        schema:
          type: string
          $ref: '#/components/schemas/call_summaries_enum_sort_by'
      - name: Subaccount
        in: query
        description: A unique SID identifier of a Subaccount.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^AC[0-9a-fA-F]{32}$
      - name: AbnormalSession
        in: query
        description: A boolean flag indicating an abnormal session where the last SIP response was not 200 OK.
        schema:
          type: boolean
      - name: AnsweredBy
        in: query
        description: An Answered By value for the calls based on `Answering Machine Detection (AMD)`. One of `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `human` or `fax`.
        schema:
          type: string
          $ref: '#/components/schemas/call_summaries_enum_answered_by'
      - name: AnsweredByAnnotation
        in: query
        description: Either machine or human.
        schema:
          type: string
      - name: ConnectivityIssueAnnotation
        in: query
        description: A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`.
        schema:
          type: string
      - name: QualityIssueAnnotation
        in: query
        description: A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`.
        schema:
          type: string
      - name: SpamAnnotation
        in: query
        description: A boolean flag indicating spam calls.
        schema:
          type: boolean
      - name: CallScoreAnnotation
        in: query
        description: 'A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].'
        schema:
          type: string
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCallSummariesResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListCallSummaries
      x-maturity:
      - GA
  /v1/Voice/{CallSid}/Events:
    servers:
    - url: https://insights.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - timestamp
      - call_sid
      - account_sid
      - edge
      - name
      pathType: list
      parent: /Voice/{Sid}
    get:
      description: Get a list of Call Insight Events for a Call.
      tags:
      - Voice
      parameters:
      - name: CallSid
        in: path
        description: The unique SID identifier of the Call.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^CA[0-9a-fA-F]{32}$
        required: true
      - name: Edge
        in: query
        description: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
        schema:
          type: string
          $ref: '#/components/schemas/event_enum_twilio_edge'
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListEventResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListEvent
      x-maturity:
      - Preview
  /v1/Voice/{CallSid}/Metrics:
    servers:
    - url: https://insights.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - timestamp
      - call_sid
      - account_sid
      - edge
      - direction
      pathType: list
      parent: /Voice/{Sid}
    get:
      description: Get a list of Call Metrics for a Call.
      tags:
      - Voice
      parameters:
      - name: CallSid
        in: path
        description: The unique SID identifier of the Call.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^CA[0-9a-fA-F]{32}$
        required: true
      - name: Edge
        in: query
        description: The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
        schema:
          type: string
          $ref: '#/components/schemas/metric_enum_twilio_edge'
      - name: Direction
        in: query
        description: The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`.
        schema:
          type: string
          $ref: '#/components/schemas/metric_enum_stream_direction'
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMetricResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListMetric
      x-maturity:
      - Preview
  /v1/Voice/{CallSid}/Summary:
    servers:
    - url: https://insights.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - call_type
      - call_state
      - processing_state
      - duration
      pathType: instance
      parent: /Voice/{Sid}
      className: call_summary
    get:
      description: Get a specific Call Summary.
      tags:
      - Voice
      parameters:
      - name: CallSid
        in: path
        description: The unique SID identifier of the Call.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^CA[0-9a-fA-F]{32}$
        required: true
      - name: ProcessingState
        in: query
        description: The Processing State of this Call Summary. One of `complete`, `partial` or `all`.
        schema:
          type: string
          $ref: '#/components/schemas/summary_enum_processing_state'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/insights.v1.call.summary'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchSummary
      x-maturity:
      - GA
  /v2/Voice/Countries:
    servers:
    - url: https://pricing.twilio.com
    description: Voice pricing by country
    x-twilio:
      defaultOutputProperties:
      - country
      - price_unit
      pathType: list
      parent: /Voice
    get:
      description: ''
      tags:
      - Voice
      parameters:
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListVoiceCountryResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListVoiceCountry
      x-maturity:
      - GA
  /v2/Voice/Countries/{IsoCountry}:
    servers:
    - url: https://pricing.twilio.com
    description: Voice pricing by country
    x-twilio:
      defaultOutputProperties:
      - country
      - price_unit
      pathType: instance
      parent: /Voice
    get:
      description: Fetch a specific Country.
      tags:
      - Voice
      parameters:
      - name: IsoCountry
        in: path
        description: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice pricing information to fetch.
        schema:
          type: string
          format: iso-country-code
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pricing.v2.voice.voice_country-instance'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchVoiceCountry
      x-maturity:
      - GA
  /v2/Voice/Numbers/{DestinationNumber}:
    servers:
    - url: https://pricing.twilio.com
    description: Voice pricing for a specific phone number
    x-twilio:
      defaultOutputProperties:
      - country
      - inbound_call_price
      - price_unit
      pathType: instance
      parent: /Voice
    get:
      description: Fetch pricing information for a specific destination and, optionally, origination phone number.
      tags:
      - Voice
      parameters:
      - name: DestinationNumber
        in: path
        description: The destination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number.
        schema:
          type: string
          format: phone-number
        required: true
      - name: OriginationNumber
        in: query
        description: The origination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number.
        schema:
          type: string
          format: phone-number
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pricing.v2.voice.voice_number'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchVoiceNumber
      x-maturity:
      - GA
components:
  schemas:
    call_summaries_enum_call_state:
      type: string
      enum:
      - ringing
      - completed
      - busy
      - fail
      - noanswer
      - canceled
      - answered
      - undialed
    UpdateAnnotationRequest:
      type: object
      properties:
        AnsweredBy:
          type: string
          $ref: '#/components/schemas/annotation_enum_answered_by'
          description: 'Specify which entity answered the call as determined by Answering Machine Detection. Use this to provide feedback on Answering Machine Detection accuracy. Possible enumerated values, one of: `human`, `machine`. `human` indicates the call was answered by a person. `machine` indicates the call was answered by an answering machine.'
        ConnectivityIssue:
          type: string
          $ref: '#/components/schemas/annotation_enum_connectivity_issue'
          description: Specify if the call had any connectivity issues. Possible enumerated values, one of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`.
        QualityIssues:
          type: string
          description: Specify if the call had any subjective quality issues. Possible values, one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. Use comma separated values to indicate multiple quality issues for the same call.
        Spam:
          type: boolean
          description: A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use `true` if the call was a spam call.
        CallScore:
          type:
          - integer
          - 'null'
          description: 'Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].'
        Comment:
          type: string
          description: Specify any comments pertaining to the call. `comment` has a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in the `comment`.
        Incident:
          type: string
          description: Associate this call with an incident or support ticket. The `incident` parameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.
    UpdateAccountSettingsRequest:
      type: object
      properties:
        AdvancedFeatures:
          type: boolean
          description: A boolean flag to enable Advanced Features for Voice Insights.
        VoiceTrace:
          type: boolean
          description: A boolean flag to enable Voice Trace.
        SubaccountSid:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^AC[0-9a-fA-F]{32}$
          description: The unique SID identifier of the Subaccount.
    summary_enum_answered_by:
      type: string
      enum:
      - unknown
      - machine_start
      - machine_end_beep
      - machine_end_silence
      - machine_end_other
      - human
      - fax
    annotation_enum_answered_by:
      type: string
      enum:
      - unknown_answered_by
      - human
      - machine
    call_summaries_enum_sort_by:
      type: string
      enum:
      - start_time
      - end_time
    insights.v1.account_settings:
      type: object
      properties:
        account_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^AC[0-9a-fA-F]{32}$
          description: The unique SID identifier of the Account.
        advanced_features:
          type:
          - boolean
          - 'null'
          description: A boolean flag indicating whether Advanced Features for Voice Insights are enabled.
        voice_trace:
          type:
          - boolean
          - 'null'
          description: A boolean flag indicating whether Voice Trace is enabled.
        url:
          type:
          - string
          - 'null'
          format: uri
          description: The URL of this resource.
    summary_enum_processing_state:
      type: string
      enum:
      - complete
      - partial
    summary_enum_call_type:
      type: string
      enum:
      - carrier
      - sip
      - trunking
      - client
    call_summaries_enum_answered_by:
      type: string
      enum:
      - unknown
      - machine_start
      - machine_end_beep
      - machine_end_silence
      - machine_end_other
      - human
      - fax
    call_summaries_enum_processing_state:
      type: string
      enum:
      - complete
      - partial
    insights.v1.call.metric:
      type: object
      properties:
        timestamp:
          type:
          - string
          - 'null'
          description: Timestamp of metric sample. Samples are taken every 10 seconds and contain the metrics for the previous 10 seconds.
        call_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^CA[0-9a-fA-F]{32}$
          description: The unique SID identifier of the Call.
        account_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^AC[0-9a-fA-F]{32}$
          description: The unique SID identifier of the Account.
        edge:
          type:
          - string
          - 'null'
          $ref: '#/components/schemas/metric_enum_twilio_edge'
          description: The Twilio media edge this Metric was captured on. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
        direction:
          type:
          - string
          - 'null'
          $ref: '#/components/schemas/metric_enum_stream_direction'
          description: The Direction of the media stream from the perspective of the Twilio media edge. One of `unknown`, `inbound`, `outbound` or `both`.
        carrier_edge:
          description: Contains metrics and properties for the Twilio media gateway of a PSTN call.
        sip_edge:
          description: Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
        sdk_edge:
          description: Contains metrics and properties for the SDK sensor library for Client calls.
        client_edge:
          description: Contains metrics and properties for the Twilio media gateway of a Client call.
    event_enum_level:
      type: string
      enum:
      - UNKNOWN
      - DEBUG
      - INFO
      - WARNING
      - ERROR
    metric_enum_twilio_edge:
      type: string
      enum:
      - unknown_edge
      - carrier_edge
      - sip_edge
      - sdk_edge
      - client_edge
    summary_enum_call_state:
      type: string
      enum:
      - ringing
      - completed
      - busy
      - fail
      - noanswer
      - canceled
      - answered
      - undialed
    ListEventResponse:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: '#/components/schemas/insights.v1.call.event'
        meta:
          type: object
          properties:
            first_page_url:
              type: string
              format: uri
            next_page_url:
              type:
              - string
              - 'null'
              format: uri
            page:
              type: integer
            page_size:
              type: integer
            previous_page_url:
              type:
              - string
              - 'null'
              format: uri
            url:
              type: string
              format: uri
            key:
              type: string
    ListCallSummariesResponse:
      type: object
      properties:
        call_summaries:
          type: array
          items:
            $ref: '#/components/schemas/insights.v1.call_summaries'
        meta:
          type: object
          properties:
            first_page_url:
              type: string
              format: uri
            next_page_url:
              type:
              - string
              - 'null'
              format: uri
            page:
              type: integer
            page_size:
              type: integer
            previous_page_url:
              type:
              - string
              - 'null'
              format: uri
            url:
              type: string
              format: uri
            key:
              type: string
    insights.v1.call.event:
      type: object
      properties:
        timestamp:
          type:
          - string
          - 'null'
          description: Event time.
        call_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^CA[0-9a-fA-F]{32}$
          description: The unique SID identifier of the Call.
        account_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^AC[0-9a-fA-F]{32}$
          description: The unique SID identifier of the Account.
        edge:
          type:
          - string
          - 'null'
          $ref: '#/components/schemas/event_enum_twilio_edge'
          description: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
        group:
          type:
          - string
          - 'null'
          description: Event group.
        level:
          type:
          - string
          - 'null'
          $ref: '#/components/schemas/event_enum_level'
          description: The Level of this Event. One of `UNKNOWN`, `DEBUG`, `INFO`, `WARNING` or `ERROR`.
        name:
          type:
          - string
          - 'null'
          description: Event name.
        carrier_edge:
          description: Represents the connection between Twilio and our immediate carrier partners. The events here describe the call lifecycle as reported by Twilio's carrier media gateways.
        sip_edge:
          description: Represents the Twilio media gateway for SIP interface and SIP trunking calls. The events here describe the call lifecycle as reported by Twilio's public media gateways.
        sdk_edge:
          description: Represents the Voice SDK running locally in the browser or in the Android/iOS application. The events here are emitted by the Voice SDK in response to certain call progress events, network changes, or call quality conditions.
        client_edge:
          description: Represents the Twilio media gateway for Client calls. The events here describe the call lifecycle as reported by Twilio's Voice SDK media gateways.
    metric_enum_stream_direction:
      type: string
      enum:
      - unknown
      - inbound
      - outbound
      - both
    annotation_enum_connectivity_issue:
      type: string
      enum:
      - unknown_connectivity_issue
      - no_connectivity_issue
      - invalid_number
      - caller_id
      - dropped_call
      - number_reachability
    insights.v1.call_summaries:
      type: object
      properties:
        account_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^AC[0-9a-fA-F]{32}$
          description: The unique SID identifier of the Account.
        call_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^CA[0-9a-fA-F]{32}$
          description: The unique SID identifier of the Call.
        answered_by:
          type:
          - string
          - 'null'
          $ref: '#/components/schemas/call_summaries_enum_answered_by'
          description: The Answered By value for the summarized call based on `Answering Machine Detection (AMD)`. One of 

# --- truncated at 32 KB (50 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/twilio/refs/heads/main/openapi/twilio-voice-api-openapi.yml