Check out our upcoming events and meetups! View events →
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const cluster = await client.ai.clusters.retrieve('task_id');
console.log(cluster.data);{
"data": {
"status": "pending",
"bucket": "<string>",
"clusters": [
{
"cluster_id": "<string>",
"cluster_summary": "<string>",
"total_number_of_nodes": 123,
"cluster_header": "<string>",
"nodes": [
{
"filename": "<string>",
"text": "<string>"
}
],
"subclusters": "<array>"
}
]
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The number of nodes in the cluster to return in the response. Nodes will be sorted by their centrality within the cluster.
Whether or not to include subclusters and their nodes in the response.
Successful Response
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const cluster = await client.ai.clusters.retrieve('task_id');
console.log(cluster.data);{
"data": {
"status": "pending",
"bucket": "<string>",
"clusters": [
{
"cluster_id": "<string>",
"cluster_summary": "<string>",
"total_number_of_nodes": 123,
"cluster_header": "<string>",
"nodes": [
{
"filename": "<string>",
"text": "<string>"
}
],
"subclusters": "<array>"
}
]
}
}