---
title: "Create Conversation"
description: "How to call Create Conversation (POST /api/customer-agent-conversations) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/create_customer_agent_conversation_beta"
revision: "2026-10-15.pre"
operationId: "create_customer_agent_conversation_beta"
method: "POST"
endpoint: "https://a.klaviyo.com/api/customer-agent-conversations"
authentication: "privateKey"
scopes: ["agents:write"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
preRelease: "BETA"
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/create_customer_agent_conversation_beta.json"
jsonApi: {"fields":{"customer-agent-conversation":["channel","created_at","customer","customer.email","customer.first_name","customer.last_name","customer.phone_number","id","mode","status","updated_at"]}}
related: ["https://developers.klaviyo.com/en/reference/customer-agent-beta/llms.txt","https://developers.klaviyo.com/en/reference/list_customer_agent_conversations_beta.md","https://developers.klaviyo.com/en/reference/retrieve_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/reference/update_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/reference/query_customer_agent_skill_values_beta.md","https://developers.klaviyo.com/en/reference/query_customer_agent_tool_values_beta.md","https://developers.klaviyo.com/en/reference/query_customer_agent_values_beta.md","https://developers.klaviyo.com/en/reference/get_agent_message_ids_for_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/reference/get_agent_messages_for_customer_agent_conversation_beta.md"]
---

# Create Conversation

> This is the Markdown version of https://developers.klaviyo.com/en/reference/create_customer_agent_conversation_beta

```http
POST https://a.klaviyo.com/api/customer-agent-conversations
```


> [!WARNING]
> **This endpoint is in beta and subject to change.**
> A beta revision header (2026-10-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy.md) for more information.


Create a new Customer Agent conversation with no messages.

Continue this conversation using ``POST /api/customer-agent-responses`` with the returned conversation attached.

- Revision header: `revision: 2026-10-15.pre` (required)
- Scopes: `agents:write`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/create_customer_agent_conversation_beta.json)

## Example request

### curl

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/customer-agent-conversations' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15.pre' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "customer-agent-conversation",
    "attributes": {
      "mode": "preview",
      "channel": "web-chat"
    }
  }
}'
```

### CLI

```bash
klaviyo beta customer-agent create-customer-agent-conversation \
  -d '{
  "data": {
    "type": "customer-agent-conversation",
    "attributes": {
      "mode": "preview",
      "channel": "web-chat"
    }
  }
}'
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

## Query parameters

- `fields[customer-agent-conversation]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `channel`, `created_at`, `customer`, `customer.email`, `customer.first_name`, `customer.last_name`, `customer.phone_number`, `id`, `mode`, `status`, `updated_at`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15.pre`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `customer-agent-conversation`
  - `attributes` (object, required)
    - `mode` (string, required): Whether the conversation is for testing or a real shopper interaction. `preview` conversations are excluded from billing, Customer Agent conversations, and production metrics. `live` conversations count toward billing, Customer Agent conversations, and production metrics once a message is sent to them. Allowed values: `preview`, `live`
    - `channel` (string): Channel this conversation is associated with. Determines response conventions once messages are sent. Optional; defaults to `web-chat`. Allowed values: `web-chat`, `sms`, `email`, `whatsapp` Default: `web-chat` Example: `web-chat`
    - `customer` (object, nullable): Contact details that identify the customer. Events from this conversation are recorded on the matching Klaviyo profile, and the agent uses these details to personalize replies. Does not sign the customer in or give access to their orders or account; use `profile` for that.
      - `email` (string, nullable)
      - `first_name` (string, nullable)
      - `last_name` (string, nullable)
      - `phone_number` (string, nullable)
  - `relationships` (object)
    - `profile` (object)
      - `data` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/create_customer_agent_conversation_beta.json).
    - `service-ticket` (object)
      - `data` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/create_customer_agent_conversation_beta.json).

### Example request body

```json
{
  "data": {
    "type": "customer-agent-conversation",
    "attributes": {
      "mode": "preview",
      "channel": "web-chat"
    }
  }
}
```

## Responses

### 201: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `customer-agent-conversation`
  - `id` (string, required): Conversation identifier. Treat it as an opaque string; its format varies by where the conversation started. Example: `d1cfa5b1-80ce-4069-8067-b708dab722bd`
  - `attributes` (object, required)
    - `status` (string, required): Current lifecycle status of the conversation. Allowed values: `open`, `routed-to-team`, `resolved-by-ai`, `closed` Example: `resolved-by-ai`
    - `mode` (string, required): Whether the conversation is for testing or a real shopper interaction. Allowed values: `preview`, `live`
    - `channel` (string, nullable): Channel this conversation is associated with, if known. Allowed values: `web-chat`, `sms`, `email`, `whatsapp`, `instagram`, `voice`, `personal-agent`
    - `customer` (object, nullable): Contact details that identify the customer, if any.
      - `email` (string, nullable)
      - `first_name` (string, nullable)
      - `last_name` (string, nullable)
      - `phone_number` (string, nullable)
    - `created_at` (string<date-time>, required): Date and time when the conversation was created. Example: `2026-05-13T12:00:00+00:00`
    - `updated_at` (string<date-time>, required): Date and time when the conversation was last updated. Example: `2026-05-13T12:05:00+00:00`
  - `relationships` (object, required)
    - `profile` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/create_customer_agent_conversation_beta.json).
    - `customer-agent-messages` (object, required)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/create_customer_agent_conversation_beta.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/create_customer_agent_conversation_beta.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": {
    "type": "customer-agent-conversation",
    "id": "d1cfa5b1-80ce-4069-8067-b708dab722bd",
    "attributes": {
      "status": "resolved-by-ai",
      "mode": "preview",
      "channel": "web-chat",
      "customer": {
        "email": "string",
        "first_name": "string",
        "last_name": "string",
        "phone_number": "string"
      },
      "created_at": "2026-05-13T12:00:00+00:00",
      "updated_at": "2026-05-13T12:05:00+00:00"
    },
    "relationships": {
      "profile": {
        "data": {
          "type": "profile",
          "id": "string"
        }
      },
      "customer-agent-messages": {
        "data": [
          {
            "type": "customer-agent-message",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
