> This page is for APIs.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# call.detect

GET /

Receive call.detect events

Reference: https://signalwire.com/docs/apis/relay/client/fabric/call-detect

## AsyncAPI Specification

```yaml
asyncapi: 2.6.0
info:
  title: call.detect
  version: subpackage_callDetect.call.detect
  description: Receive call.detect events
channels:
  /:
    description: Receive call.detect events
    publish:
      operationId: subpackage_callDetect.call.detect-publish
      summary: call.detect
      message:
        name: onCallDetectCallDetectEvent
        title: call.detect
        payload:
          $ref: '#/components/schemas/call.detect_callDetectEvent'
servers:
  production:
    url: wss://relay.signalwire.com/
    protocol: wss
    x-default: true
components:
  schemas:
    ChannelsCallDetectMessagesCallDetectEventJsonrpc:
      type: string
      enum:
        - '2.0'
      description: JSON-RPC version. Always `2.0`.
      title: ChannelsCallDetectMessagesCallDetectEventJsonrpc
    ChannelsCallDetectMessagesCallDetectEventMethod:
      type: string
      enum:
        - signalwire.event
      description: Always `signalwire.event`.
      title: ChannelsCallDetectMessagesCallDetectEventMethod
    ChannelsCallDetectMessagesCallDetectEventParamsEventType:
      type: string
      enum:
        - call.detect
      description: The event type — identifies which event this is.
      title: ChannelsCallDetectMessagesCallDetectEventParamsEventType
    FabricFabricCallDetectResultType:
      type: string
      enum:
        - digit
        - fax
        - machine
      title: FabricFabricCallDetectResultType
    Fabric.FabricCallDetectResult:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/FabricFabricCallDetectResultType'
      required:
        - type
      description: >-
        What the detector found. Read `type` to know which detector reported it:
        `fax`,

        `machine`, or `digit`. Whatever the type, the `event` field also carries
        the

        generic `finished` value when the detector completes.
      title: Fabric.FabricCallDetectResult
    Fabric.CallDetectParams:
      type: object
      properties:
        call_id:
          type: string
          description: >-
            Unique identifier of the call this event is about. Always present on
            Fabric events.
        node_id:
          type: string
          description: The node the call leg lives on.
        room_session_id:
          type: string
          description: >-
            The room session this call leg belongs to. In a 1:1 call this equals
            the `call_id`.
        segment_id:
          type: string
          description: >-
            Identifier of the call segment this event belongs to, for
            correlating events within the same segment.
        tag:
          type: string
          description: >-
            The `tag` the leg was dialed with, when a server-side application
            set one on the dial. Absent otherwise.
        control_id:
          type: string
          description: >-
            The `control_id` of the detector this event refers to, from the
            request that started it.
        detect:
          $ref: '#/components/schemas/Fabric.FabricCallDetectResult'
          description: >-
            What the detector found, including which kind of detector reported
            it.
      required:
        - call_id
        - node_id
        - room_session_id
        - control_id
        - detect
      description: >-
        Payload of the Call Fabric `call.detect` event: a detector result — fax
        tone, human vs. machine, or a DTMF digit.
      title: Fabric.CallDetectParams
    ChannelsCallDetectMessagesCallDetectEventParams:
      type: object
      properties:
        event_type:
          $ref: >-
            #/components/schemas/ChannelsCallDetectMessagesCallDetectEventParamsEventType
          description: The event type — identifies which event this is.
        event_channel:
          type: string
          description: >-
            The channel the event was delivered on — for Calling events, the
            `protocol`

            string your connection received from `signalwire.connect`.
        timestamp:
          type: number
          format: double
          description: >-
            When the event was emitted, as a Unix timestamp in seconds. Always
            present.
        project_id:
          type: string
          description: >-
            Your project ID. Present on Calling events and most Call Fabric
            events; absent on `call.joined`, `call.left`, `member.joined`, and
            `member.left`.
        space_id:
          type: string
          description: >-
            Your space ID. Present on Calling events and most Call Fabric
            events; absent on `call.joined`, `call.left`, `member.joined`, and
            `member.left`.
        params:
          $ref: '#/components/schemas/Fabric.CallDetectParams'
          description: The event-specific payload.
      required:
        - event_type
        - event_channel
        - timestamp
        - params
      description: The event envelope.
      title: ChannelsCallDetectMessagesCallDetectEventParams
    call.detect_callDetectEvent:
      type: object
      properties:
        jsonrpc:
          $ref: >-
            #/components/schemas/ChannelsCallDetectMessagesCallDetectEventJsonrpc
          description: JSON-RPC version. Always `2.0`.
        id:
          type: string
          description: >-
            Event id — a unique UUID generated for each event. Events are
            notifications: you do not reply to them.
        method:
          $ref: '#/components/schemas/ChannelsCallDetectMessagesCallDetectEventMethod'
          description: Always `signalwire.event`.
        params:
          $ref: '#/components/schemas/ChannelsCallDetectMessagesCallDetectEventParams'
          description: The event envelope.
      required:
        - jsonrpc
        - id
        - method
        - params
      description: >-
        Fires when a detector on a Call Fabric call reports a result — a fax
        tone, an answering machine versus a human, or a DTMF digit. SWML or a
        server-side application starts it on the leg; there is no client request
        that starts it.
      title: call.detect_callDetectEvent

```