Public/Get-GCConversationsCall.ps1

<#
.SYNOPSIS
    Retrieves a single call conversation by ID.

.DESCRIPTION
    Gets the details of a specific call conversation from Genesys Cloud.
    Calls GET /api/v2/conversations/calls/{conversationId}.

.PARAMETER ConversationId
    The unique identifier of the call conversation to retrieve.

.EXAMPLE
    Get-GCConversationsCall -ConversationId 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

.NOTES
    Genesys Cloud API: GET /api/v2/conversations/calls/{conversationId}
#>

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

    $endpoint = "conversations/calls/$ConversationId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}