Actions60
- User Actions
- Channel Actions
- Accept Invite
- Add Members
- Add Moderators
- Archive
- Ban User
- Create
- Delete
- Delete File
- Delete Image
- Demote Moderators
- Disable Slow Mode
- Enable Slow Mode
- Get Config
- Hide
- Invite Members
- Mark Read
- Mark Unread
- Mute
- Mute Status
- Pin
- Query Channels
- Query Members
- Reject Invite
- Remove Members
- Send Action
- Send File
- Send Image
- Show
- Stop Watching
- Truncate
- Unarchive
- Unban User
- Unmute
- Unpin
- Update
- Watch
- Message Actions
- Moderation Actions
Overview
The "Reject Invite" operation for the Channel resource in this node allows users to reject an invitation to join a specific chat channel on the Stream Chat platform. This is useful in scenarios where a user has been invited to a group or team channel but chooses not to participate. By rejecting the invite, the user declines membership and the invitation is removed.
Practical examples include:
- A user receives an invite to a project discussion channel but decides not to join.
- Automatically rejecting invites based on certain criteria (e.g., user preferences or roles).
- Managing channel memberships programmatically by handling invitations.
Properties
| Name | Meaning |
|---|---|
| Channel Type | The type of the channel. Common types include: "messaging" (1-on-1 chats), "team" (group channels), and "livestream" (broadcast channels). |
| Channel ID | Unique identifier for the channel (e.g., "general", "random", "team-alpha"). Combined with the channel type to form the full channel identifier (CID). |
Output
The output JSON contains the response from the Stream Chat API after attempting to reject the channel invite. It typically includes confirmation of the rejection or details about the updated channel state related to the invitation.
No binary data is involved in this operation.
Example output structure (simplified):
{
"channel": {
"cid": "messaging:general",
"type": "messaging",
"id": "general",
"invites": [],
...
}
}
Dependencies
- Requires an active connection to the Stream Chat service via an API key credential configured in n8n.
- The API credentials must have permissions to manage channel invitations and memberships.
- No additional external dependencies are required beyond the Stream Chat API access.
Troubleshooting
Common issues:
- Invalid or missing Channel ID or Channel Type parameters will cause the operation to fail.
- Attempting to reject an invite for a channel where the user has no pending invitation may result in an error or no effect.
- Insufficient API permissions can lead to authorization errors.
Error messages:
"Unsupported operation: channel.rejectInvite": Indicates the operation is not recognized; ensure the correct resource and operation are selected.- API errors related to invalid channel identifiers or permissions will be returned as error messages in the node output.
Resolution tips:
- Verify that the Channel ID and Channel Type are correctly specified.
- Confirm that the user context under which the API call is made has a pending invite to reject.
- Check API credentials and permissions in the n8n credentials configuration.