import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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": [
"<unknown>"
]
}
]
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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": [
"<unknown>"
]
}
]
}
}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
pending, starting, running, completed, failed Show child attributes
Show child attributes
Was this page helpful?