curl -X GET "https://your-domain.com/api/channels/ch_abc123" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
{
"id": "ch_abc123",
"user_id": "user_123",
"type": "group",
"name": "Engineering Team",
"description": "Team discussions",
"is_private": true,
"data": {},
"meta": {},
"access_grants": [],
"user_ids": ["user_123", "user_456", "user_789"],
"users": [
{
"id": "user_123",
"name": "Alice",
"is_active": true
},
{
"id": "user_456",
"name": "Bob",
"is_active": false
},
{
"id": "user_789",
"name": "Charlie",
"is_active": true
}
],
"is_manager": true,
"write_access": true,
"user_count": 3,
"last_read_at": 1709567890123456789,
"unread_count": 5,
"created_at": 1709500000000000000,
"updated_at": 1709567890123456789,
"updated_by": "user_456"
}
Channels
Get Channel
Get detailed information about a specific channel
GET
/
api
/
channels
/
{id}
curl -X GET "https://your-domain.com/api/channels/ch_abc123" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
{
"id": "ch_abc123",
"user_id": "user_123",
"type": "group",
"name": "Engineering Team",
"description": "Team discussions",
"is_private": true,
"data": {},
"meta": {},
"access_grants": [],
"user_ids": ["user_123", "user_456", "user_789"],
"users": [
{
"id": "user_123",
"name": "Alice",
"is_active": true
},
{
"id": "user_456",
"name": "Bob",
"is_active": false
},
{
"id": "user_789",
"name": "Charlie",
"is_active": true
}
],
"is_manager": true,
"write_access": true,
"user_count": 3,
"last_read_at": 1709567890123456789,
"unread_count": 5,
"created_at": 1709500000000000000,
"updated_at": 1709567890123456789,
"updated_by": "user_456"
}
Retrieves detailed information about a channel, including members, access control, and unread message counts.
Authentication
Requires a valid user session. User must have read access to the channel.Path Parameters
The unique identifier of the channel
Response
Returns a detailed channel object with user information and metadata.Unique channel identifier
ID of the user who created the channel
Channel type:
standard, group, or dmChannel name
Channel description
Whether the channel is private
Additional channel data
Channel metadata
Access control grants for the channel
Array of member user IDs (for group/dm channels only)
Whether the current user is a manager of this channel
Whether the current user has write access to this channel
Total number of users with access to the channel
Timestamp when the current user last read messages (epoch time in nanoseconds)
Number of unread messages for the current user
Creation timestamp (epoch time in nanoseconds)
Last update timestamp (epoch time in nanoseconds)
ID of user who last updated the channel
curl -X GET "https://your-domain.com/api/channels/ch_abc123" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
{
"id": "ch_abc123",
"user_id": "user_123",
"type": "group",
"name": "Engineering Team",
"description": "Team discussions",
"is_private": true,
"data": {},
"meta": {},
"access_grants": [],
"user_ids": ["user_123", "user_456", "user_789"],
"users": [
{
"id": "user_123",
"name": "Alice",
"is_active": true
},
{
"id": "user_456",
"name": "Bob",
"is_active": false
},
{
"id": "user_789",
"name": "Charlie",
"is_active": true
}
],
"is_manager": true,
"write_access": true,
"user_count": 3,
"last_read_at": 1709567890123456789,
"unread_count": 5,
"created_at": 1709500000000000000,
"updated_at": 1709567890123456789,
"updated_by": "user_456"
}
Notes
- For
groupanddmchannels, the response includes theuser_idsandusersarrays with member information - For
standardchannels, these fields are null and theuser_countrepresents all users with read access - The
is_managerfield indicates if the current user can modify channel settings - The
write_accessfield indicates if the current user can post messages - Admins always have full access to all channels
⌘I