curl -X GET "https://prod.api.unleeshed.ai/partner/v1/topics/a1b2c3d4.../commentaries" \
-H "X-Api-Key: pk_live_your_api_key"
{
"success": true,
"data": {
"topic_id": "a1b2c3d4-...",
"content": "Should the Lakers trade Anthony Davis before the deadline?",
"commentaries": [
{
"commentary_id": "comm-111-...",
"persona": {
"id": "persona-abc-123",
"name": "Coach Mike",
"image_url": "https://storage.unleeshed.ai/personas/coach-mike.jpg"
},
"content": "Look, AD is still one of the best two-way players in the league when healthy. The problem is that 'when healthy' part...",
"audio_url": null,
"video_url": null
},
{
"commentary_id": "comm-222-...",
"persona": {
"id": "persona-xyz-789",
"name": "Sports Analyst Sarah",
"image_url": "https://storage.unleeshed.ai/personas/sarah.jpg"
},
"content": "From a pure analytics standpoint, the Lakers' net rating with AD on the court versus off tells you everything...",
"audio_url": null,
"video_url": null
}
]
}
}
Commentary
Get Commentaries
Get only the completed commentaries for a topic
GET
/
partner
/
v1
/
topics
/
{id}
/
commentaries
curl -X GET "https://prod.api.unleeshed.ai/partner/v1/topics/a1b2c3d4.../commentaries" \
-H "X-Api-Key: pk_live_your_api_key"
{
"success": true,
"data": {
"topic_id": "a1b2c3d4-...",
"content": "Should the Lakers trade Anthony Davis before the deadline?",
"commentaries": [
{
"commentary_id": "comm-111-...",
"persona": {
"id": "persona-abc-123",
"name": "Coach Mike",
"image_url": "https://storage.unleeshed.ai/personas/coach-mike.jpg"
},
"content": "Look, AD is still one of the best two-way players in the league when healthy. The problem is that 'when healthy' part...",
"audio_url": null,
"video_url": null
},
{
"commentary_id": "comm-222-...",
"persona": {
"id": "persona-xyz-789",
"name": "Sports Analyst Sarah",
"image_url": "https://storage.unleeshed.ai/personas/sarah.jpg"
},
"content": "From a pure analytics standpoint, the Lakers' net rating with AD on the court versus off tells you everything...",
"audio_url": null,
"video_url": null
}
]
}
}
This endpoint returns a simplified response with just the completed commentaries, without status information. Use this when you just need the content.
Path Parameters
Topic UUID
Response
Topic identifier.
The topic content.
Array of completed commentary objects.
curl -X GET "https://prod.api.unleeshed.ai/partner/v1/topics/a1b2c3d4.../commentaries" \
-H "X-Api-Key: pk_live_your_api_key"
{
"success": true,
"data": {
"topic_id": "a1b2c3d4-...",
"content": "Should the Lakers trade Anthony Davis before the deadline?",
"commentaries": [
{
"commentary_id": "comm-111-...",
"persona": {
"id": "persona-abc-123",
"name": "Coach Mike",
"image_url": "https://storage.unleeshed.ai/personas/coach-mike.jpg"
},
"content": "Look, AD is still one of the best two-way players in the league when healthy. The problem is that 'when healthy' part...",
"audio_url": null,
"video_url": null
},
{
"commentary_id": "comm-222-...",
"persona": {
"id": "persona-xyz-789",
"name": "Sports Analyst Sarah",
"image_url": "https://storage.unleeshed.ai/personas/sarah.jpg"
},
"content": "From a pure analytics standpoint, the Lakers' net rating with AD on the court versus off tells you everything...",
"audio_url": null,
"video_url": null
}
]
}
}
⌘I