Task Messages
Send follow-up message.
Changed onSubmits a follow-up prompt to an existing task. The task must not currently be processing a previous message. Returns 202 Accepted; poll the task for progress.
Returns 409 if the task is locked by an active session.
post/api/v1/projects/{projectId}/tasks/{taskId}/messages
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdinteger required
The unique identifier of the agent.
taskIdstring required
The task ID.
Request body multipart/form-data
Example request
{
"prompt": "Can you expand on the third section?",
"chatbot_model": "gpt-4-1",
"custom_persona": "You are a helpful assistant specialised in document analysis.",
"sub_personas": {
"persona-summary": "Use a concise analyst tone.",
"task-planner": "Extract risks first."
},
"response_source": "default",
"custom_context": "User details: Name: John Doe, Role: Software Developer",
"child_project_id": 123,
"files[]": [
"document.pdf"
],
"labels[]": [
"27",
"billing"
],
"tools": [
{
"function": {
"name": "track_order",
"description": "Look up the current status of an order by its ID."
}
}
]
}Response
Task created and submitted successfully. Poll GET /tasks/{taskId} for progress.
Example response
{
"status": "success",
"data": {
"id": "f1b9aaf0-5e4e-11eb-ae93-0242ac130002",
"project_id": 1,
"name": "Analyse this document",
"created_at": "Monday, 01-Jan-24 12:00:00 UTC",
"updated_at": "Monday, 01-Jan-24 12:00:00 UTC"
}
}Changes
- info
endpoint added
- info