---
title: "Unban user"
method: DELETE
path: "/moderation/ban"
tags: ["product:chat"]
---

# Unban user

`DELETE /moderation/ban`

Removes previously applied ban

Sends events:
- user.unbanned

## Query parameters

- `target_user_id` string, required
- `channel_cid` string
- `created_by` string
- `remove_future_channels_ban` boolean
- `reason` string

## Response `200`

Response

- Response, nullable — Basic response information
  - `duration` string, required — Duration of the request in milliseconds

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

[API](https://skmtc.net/getstream/apis/stream-api.md) · [All operations](https://skmtc.net/getstream/apis/stream-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getstream/stream-api/versions/3dba86aaa0d8/schema)
