> 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.tap

GET /

Receive call.tap events

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

## AsyncAPI Specification

```yaml
asyncapi: 2.6.0
info:
  title: call.tap
  version: subpackage_callTap.call.tap
  description: Receive call.tap events
channels:
  /:
    description: Receive call.tap events
    publish:
      operationId: subpackage_callTap.call.tap-publish
      summary: call.tap
      message:
        name: onCallTapCallTapEvent
        title: call.tap
        payload:
          $ref: '#/components/schemas/call.tap_callTapEvent'
servers:
  production:
    url: wss://relay.signalwire.com/
    protocol: wss
    x-default: true
components:
  schemas:
    ChannelsCallTapMessagesCallTapEventJsonrpc:
      type: string
      enum:
        - '2.0'
      description: JSON-RPC version. Always `2.0`.
      title: ChannelsCallTapMessagesCallTapEventJsonrpc
    ChannelsCallTapMessagesCallTapEventMethod:
      type: string
      enum:
        - signalwire.event
      description: Always `signalwire.event`.
      title: ChannelsCallTapMessagesCallTapEventMethod
    ChannelsCallTapMessagesCallTapEventParamsEventType:
      type: string
      enum:
        - call.tap
      description: The event type — identifies which event this is.
      title: ChannelsCallTapMessagesCallTapEventParamsEventType
    Fabric.FabricTapState:
      type: string
      enum:
        - tapping
        - finished
      title: Fabric.FabricTapState
    FabricFabricTapMediaType:
      type: string
      enum:
        - audio
      title: FabricFabricTapMediaType
    Fabric.FabricTapMedia:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/FabricFabricTapMediaType'
      required:
        - type
      description: Describes the media being tapped. Currently always `audio`.
      title: Fabric.FabricTapMedia
    FabricFabricCallTapDeviceType:
      type: string
      enum:
        - rtp
        - ws
      title: FabricFabricCallTapDeviceType
    Fabric.FabricCallTapDevice:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/FabricFabricCallTapDeviceType'
      required:
        - type
      description: 'Describes where the tapped audio is being sent: `rtp` or `ws`.'
      title: Fabric.FabricCallTapDevice
    Fabric.CallTapParams:
      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 tap this event belongs to.
        state:
          $ref: '#/components/schemas/Fabric.FabricTapState'
          description: >-
            Whether the tap is still running (`tapping`) or has stopped
            (`finished`).
        tap:
          $ref: '#/components/schemas/Fabric.FabricTapMedia'
          description: What media is being tapped.
        device:
          $ref: '#/components/schemas/Fabric.FabricCallTapDevice'
          description: Where the tapped audio is being sent.
      required:
        - call_id
        - node_id
        - room_session_id
        - control_id
        - state
        - tap
        - device
      description: >-
        Payload of the Call Fabric `call.tap` event: media-tap lifecycle and
        where the tapped audio is sent.
      title: Fabric.CallTapParams
    ChannelsCallTapMessagesCallTapEventParams:
      type: object
      properties:
        event_type:
          $ref: >-
            #/components/schemas/ChannelsCallTapMessagesCallTapEventParamsEventType
          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.CallTapParams'
          description: The event-specific payload.
      required:
        - event_type
        - event_channel
        - timestamp
        - params
      description: The event envelope.
      title: ChannelsCallTapMessagesCallTapEventParams
    call.tap_callTapEvent:
      type: object
      properties:
        jsonrpc:
          $ref: '#/components/schemas/ChannelsCallTapMessagesCallTapEventJsonrpc'
          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/ChannelsCallTapMessagesCallTapEventMethod'
          description: Always `signalwire.event`.
        params:
          $ref: '#/components/schemas/ChannelsCallTapMessagesCallTapEventParams'
          description: The event envelope.
      required:
        - jsonrpc
        - id
        - method
        - params
      description: >-
        Fires when a tap starts streaming Call Fabric call audio and again when
        it stops. Check `state` to tell which. SWML or a server-side application
        starts it on the leg; there is no client request that starts it.
      title: call.tap_callTapEvent

```