Submit task and get stream URL
Submit a task and immediately receive the workflow ID and SSE stream URL for real-time updates. This is a convenience endpoint that combines task submission with stream URL generation in a single call.
post/api/v1/tasks/stream
Request
- Base URL: http://localhost:8080
- URL: http://localhost:8080/api/v1/tasks/stream
- Auth: API key in header X-API-Key
Headers
Idempotency-Keystring
Unique key for idempotent requests
Request body
Example request
{
"context": {
"compression_target_ratio": 0.375,
"compression_trigger_ratio": 0.75,
"disable_ai": true,
"history_window_size": 75,
"model_override": "gpt-5-2025-08-07",
"model_tier": "large",
"primers_count": 3,
"prompt_params": {
"current_date": "2025-09-01",
"profile_id": "49598h6e"
},
"recents_count": 20,
"role": "analysis",
"system_prompt": "You are a concise assistant.",
"template": "research_summary",
"template_version": "1.0.0"
}
}Response
Task submitted successfully with stream URL
Example response
{
"stream_url": "/api/v1/stream/sse?workflow_id=task-user123-1234567890",
"task_id": "task-user123-1234567890",
"workflow_id": "task-user123-1234567890"
}Changes
No recorded changes to this operation across all 1 revision of this API.