import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});const messages = await client.ai.conversations.messages.list('conversation_id');console.log(messages.data);
Retrieve messages for a specific conversation, including tool calls made by the assistant.
GET
/
ai
/
conversations
/
{conversation_id}
/
messages
JavaScript
Copy
Ask AI
import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});const messages = await client.ai.conversations.messages.list('conversation_id');console.log(messages.data);