> For the complete documentation index, see [llms.txt](https://docs.sonoransoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/ban-members.md).

# Ban Members

Ban members from a specific Sonoran Radio server.

## Ban Members

<mark style="color:green;">`POST`</mark> `/v2/servers/:communityId/members/ban`

> **Rate limit:** `4 requests per minute`

Bans members from the selected server and disconnects them from live radio sessions when applicable.

**Headers**

| Name          | Value                        |
| ------------- | ---------------------------- |
| Authorization | `Bearer <community-api-key>` |
| Content-Type  | `application/json`           |

**Examples**

{% tabs %}
{% tab title="Sonoran.lua" %}

```lua
local response = client.radio:banMembersV2({
  "91de0ce8-c571-11e9-9714-5600023b2434"
}, 1)
```

{% endtab %}

{% tab title="Sonoran.js" %}

```javascript
const response = await instance.radio?.banMembersV2([
  "91de0ce8-c571-11e9-9714-5600023b2434"
], 1);
```

{% endtab %}

{% tab title="Sonoran.py" %}

```python
response = instance.radio.banMembersV2([
    "91de0ce8-c571-11e9-9714-5600023b2434"
], 1)
```

{% endtab %}

{% tab title="Sonoran.Net" %}

```csharp
var response = await sonoran.Radio.banMembersV2(new[]
{
    "91de0ce8-c571-11e9-9714-5600023b2434"
});
```

{% endtab %}

{% tab title="OpenAPI" %}

```yaml
openapi: 3.1.0
paths:
  /v2/servers/{communityId}/members/ban:
    post:
      security:
        - bearerAuth: []
```

{% endtab %}

{% tab title="cURL" %}

```bash
curl -X POST "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/members/ban" \
  -H "Authorization: Bearer your-community-api-key" \
  -H "Content-Type: application/json" \
  -d "{\"accIds\":[\"91de0ce8-c571-11e9-9714-5600023b2434\"]}"
```

{% endtab %}
{% endtabs %}

## Response

Successful requests return `application/json`.

```json
{
  "bannedAccIds": [
    "91de0ce8-c571-11e9-9714-5600023b2434"
  ]
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/ban-members.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
