---
title: "Create a new conversation."
method: POST
path: "/api/v1/projects/{projectId}/conversations"
tags: ["Conversations"]
---

# Create a new conversation.

`POST /api/v1/projects/{projectId}/conversations`

Create a new conversation for an agent (formerly known as project) identified by its unique projectId. This endpoint allows you to initiate a new conversation within a specific agent. A conversation serves as a platform for users to exchange messages regarding agent-related matters. By providing the projectId, you can establish a conversation within the context of the agent allowing you to seamlessly communicate with it.
Here is an example to create a conversation: [API](https://github.com/Poll-The-People/customgpt-cookbook/blob/main/examples/Create_a_new_conversation_and_send_a_message_to_the_conversation.ipynb) [SDK](https://github.com/Poll-The-People/customgpt-cookbook/blob/main/examples/SDK_Create_a_new_conversation_and_send_a_message_to_the_conversation.ipynb).

## Path parameters

- `projectId` integer, required

## Request body

- object
  - `name` string — Conversation name

## Response `201`

Create a new conversation

- object
  - `status` 'error' | 'success' — The status of the response
  - `data` Conversation
    - `created_at` string, date-time — When was this conversation created?
    - `updated_at` string, date-time — When was this conversation updated?
    - `deleted_at` string, date-time — When was this conversation deleted?
    - `id` integer — Conversation ID
    - `name` string — Conversation name
    - `project_id` string — Agent ID for this conversation
    - `created_by` string — User ID for the user who created this conversation
    - `session_id` string, uuid — Session ID for this conversation

## Other responses

- `400` — Bad Argument
- `401` — API Token is either missing or invalid
- `404` — Agent not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/poll-the-people/apis/customgpt-ai.md) · [All operations](https://skmtc.net/poll-the-people/apis/customgpt-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poll-the-people/customgpt-ai/revisions/b80e6dfcf78d/schema)
