API reference · Schema
ServerlessJobStream
objectstringrequiredAlways `serverless_job_stream`: the type of this object
One of
serverless_job_streamjob_idstringrequiredID of the job
attemptintegerrequiredChunks belong to this attempt; after a retry the stream starts over
statestringrequiredThe job's state (see `ServerlessJob.state`)
chunksarray of objectrequiredUp to 200 chunks, in order
ShowHide 3 fields of
chunksseqintegerrequiredPosition of the chunk in the attempt, increasing
dataany JSONDetails; their shape depends on the kind of entry
created_atstring (date-time)requiredWhen it was created (ISO 8601, UTC)
next_afterintegerrequiredPass as `after` to read the following chunks (unchanged when none arrived)
donebooleanrequiredTrue when the job has finished and every chunk has been returned
Example
{
"object": "serverless_job_stream",
"job_id": "string",
"attempt": 1,
"state": "string",
"chunks": [
{
"seq": 1,
"data": {},
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"next_after": 1,
"done": true
}Used by
- Partial output streamed by the handler, in order (long-poll with `wait`)
GET /v1/serverless/jobs/{job_id}/stream