Public/Get-GCOutboundCampaign.ps1

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

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

.PARAMETER CampaignId
    The unique identifier of the campaign to retrieve.

.EXAMPLE
    Get-GCOutboundCampaign -CampaignId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
    Retrieves the outbound campaign with the specified ID.

.NOTES
    Genesys Cloud API: GET /api/v2/outbound/campaigns/{campaignId}
#>

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

    $endpoint = "outbound/campaigns/$CampaignId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}