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

# Pathway Chat

> Send a message to a pathway and receive a response.

### Headers

<ParamField header="authorization" type="string" required={true}>
  Your API key for authentication.
</ParamField>

### Path

<ParamField path=" id" type="string" required={true} />

### Path Parameters

<ParamField header="id" type="uuid" required={true}>
  The chat ID created from the /pathway/chat/create endpoint.
</ParamField>

### Body

<ParamField body="message" type="string">
  The message to send to the pathway (optional)
</ParamField>

### Response

<ResponseField name="status" type="string">
  Can be `success` or `error`.
</ResponseField>

<ResponseField name="chat_id" type="uuid">
  The ID of the chat instance created. This will be used to send and receive messages to the pathway via the /pathway/chat endpoint.
</ResponseField>

<ResponseField name="Assistant Response" type="string">
  The response from the Assistant to the message sent.
</ResponseField>

<ResponseField name="Current Node ID" type="string">
  The ID of the current node in the pathway.
</ResponseField>

<ResponseField name="Current Node Name" type="string">
  The name of the current node in the pathway.
</ResponseField>

<ResponseField name="Chat History" type="array">
  An array of objects containing the role and content of each message in the chat.
</ResponseField>

<ResponseField name="Pathway ID" type="string">
  The ID of the pathway the chat is associated with.
</ResponseField>

<ResponseExample>
  ```json Response
  {
    "status": "success",
    "pathway_id": "9d404c1b-6a23-4426-953a-a52c392ff8f1"
  }

  ```
</ResponseExample>
