Fetch a cluster
GET/ai/clusters/:task_id
Fetch a cluster
Request
Path Parameters
task_id Task Idrequired
Query Parameters
top_n_nodes Top N Nodes
Default value: 0
The number of nodes in the cluster to return in the response. Nodes will be sorted by their centrality within the cluster.
show_subclusters Show Subclusters
Default value: false
Whether or not to include subclusters and their nodes in the response.
Responses
200: Successful Response
- application/json
422: Validation Error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/ai/clusters/:task_id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": {
"status": "pending",
"bucket": "string",
"clusters": [
{
"cluster_id": "string",
"cluster_header": "string",
"cluster_summary": "string",
"nodes": [
{
"filename": "string",
"text": "string"
}
],
"total_number_of_nodes": 0,
"subclusters": [
null
]
}
]
}
}
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}