Public/Get-GCOrganization.ps1

<#
.SYNOPSIS
    Retrieves the current organization details from Genesys Cloud.

.DESCRIPTION
    Queries the Genesys Cloud API to retrieve information about the current organization,
    including name, domain, features, and configuration.
    API Endpoint: GET /api/v2/organizations/me

.EXAMPLE
    Get-GCOrganization
    Retrieves the current organization details.

.NOTES
    Genesys Cloud API: GET /api/v2/organizations/me
#>

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

    $endpoint = "organizations/me"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}