> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leadblanc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Chat Completion

> Send a message to an AI agent and receive a synthesized response.

Generate an intelligent conversational reply using your trained workspace agent.

## Headers

**Authorization** `string` *required*

Bearer token: `Bearer lb_live_YOUR_API_KEY`

**Content-Type** `string` *required*

`application/json`

## Body Parameters

**message** `string` *required*

The customer query or text message.

**conversation\_id** `string`

Unique conversation thread identifier to maintain state and history across turns.

**customer** `object`

Optional customer profile details.

**properties**

**name** `string`

Customer display name

**email** `string`

Customer email address

**phone** `string`

E.164 formatted phone number

**stream** `boolean` (default: false)

Whether to stream responses back as server-sent events (`text/event-stream`).

***

## Response

```json theme={null}
{
  "status": "success",
  "data": {
    "message_id": "msg_01JB8392",
    "conversation_id": "conv_98231",
    "reply": "Yes, our flagship wool blanket is crafted from 100% ethically sourced merino wool.",
    "agent_name": "Leadblanc Commerce Assistant",
    "sources_referenced": [
      {
        "title": "Merino Wool Blanket Care & Specifications",
        "url": "https://brand.com/products/merino-blanket"
      }
    ],
    "created_at": "2026-11-14T07:50:00Z"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.