Public/Get-GCStation.ps1

<#
.SYNOPSIS
    Retrieves a single station by ID.

.DESCRIPTION
    Returns the details of a specific station from Genesys Cloud.
    Uses the GET /api/v2/stations/{stationId} endpoint.

.PARAMETER StationId
    The unique identifier of the station to retrieve.

.EXAMPLE
    Get-GCStation -StationId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: GET /api/v2/stations/{stationId}
#>

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

    $endpoint = "stations/$StationId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}