Public/Get-GCFlow.ps1

<#
.SYNOPSIS
    Retrieves a specific flow by ID from Genesys Cloud.

.DESCRIPTION
    Queries the Genesys Cloud API to retrieve a single architect flow by its unique identifier.
    API Endpoint: GET /api/v2/flows/{flowId}

.PARAMETER FlowId
    The unique identifier of the flow to retrieve.

.EXAMPLE
    Get-GCFlow -FlowId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
    Retrieves the flow with the specified ID.

.NOTES
    Genesys Cloud API: GET /api/v2/flows/{flowId}
#>

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

    $endpoint = "flows/$FlowId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}