Lift a ban
Removes a ban. Idempotent. Lifting a ban does not restore any prior state — it simply allows the user to connect and publish again, subject to your channel config's normal authorization.
Path Parameters
- Type: stringchannel
Id requiredThe channel id. Channels are not created explicitly — they exist by being used.
- Type: stringuser
Id requiredA user id (the
subyou 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}/bans/{userId}
curl https://api.useportal.co/v1/channels/chat-general/bans/u_456 \
--request DELETE \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{}