---
title: "Creates the conversation and adds the relevant members"
method: POST
path: "/chat/conversation"
tags: ["Chat"]
---

# Creates the conversation and adds the relevant members

`POST /chat/conversation`

## Request body

- ConversationCreateBodyParamDef
  - `conversation_uuid` string, uuid
  - `medium` 'sms' | 'chat' | 'whatsapp'
  - `first_message` string
  - `first_message_attributes` object
  - `name` string, required
  - `type` 'candidate_support' | 'system_support' | 'candidate_support_initiated' | 'system_support_initiated', required
  - `members` object[]
    - `user_id` string, required
    - `member_type` 'chatterbox', required
  - `owner` object
    - `resource_id` string, required
    - `resource_type` 'agencygroup' | 'agency', required

## Response `201`

Details about the conversation that was created

- ConversationCreateBodyParamResponseDef
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `conversation_uuid` string, uuid
  - `medium` 'sms' | 'chat' | 'whatsapp'
  - `type` 'candidate_support' | 'system_support' | 'candidate_support_initiated' | 'system_support_initiated'
  - `name` string
  - `first_message` string
  - `channel_id` string, required
  - `channel_attributes` object, required
  - `status` 'open' | 'closing' | 'closed' | 'orphan' | 'archived', required
  - `created_by` object, required
    - `user_id` string, required
    - `context_type` string, required
    - `context_id` string
  - `note_channel_id` string, required
  - `note_channel_attributes` object, required
  - `team` object
  - `owner` object, required
    - `resource_type` 'agency' | 'agencygroup' | 'systemadmin', required
    - `resource_id` string
  - `participants` object[]
    - `user_id` string, required
  - `bots` object[]
    - `_id` string, required
    - `name` string, required
    - `avatar` string, required

## Other responses

- `400` — Conversation Member validation response definition
- `401` — Failed to authenticate the user making the request
- `412` — Failed some pre condition on business logic while creating conversation
- `default` — Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) · [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/staffshift/staffshift-api-gateway/revisions/6e2cb83db3a9/schema)
