Public/Get-GCMessagingSettings.ps1

<#
.SYNOPSIS
    Retrieves messaging settings.

.DESCRIPTION
    Returns the messaging settings for the organization in Genesys Cloud.
    Uses the GET /api/v2/messaging/settings endpoint.

.EXAMPLE
    Get-GCMessagingSettings

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

function Get-GCMessagingSettings {
    [CmdletBinding()]
    param()

    $endpoint = "messaging/settings"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}