---
source_url: https://www.pubnub.com/docs/chat/unity-chat-sdk/build/features/channels/details
title: Get channel details
updated_at: 2026-05-22T11:04:36.983Z
---

> Documentation Index
> For a curated overview of PubNub documentation, see: https://www.pubnub.com/docs/llms.txt
> For the full list of all documentation pages, see: https://www.pubnub.com/docs/llms-full.txt


# Get channel details

Fetch a specific [channel's](https://www.pubnub.com/docs/chat/unity-chat-sdk/learn/chat-entities/channel) metadata with `GetChannel()`.

:::note Requires App Context
Enable [App Context](https://youtu.be/9UEoSlngpYI) for your keyset in the [Admin Portal](https://admin.pubnub.com/).
:::

### Method signature

This method takes the following parameters:

### Method signature

This method takes the following parameters:

```csharp
chat.GetChannel(
    string channelId
)
```

#### Input

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| channelId | string | Yes |  | Unique channel identifier (up to 92 UTF-8 byte sequences). |

#### Output

The method returns an awaitable `Task<ChatOperationResult<Channel>>` with the `Channel` object if it exists, otherwise the `Error` property on the result will be true.

#### Sample code

Fetch the `support` channel metadata.

```csharp
using System.Threading.Tasks;
using PubnubApi;
using PubnubChatApi;
using UnityEngine;

// Configuration
PubnubChatConfig chatConfig = new PubnubChatConfig();
        
PNConfiguration pnConfiguration = new PNConfiguration(new UserId("myUniqueUserId"))
{
    SubscribeKey = "demo",
    PublishKey = "demo",
    Secure = true
};

// Initialize Unity Chat
var chatResult = await UnityChat.CreateInstance(chatConfig, pnConfiguration);
if (!chatResult.Error)
{
    chat = chatResult.Result;
}
var result = await chat.GetChannel("support");
if (!result.Error)
{
    var channel = result.Result;
    Debug.Log($"Found channel with name {channel.Name}");
}
```