---
title: "Create Conversation Message"
description: "How to call Create Conversation Message (POST /api/conversation-messages) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/create_conversation_message"
revision: "2026-10-15"
operationId: "create_conversation_message"
method: "POST"
endpoint: "https://a.klaviyo.com/api/conversation-messages"
authentication: "privateKey"
scopes: ["conversations:write"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_conversation_message.json"
related: ["https://developers.klaviyo.com/en/reference/conversations/llms.txt"]
---

# Create Conversation Message

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

```http
POST https://a.klaviyo.com/api/conversation-messages
```

Send an outbound message to a conversation.

Requires account-level enablement. To request access, reach out in the [developer community](https://community.klaviyo.com/groups/developer-group-64).

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `conversations: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/openapi/stable/apis/create_conversation_message.json)

## Example request

### curl

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/conversation-messages' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "conversation-message",
    "attributes": {
      "body": "string"
    },
    "relationships": {
      "conversation": {}
    }
  }
}'
```

### CLI

```bash
klaviyo conversations create-conversation-message \
  -d '{
  "data": {
    "type": "conversation-message",
    "attributes": {
      "body": "string"
    },
    "relationships": {
      "conversation": {}
    }
  }
}'
```

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

### Python

```python
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI("your-private-api-key")

response = klaviyo.Conversations.create_conversation_message(
    {
        "data": {
            "type": "conversation-message",
            "attributes": {
                "body": "string",
            },
            "relationships": {
                "conversation": {},
            },
        },
    },
)
```

Install it with `pip install klaviyo-api`. [The Python SDK on GitHub](https://github.com/klaviyo/klaviyo-api-python)

### Node.js

```javascript
import { ApiKeySession, ConversationsApi } from 'klaviyo-api'

const session = new ApiKeySession('your-private-api-key')
const conversationsApi = new ConversationsApi(session)

const response = await conversationsApi.createConversationMessage(
  {
    data: {
      type: 'conversation-message',
      attributes: {
        body: 'string',
      },
      relationships: {
        conversation: {},
      },
    },
  },
)
```

Install it with `npm install klaviyo-api`. [The Node.js SDK on GitHub](https://github.com/klaviyo/klaviyo-api-node)

### Ruby

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI.configure do |config|
  config.api_key['Klaviyo-API-Key'] = 'Klaviyo-API-Key your-private-api-key'
end

response = KlaviyoAPI::Conversations.create_conversation_message(
  {
    data: {
      type: 'conversation-message',
      attributes: {
        body: 'string',
      },
      relationships: {
        conversation: {},
      },
    },
  },
)
```

Install it with `gem install klaviyo-api-sdk`. [The Ruby SDK on GitHub](https://github.com/klaviyo/klaviyo-api-ruby)

### PHP

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

use KlaviyoAPI\KlaviyoAPI;

$klaviyo = new KlaviyoAPI('your-private-api-key');

$response = $klaviyo->Conversations->createConversationMessage(
    [
        'data' => [
            'type' => 'conversation-message',
            'attributes' => [
                'body' => 'string',
            ],
            'relationships' => [
                'conversation' => new \stdClass(),
            ],
        ],
    ],
);
```

Install it with `composer require klaviyo/api`. [The PHP SDK on GitHub](https://github.com/klaviyo/klaviyo-api-php)

## Headers

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

## Request body

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

- `data` (object, required)
  - `type` (string, required): Allowed values: `conversation-message`
  - `attributes` (object, required)
    - `body` (string, required)
    - `message_hierarchy` (oneOf[], nullable): An ordered RCS and SMS pair to send instead of a plain SMS: the RCS content first, then the SMS fallback delivered when RCS cannot be sent.
      - One of:
        - Option 1: `MessageHierarchyRcsItem` Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_conversation_message.json).
        - Option 2: `MessageHierarchySmsItem` Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_conversation_message.json).
  - `relationships` (object, required)
    - `conversation` (object, required)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_conversation_message.json).

### Example request body

```json
{
  "data": {
    "type": "conversation-message",
    "attributes": {
      "body": "string"
    },
    "relationships": {
      "conversation": {}
    }
  }
}
```

## Responses

### 202: Success

This response has no body.

### 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"
      }
    }
  ]
}
```
