Public/Get-GCOutboundSequence.ps1

<#
.SYNOPSIS
    Retrieves a specific outbound campaign sequence by ID from Genesys Cloud.

.DESCRIPTION
    Queries the Genesys Cloud API to retrieve a single outbound campaign sequence by its unique identifier.
    API Endpoint: GET /api/v2/outbound/sequences/{sequenceId}

.PARAMETER SequenceId
    The unique identifier of the sequence to retrieve.

.EXAMPLE
    Get-GCOutboundSequence -SequenceId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
    Retrieves the campaign sequence with the specified ID.

.NOTES
    Genesys Cloud API: GET /api/v2/outbound/sequences/{sequenceId}
#>

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

    $endpoint = "outbound/sequences/$SequenceId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}