Public/Get-GCNotificationChannelSubscriptions.ps1

<#
.SYNOPSIS
    Retrieves subscriptions for a notification channel.

.DESCRIPTION
    Returns the list of subscriptions for a specific notification channel in Genesys Cloud.
    Uses the GET /api/v2/notifications/channels/{channelId}/subscriptions endpoint.

.PARAMETER ChannelId
    The unique identifier of the notification channel.

.EXAMPLE
    Get-GCNotificationChannelSubscriptions -ChannelId 'channel-id'

.NOTES
    Genesys Cloud API: GET /api/v2/notifications/channels/{channelId}/subscriptions
#>

function Get-GCNotificationChannelSubscriptions {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$ChannelId
    )

    $endpoint = "notifications/channels/$ChannelId/subscriptions"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}