# Send chat message

```http
POST https://api.synup.com/api/v4/social-post-ideas/send-chat-message
```

Sends a message to an AI post-idea chat session and returns the assistant's reply. The response may include a generated post idea card (`postCard`), follow-up action chips, and a series plan when relevant. Optionally attach `referenceImageUrls` for image-grounded generation.

Source: https://developer.synup.com/api/social-post-ideas/send-chat-message

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Synup-Version` | string | required | API version date (YYYY-MM-DD). |

## Request body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `sessionId` | string | required |  |
| `message` | string | required |  |
| `referenceImageUrls` | array of string | optional |  |

## Example request

```bash
curl -X POST 'https://api.synup.com/api/v4/social-post-ideas/send-chat-message' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "sessionId": "7f3c1a2e-...",
  "message": "Give me a post idea for our product launch"
}'
```

## Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized - Invalid or missing API key |
