curl --request GET \
--url https://api.goldilocksai.app/jobs/{job_id}/stream \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.goldilocksai.app/jobs/{job_id}/stream"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.goldilocksai.app/jobs/{job_id}/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Jobs
Stream real-time progress updates for asynchronous operations like searches and profile fetching using Server-Sent Events (SSE). This endpoint provides live updates on job status, current processing stage, and completion status. You’ll receive events as the job progresses through different stages, with a final event when the job completes or encounters an error. The stream automatically closes after the final event.
Important: Retrieving profiles during search
During the “Aggregate Search Results” stage, you’ll receive events containing search_id in the metadata whenever a new batch of profiles is matched. Each time you receive this event, you can call GET /searches/{search_id}/profiles to retrieve the latest profiles found so far. This allows you to display results progressively to users rather than waiting for the entire search to complete.
curl --request GET \
--url https://api.goldilocksai.app/jobs/{job_id}/stream \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.goldilocksai.app/jobs/{job_id}/stream"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.goldilocksai.app/jobs/{job_id}/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
API key for authentication. Obtain your API key via the web application.
Path Parameters
Unique identifier of the job
Response
SSE stream established successfully
Server-Sent Events stream with job updates.
Each event contains a JSON payload with job progress information. Events are sent as they occur during job execution.
The stream closes automatically after the final event (is_final: true).
