Get a Thread

This example demonstrates how to get a thread.


Get a Thread Example

Get a Thread Example

import 'dotenv/config';
import {Langbase} from 'langbase';

const langbase = new Langbase({
	apiKey: process.env.LANGBASE_API_KEY!,
});

async function main() {
	const response = await langbase.threads.get({
		threadId: 'REPLACE_WITH_THREAD_ID',
	});

	console.log(response);
}

main();