Public/Get-GCMessagingSupportedContent.ps1

<#
.SYNOPSIS
    Retrieves a list of messaging supported content profiles.

.DESCRIPTION
    Returns a paginated list of supported content profiles for messaging in Genesys Cloud.
    Uses the GET /api/v2/messaging/supportedcontent endpoint.

.PARAMETER PageSize
    The number of results per page. Defaults to 25.

.PARAMETER PageNumber
    The page number to retrieve. Defaults to 1.

.EXAMPLE
    Get-GCMessagingSupportedContent

.NOTES
    Genesys Cloud API: GET /api/v2/messaging/supportedcontent
#>

function Get-GCMessagingSupportedContent {
    [CmdletBinding()]
    param(
        [Parameter()]
        [int]$PageSize = 25,

        [Parameter()]
        [int]$PageNumber = 1
    )

    $endpoint = "messaging/supportedcontent"
    $queryParams = @{
        pageSize   = $PageSize
        pageNumber = $PageNumber
    }

    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET -QueryParameters $queryParams
}