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

# member.demoted

GET /

Receive member.demoted events

Reference: https://signalwire.com/docs/apis/relay/client/fabric/member-demoted

## AsyncAPI Specification

```yaml
asyncapi: 2.6.0
info:
  title: member.demoted
  version: subpackage_memberDemoted.member.demoted
  description: Receive member.demoted events
channels:
  /:
    description: Receive member.demoted events
    publish:
      operationId: subpackage_memberDemoted.member.demoted-publish
      summary: member.demoted
      message:
        name: onMemberDemotedMemberDemotedEvent
        title: member.demoted
        payload:
          $ref: '#/components/schemas/member.demoted_memberDemotedEvent'
servers:
  production:
    url: wss://relay.signalwire.com/
    protocol: wss
    x-default: true
components:
  schemas:
    ChannelsMemberDemotedMessagesMemberDemotedEventJsonrpc:
      type: string
      enum:
        - '2.0'
      description: JSON-RPC version. Always `2.0`.
      title: ChannelsMemberDemotedMessagesMemberDemotedEventJsonrpc
    ChannelsMemberDemotedMessagesMemberDemotedEventMethod:
      type: string
      enum:
        - signalwire.event
      description: Always `signalwire.event`.
      title: ChannelsMemberDemotedMessagesMemberDemotedEventMethod
    ChannelsMemberDemotedMessagesMemberDemotedEventParamsEventType:
      type: string
      enum:
        - member.demoted
      description: The event type — identifies which event this is.
      title: ChannelsMemberDemotedMessagesMemberDemotedEventParamsEventType
    Fabric.MemberDemotedParams:
      type: object
      properties:
        room_id:
          type: string
          description: The room ID.
        room_session_id:
          type: string
          description: The room session ID.
        member_id:
          type: string
          description: The ID of the member that was demoted.
        authorization:
          type: object
          additionalProperties:
            description: Any type
          description: >-
            Your refreshed authorization for this connection, reflecting the
            capabilities lost by the demotion. Treat it as opaque. A
            `signalwire.authorization.state` event with the matching reconnect
            state follows.
      required:
        - room_id
        - room_session_id
        - member_id
        - authorization
      description: >-
        Payload of the `member.demoted` event: the member that was demoted from
        participant to audience.
      title: Fabric.MemberDemotedParams
    ChannelsMemberDemotedMessagesMemberDemotedEventParams:
      type: object
      properties:
        event_type:
          $ref: >-
            #/components/schemas/ChannelsMemberDemotedMessagesMemberDemotedEventParamsEventType
          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.MemberDemotedParams'
          description: The event-specific payload.
      required:
        - event_type
        - event_channel
        - timestamp
        - params
      description: The event envelope.
      title: ChannelsMemberDemotedMessagesMemberDemotedEventParams
    member.demoted_memberDemotedEvent:
      type: object
      properties:
        jsonrpc:
          $ref: >-
            #/components/schemas/ChannelsMemberDemotedMessagesMemberDemotedEventJsonrpc
          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/ChannelsMemberDemotedMessagesMemberDemotedEventMethod
          description: Always `signalwire.event`.
        params:
          $ref: >-
            #/components/schemas/ChannelsMemberDemotedMessagesMemberDemotedEventParams
          description: The event envelope.
      required:
        - jsonrpc
        - id
        - method
        - params
      description: >-
        Fires on the demoted member's own connection when it is demoted to an
        audience participant. Delivers the member ID and the connection's
        refreshed `authorization`; a `signalwire.authorization.state` event
        follows.
      title: member.demoted_memberDemotedEvent

```