Public/Get-GCFaxDocument.ps1

<#
.SYNOPSIS
    Retrieves a single fax document by ID.

.DESCRIPTION
    Returns the details of a specific fax document from Genesys Cloud.
    Uses the GET /api/v2/fax/documents/{documentId} endpoint.

.PARAMETER DocumentId
    The unique identifier of the fax document to retrieve.

.EXAMPLE
    Get-GCFaxDocument -DocumentId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: GET /api/v2/fax/documents/{documentId}
#>

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

    $endpoint = "fax/documents/$DocumentId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}