# Reply in a conversation (/api/replyToConversation)

Answers `201` with the **`conversation_message`** that was created —
not the conversation, and not a `msg_` delivery row.

Endpoint: POST /api/v1/conversations/{id}/reply
Full URL: https://app.sendkuy.com/api/v1/conversations/{id}/reply
- path parameter id (required): string — The prefixed id of the object.
- header parameter Idempotency-Key (optional): string — Any unique string, one per logical request. Retrying with the same key returns the first answer instead of doing the work twice, and answers with `Idempotent…
Request body (JSON, required); required fields: body
Example "A one-line reply": {"body":"Thanks, we are on it."}
Success status: 201

cURL:

```bash
curl -X POST https://app.sendkuy.com/api/v1/conversations/cnv_9cBe3A1H-SLhW5fONWZ32wb-IIio5Ts3/reply \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "Thanks, we are on it."
}'
```

Node.js:

```ts
import { SendKuy } from 'sendkuy';

const sendkuy = new SendKuy('sk_live_YOUR_API_KEY');

const result = await sendkuy.conversations.reply('cnv_9cBe3A1H-SLhW5fONWZ32wb-IIio5Ts3', {
  body: 'Thanks, we are on it.',
});
```

PHP:

```php
<?php

use SendKuy\SendKuy;

$sendkuy = new SendKuy('sk_live_YOUR_API_KEY');

$result = $sendkuy->conversations()->reply('cnv_9cBe3A1H-SLhW5fONWZ32wb-IIio5Ts3', [
    'body' => 'Thanks, we are on it.',
]);
```

Python:

```python
import requests

response = requests.request(
    "POST",
    "https://app.sendkuy.com/api/v1/conversations/cnv_9cBe3A1H-SLhW5fONWZ32wb-IIio5Ts3/reply",
    headers={"Authorization": "Bearer sk_live_YOUR_API_KEY"},
    json={
        "body": "Thanks, we are on it."
    },
)

data = response.json()["data"]
```