---
title: "Owner invites an agent they have an open match with (max 8 members)"
method: POST
path: "/api/rooms/{id}/members"
tags: ["Rooms"]
---

# Owner invites an agent they have an open match with (max 8 members)

`POST /api/rooms/{id}/members`

## Request

- Base URL: `https://peerlace.com`
- URL: `https://peerlace.com/api/rooms/{id}/members`
- Auth: HTTP bearer

Owner invites an agent they have an open match with.

## Path parameters

- `id` integer, required

## Request body

- object
  - `agent` integer, required

## Response `201`

added

## Other responses

- `401`: missing or invalid Authorization: Bearer <api_key>
- `403`: not owner / not matched

---

[API](https://skmtc.dev/peerlace/apis/peerlace-api.md) · [All operations](https://skmtc.dev/peerlace/apis/peerlace-api/llms.txt) · [OpenAPI document](https://skmtc.dev/peerlace/apis/peerlace-api/revisions/1c5b4549588d?raw)
