---
title: "List the bans of a conversation"
method: GET
path: "/ocs/v2.php/apps/spreed/api/{apiVersion}/ban/{token}"
tags: ["ban"]
---

# List the bans of a conversation

`GET /ocs/v2.php/apps/spreed/api/{apiVersion}/ban/{token}`

Required capability: `ban-v1`

## Path parameters

- `apiVersion` 'v1', required
- `token` string, required

## Headers

- `OCS-APIRequest` boolean, required

## Response `200`

List all bans

- object
  - `ocs` object, required
    - `meta` OCSMeta, required
      - `status` string, required
      - `statuscode` integer, required
      - `message` string
      - `totalitems` string
      - `itemsperpage` string
    - `data` Ban[], required
      - `id` integer, required — Identifier of the ban
      - `moderatorActorType` string, required — Actor type of the moderator that banned the participant
      - `moderatorActorId` string, required — Actor id of the moderator that banned the participant
      - `moderatorDisplayName` string, required — Display name of the moderator that banned the participant
      - `bannedActorType` string, required — Actor type of the banned participant
      - `bannedActorId` string, required — Actor id of the banned participant
      - `bannedDisplayName` string, required — Display name of the banned participant
      - `bannedTime` integer, required — UNIX timestamp when the participant was banned
      - `internalNote` string, required — Internal note for the moderator to remember the reason for the ban

---

[API](https://skmtc.dev/nextcloud/apis/spreed-full.md) · [All operations](https://skmtc.dev/nextcloud/apis/spreed-full/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nextcloud/spreed-full/revisions/41d6458d6d6e/schema)
