---
title: "Add a participant to a room"
method: POST
path: "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants"
tags: ["room"]
---

# Add a participant to a room

`POST /ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants`

## Path parameters

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

## Headers

- `OCS-APIRequest` boolean, required

## Request body

- object
  - `newParticipant` string, required — New participant
  - `source` 'users' | 'groups' | 'circles' | 'emails' | 'federated_users' | 'phones' | 'teams' — Source of the participant

## Response `200`

Participant successfully added

- object
  - `ocs` object, required
    - `meta` OCSMeta, required
      - `status` string, required
      - `statuscode` integer, required
      - `message` string
      - `totalitems` string
      - `itemsperpage` string
    - `data` object, required
      - `type` integer

## Other responses

- `400` — Adding participant is not possible, e.g. when the user is banned or an email, phone number or federated user is added to a classified conversation (check error attribute of response for detail key)
- `401` — Current user is not logged in
- `404` — User, group or other target to invite was not found
- `501` — SIP dial-out is not configured

## Changes

- **2026-07-16** `a2b2faeb5c3f` — 3 warning
  - added the new `classified` enum value to the `ocs/data/error` response property for the response status `400`
  - added the new `classified` enum value to the `ocs/data/error` response property for the response status `404`
  - added the new `classified` enum value to the `ocs/data/error` response property for the response status `501`

[Change history](https://skmtc.dev/nextcloud/apis/spreed-full/changes/ocs/v2.php/apps/spreed/api/:apiVersion/room/:token/participants/post.md)

---

[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)
