Stream progress for a background research task
Changed onStream real-time progress for a background research task using Server-Sent Events (SSE). The stream starts with a connected event, followed by periodic ping comments to keep the connection alive, and closes when the task reaches a terminal status (completed, failed, or cancelled), at which point a terminal event matching the status name is sent. To replay events after reconnecting, pass ?from_id=N with the last event ID you received. After the stream closes, call GET /v1/research/{task_id} to retrieve the full result object.
Request
- Base URLhttps://api.you.com
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier of the background research task.
Query parameters
Optional event ID to replay events from after reconnecting.
Response
A Server-Sent Events stream of task progress updates.
Changes
- breaking
the response's body type changed from
objecttostringfor status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status
- breaking
- info
endpoint added
- info