---
title: "Create a Chat Room Membership"
method: POST
path: "/{id}/memberships/"
---

# Create a Chat Room Membership

`POST /{id}/memberships/`

## Request

- Base URL: `https://cf-blast.livelikecdn.com/api/v1/chat-rooms`
- URL: `https://cf-blast.livelikecdn.com/api/v1/chat-rooms/{id}/memberships/`
- Auth: none required

## Path parameters

- `id` string, required

## Request body

- object
  - `profile_id` string: profile_id field must be null if you want to join the chatroom, if profile_id field is provided then that profile will be added to the chatroom provided the user who is adding is already a member of that chatroom

## Response `201`

201

- object
  - `id` string
  - `url` string
  - `created_at` string
  - `profile` object
    - `id` string
    - `url` string
    - `created_at` string
    - `nickname` string
    - `custom_data` string
    - `badges` unknown[]
      - unknown
    - `badges_url` string
    - `subscribe_channel` string
    - `reported_count` integer
    - `chat_room_memberships_url` string

## Other responses

- `400`: 400
- `403`: 403
- `409`: 409

---

[API](https://skmtc.dev/livelike/apis/chat-rooms.md) - [All operations](https://skmtc.dev/livelike/apis/chat-rooms/llms.txt) - [OpenAPI document](https://skmtc.dev/livelike/apis/chat-rooms/revisions/a637fa5c92a5?raw)
