---
title: "Create Conversation"
method: POST
path: "/conversations"
tags: ["Conversation"]
---

# Create Conversation

`POST /conversations`

Used to create a new Conversation

## Request body

- ConversationCreateRequest
  - `conversation` Conversation — A conversation
    - `id` string — Unique ID for this conversation
    - `branch_name` string — The name of the branch associated with this conversation
    - `branch_id` string — The ID of the branch associated with this conversation
    - `workspace_id` string — The ID of the workspace associated with this conversation
    - `entity_type` 'branch' | 'test' | 'flow' — The type of entity associated with this conversation
    - `entity_id` string — The ID of the entity associated with this conversation (branchId, testInvariantId, flowInvarianId)
    - `resolved` boolean — Indicates if the conversation is resolved
    - `resolved_time` integer — Time at which the conversation was resolved
    - `created_time` integer — Time at which the conversation was created
    - `created_by_id` string — The ID of the user who created this conversation
    - `last_updated_time` integer — Time at which the conversation was created
    - `last_updated_by_id` string — The ID of the user who updated this conversation
  - `message_content` string — The content of the message

## Response `201`

The conversation that was created

- ConversationCreateResponse
  - `conversation` Conversation — A conversation
    - `id` string — Unique ID for this conversation
    - `branch_name` string — The name of the branch associated with this conversation
    - `branch_id` string — The ID of the branch associated with this conversation
    - `workspace_id` string — The ID of the workspace associated with this conversation
    - `entity_type` 'branch' | 'test' | 'flow' — The type of entity associated with this conversation
    - `entity_id` string — The ID of the entity associated with this conversation (branchId, testInvariantId, flowInvarianId)
    - `resolved` boolean — Indicates if the conversation is resolved
    - `resolved_time` integer — Time at which the conversation was resolved
    - `created_time` integer — Time at which the conversation was created
    - `created_by_id` string — The ID of the user who created this conversation
    - `last_updated_time` integer — Time at which the conversation was created
    - `last_updated_by_id` string — The ID of the user who updated this conversation
  - `conversation_message` ConversationMessage — A conversation message
    - `id` string — Unique ID for this conversation message
    - `conversation_id` string — The ID of the conversation associated with this message
    - `branch_name` string — The name of the branch associated with this conversation
    - `branch_id` string — The ID of the branch associated with this conversation
    - `workspace_id` string — The ID of the workspace associated with this conversation
    - `entity_type` 'branch' | 'test' | 'flow' — The type of entity associated with this conversation
    - `entity_id` string — The ID of the entity associated with this conversation (branchId, testInvariantId, flowInvarianId)
    - `content` string — The content of the conversation message
    - `created_time` integer — Time at which the conversation was created
    - `created_by_id` string — The ID of the user who created this conversation
    - `last_updated_time` integer — Time at which the conversation was created
    - `last_updated_by_id` string — The ID of the user who updated this conversation

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
