Set Up Job Event Streaming

How to consume job event history, live event streams, and archived runtime logs.

Start from a job id returned by POST /v1/jobs or POST /v1/spatial/bundles/{bundleId}/jobs.

Fetch recent history:

GET /v1/jobs/{jobId}/events?limit=200
Authorization: Bearer <personal-access-token>

Subscribe to live logs with server-sent events:

GET /v1/jobs/{jobId}/events/stream
Authorization: Bearer <personal-access-token>
Accept: text/event-stream

Use the event id value as the after query parameter when reconnecting:

GET /v1/jobs/{jobId}/events/stream?after=1745750000000-0

After a job finishes, request the runtime log archive:

GET /v1/jobs/{jobId}/archive
Authorization: Bearer <personal-access-token>

The archive response returns available: false until an archive exists. When available, it includes a temporary downloadUrl.