Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Channel → Unpin

AI-generated

Summary

Unpin a channel for a specified user in Stream Chat, removing the pinned status from that channel.

Inputs

  • Channel Type — The type of the channel to unpin, such as "messaging" (1-on-1 chats), "team" (group channels), or "livestream" (broadcast channels). Defaults to "messaging".
  • Channel ID (required) — The unique identifier of the channel to unpin (e.g., "general", "random", "team-alpha"). Combined with the channel type to form the CID.
  • User ID — The user ID for whom the channel should be unpinned. This is required for server-side unpin operations.

Output shape

a single record containing the response from the Stream Chat API about the unpin operation.

The output JSON contains the API response indicating the result of the unpin action. Errors are returned in the JSON as error messages if the operation fails.

Examples

Example 1: Unpin a 'messaging' type channel with ID 'general' for user 'john_doe'.

Set Channel Type to 'messaging', Channel ID to 'general', and User ID to 'john_doe'.

Discussion