---
title: "Stream a job until it is done"
method: GET
path: "/jobs/{job_id}/stream"
tags: ["Jobs"]
---

# Stream a job until it is done

`GET /jobs/{job_id}/stream`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/jobs/{job_id}/stream`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Server-sent events. When the job is done, one `job` event carries the job, as GET /jobs/{job_id} returns it, and the stream ends. Comment lines keep the stream open while the job runs. A stream that ends with no `job` event timed out: read the job with GET /jobs/{job_id}. Only task previews signal at once; other jobs are seen within one heartbeat.

## Path parameters

- `job_id` integer, required: Job id is unique identifier for Job object. If processing is not completed, it will return processing otherwise it will have information about Job

## Response `200`

Request fulfilled, document follows

- unknown

## Other responses

- `400`: Bad request syntax or unsupported method

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/9d8804f81a10?raw)
