POST
/api/v1/public/threads/{thread_id}/responseContinue Conversation
Add a follow-up message to an existing conversation using FormData. This allows you to iterate on your project with additional requests.
Request
curl -X POST \
"https://api.he2.ai/api/v1/public/threads/thread_456/response?project_id=proj_123" \
-H "X-API-Key: he-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "prompt=Add authentication"Path Parameters
| Parameter | Type | Description |
|---|---|---|
thread_id | string (required) | The thread ID from the original task |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
project_id | string (required) | Project ID |
Body Parameters
| Parameter | Type | Description |
|---|---|---|
prompt | string (optional) | Follow-up message (1-5000 characters). Required if no files provided |
files | file[] (optional) | File uploads |
Response
200
{
"success": true,
"agent_run_id": "run_123",
"status": "running",
"message": "Follow-up accepted"
}With Files
You can also include files in your follow-up message:
curl -X POST "https://api.he2.ai/api/v1/public/threads/thread_456/response?project_id=proj_123" \
-H "X-API-Key: he-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "prompt=Analyze this additional file" \
-F "files=@/path/to/document.pdf"