Retrieves a single channel by its ID. Returns 404 if the channel is not visible to the caller — a private channel the caller is not a member of is indistinguishable from one that does not exist.
Required scope: channels:read
Rate limit category: Read
Retrieve a channel
package main
import (
"context"
"fmt"
"github.com/Lightfld/lightfield-go"
"github.com/Lightfld/lightfield-go/option"
)
func main() {
client := githubcomlightfldlightfieldgo.NewClient(
option.WithAPIKey("My API Key"),
)
channelRetrieveResponse, err := client.Channel.Get(context.TODO(), "id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", channelRetrieveResponse.ID)
}
{
"id": "chn_cm2def456ghi789",
"createdAt": "2026-05-01T09:00:00.000Z",
"fields": {
"$name": {
"value": "acme-deal-room",
"valueType": "TEXT"
},
"$provider": {
"value": "SLACK",
"valueType": "TEXT"
},
"$isPublic": {
"value": false,
"valueType": "CHECKBOX"
},
"$providerChannelId": {
"value": "C0123456789",
"valueType": "TEXT"
},
"$providerCreatedAt": {
"value": "2026-04-20T14:30:00.000Z",
"valueType": "DATETIME"
}
},
"httpLink": null,
"objectType": "channel",
"relationships": {
"account-slack-channel": {
"cardinality": "has_many",
"objectType": "account",
"values": [
"acc_cm0abc123def456"
]
},
"opportunity-slack-channel": {
"cardinality": "has_many",
"objectType": "opportunity",
"values": [
"opp_cm1xyz456uvw789"
]
}
},
"updatedAt": "2026-05-01T09:00:00.000Z",
"externalId": "externalId"
}Returns Examples
{
"id": "chn_cm2def456ghi789",
"createdAt": "2026-05-01T09:00:00.000Z",
"fields": {
"$name": {
"value": "acme-deal-room",
"valueType": "TEXT"
},
"$provider": {
"value": "SLACK",
"valueType": "TEXT"
},
"$isPublic": {
"value": false,
"valueType": "CHECKBOX"
},
"$providerChannelId": {
"value": "C0123456789",
"valueType": "TEXT"
},
"$providerCreatedAt": {
"value": "2026-04-20T14:30:00.000Z",
"valueType": "DATETIME"
}
},
"httpLink": null,
"objectType": "channel",
"relationships": {
"account-slack-channel": {
"cardinality": "has_many",
"objectType": "account",
"values": [
"acc_cm0abc123def456"
]
},
"opportunity-slack-channel": {
"cardinality": "has_many",
"objectType": "opportunity",
"values": [
"opp_cm1xyz456uvw789"
]
}
},
"updatedAt": "2026-05-01T09:00:00.000Z",
"externalId": "externalId"
}