GET
/api/v1/public/threads/{thread_id}/filesList Thread Files
Get a list of all files generated in a thread. This endpoint provides metadata about all files created during the task execution.
Request
curl -X GET \"https://api.he2.ai/api/v1/public/threads/thread_456/files?project_id=proj_123" \-H "X-API-Key: he-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"Path Parameters
| Parameter | Type | Description |
|---|---|---|
thread_id | string (required) | The thread ID |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
project_id | string (required) | Project ID |
Response
{ "success": true, "files": [ { "file_id": "file_1", "file_name": "index.html", "file_size": 2048, "file_type": "text/html" } ], "pagination": { "current_page": 1, "total_items": 1 }}