Gamma API
ProjectsJobs

Stream job log

GET
/api/projects/{projectId}/jobs/{jobId}/logs/stream

Server-Sent Events: status with the job (a JobSummary) at the start and whenever it changes; log per line (a JobLogLine, its id the event id); end once the job is over and every line is out, then the stream closes. Resumes after the Last-Event-ID header, or after.

Who may call it: Whoever manages the project: an owner, security admin or admin of its organization, or an admin of the project. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

jobId*string

Query Parameters

after?string

A log line's id: only the lines after it.

Match^\d{1,19}$

Response Body

The event stream.

response?filetext/event-stream
Formatbinary
Example Request
curl -X GET 'http://localhost:3000/api/projects/string/jobs/string/logs/stream'
Example Response
"string"