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

# canopy.messageThreadLength

<RequestExample>
  ```javascript index.js
  await canopy.messageThreadLength();
  ```
</RequestExample>

Returns the number of dialogues in the `messageThread`.

### Response

You will get a <b>JSON</b> response with the following fields:

<ResponseField name="success" type="boolean" />

<ResponseField name="timestamp" type="number" />

<ResponseField name="messageThreadLength" type="number">
  The number of `dialogue` objects in the `messageThread`.
</ResponseField>
