Invite as members
Changed onInvite as members
Invites one or more users as members to a group channel. Users can join a group channel immediately after receiving an invitation, without having to accept it. To give users an option to accept or decline an invitation, see update default channel invitation preference or update channel invitation preference. See this page to learn more about channel types.
Note: By default, blocked users are included when sending invitations. If you wish to exclude blocked users, contact our sales team.
Request
- Base URLhttps://api-APP_ID.sendbird.com
- Authnone declared
Path parameters
(Required)
Headers
Request body
Response
Successful response
Example response
{
"metadata": "{}",
"count_preference": "false",
"data": "data",
"custom_type": "custom_type",
"invited_at": 1,
"disappearing_message": {
"is_triggered_by_message_read": true,
"message_survival_seconds": 6
},
"is_hidden": true,
"created_at": 0,
"is_super": true,
"last_message": null,
"user_last_read": 1,
"is_discoverable": true,
"is_muted": true,
"joined_member_count": 5,
"freeze": true,
"is_distinct": true,
"members": [
{
"metadata": "{}",
"is_active": true,
"is_blocking_me": true,
"require_auth_for_profile_image": true,
"role": "",
"profile_url": "profile_url",
"muted_end_at": 2,
"delivered_ts": 9,
"do_not_disturb": true,
"is_muted": true,
"read_ts": 4,
"is_blocked_by_me": true,
"friend_name": "friend_name",
"friend_discovery_key": [
"friend_discovery_key",
"friend_discovery_key"
],
"muted_description": "muted_description",
"push_enabled": true,
"user_id": "user_id",
"nickname": "nickname",
"is_online": true,
"push_trigger_option": null,
"state": "",
"last_seen_at": 3
},
{
"metadata": "{}",
"is_active": true,
"is_blocking_me": true,
"require_auth_for_profile_image": true,
"role": "",
"profile_url": "profile_url",
"muted_end_at": 2,
"delivered_ts": 9,
"do_not_disturb": true,
"is_muted": true,
"read_ts": 4,
"is_blocked_by_me": true,
"friend_name": "friend_name",
"friend_discovery_key": [
"friend_discovery_key",
"friend_discovery_key"
],
"muted_description": "muted_description",
"push_enabled": true,
"user_id": "user_id",
"nickname": "nickname",
"is_online": true,
"push_trigger_option": null,
"state": "",
"last_seen_at": 3
}
],
"max_length_message": 2,
"my_role": "",
"inviter": {
"metadata": "{}",
"require_auth_for_profile_image": true,
"is_active": true,
"role": "",
"user_id": "user_id",
"profile_url": "profile_url",
"nickname": "nickname",
"is_blocked_by_me": true
},
"push_trigger_option": null,
"member_count": 7,
"message_survival_seconds": 7,
"has_ai_bot": true,
"cover_url": "cover_url",
"is_ephemeral": true,
"is_exclusive": true,
"unread_mention_count": 6,
"joined_ts": 5,
"created_by": {
"metadata": "{}",
"require_auth_for_profile_image": true,
"is_active": true,
"role": "",
"user_id": "user_id",
"profile_url": "profile_url",
"nickname": "nickname",
"is_blocked_by_me": true
},
"has_bot": true,
"unread_message_count": 7,
"channel_url": "channel_url",
"is_broadcast": true,
"hidden_state": "hidden_allow_auto_unhide",
"member_state": "invited",
"is_push_enabled": true,
"is_public": true,
"name": "name",
"read_receipt": {
"key": 1
},
"sms_fallback": {
"exclude_user_ids": [
"exclude_user_ids",
"exclude_user_ids"
],
"wait_seconds": 1
},
"ignore_profanity_filter": true,
"delivery_receipt": "{}",
"is_access_code_required": true,
"ts_message_offset": 1
}Changes
- info
added to the response body
allOflist for the response status - info
removed from the response body
allOflist for the response status
- info
- info
added to the response body
allOflist for the response status - info
removed from the response body
allOflist for the response status
- info