Remove a member from a channel

​

Removes a member from a standard channel (a leave or a removal — the same operation). Idempotent: removing someone who is not a member is not an error. The user's inbox row for this channel is removed with the membership.

Path Parameters

  • The channel id. Channels are not created explicitly — they exist by being used.

  • A user id (the sub you minted the token with, or an id you add as a member).

Responses

  • application/json
  • application/json
  • application/json
Request Example for delete/v1/channels/{channelId}/members/{userId}
curl https://api.useportal.co/v1/channels/chat-general/members/u_456 \
  --request DELETE \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{}