> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veri.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Stream job logs

> Server-sent events. Each `data:` line is one log line: the provisioning log first, then the worker's stdout tail, polled every 3 seconds. The stream ends with `[Job completed]`, `[Job failed]` or `[Job cancelled]` when the job reaches a terminal state, or `[Log stream timeout]` after 30 minutes; reconnect to keep following. For the whole log as one text body, use `GET /v1/training_jobs/{job_id}/logs/full`.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/training_jobs/{job_id}/logs
openapi: 3.1.0
info:
  title: Veri API
  description: >-
    REST API for the Veri RL post-training platform. All requests require a
    Bearer API key (`vk_` prefix).
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.veri.studio
    description: Production
security: []
tags:
  - name: Training jobs
    description: Create, monitor, and manage training jobs.
  - name: Datasets
    description: Upload and connect training datasets.
  - name: Deployments
    description: Serve trained models and run inference.
  - name: Volumes
    description: Persistent file storage mounted into jobs.
  - name: Models
    description: Custom model registry deployments serve from.
  - name: Regions
    description: Discover available launch regions.
  - name: GPU
    description: Live GPU availability by provider and region.
  - name: Code artifacts
    description: Upload custom training script bundles.
  - name: Billing
    description: Credit balance and transaction history.
  - name: API keys
    description: Create and revoke API keys.
  - name: Account
    description: The authenticated caller's identity.
  - name: Settings
    description: Account-level integrations (Weights & Biases).
  - name: Metrics
    description: Prometheus metrics export for your own observability stack.
  - name: Evaluators
    description: 'Evaluators: versioned scoring rules (LLM judge, code, human).'
  - name: Experiments
    description: >-
      Experiments: offline runs of a pinned dataset snapshot through a target,
      scored by pinned evaluators.
  - name: Annotation queues
    description: >-
      Human review: queue traces, threads and experiment items, reserve one at a
      time, score them and feed corrections back into datasets.
  - name: Monitors
    description: >-
      Monitors: evaluators scoring a sampled share of a deployment's live
      traffic.
  - name: Observability
    description: Agent conversations, agents and their traffic.
  - name: Public runs
    description: Unauthenticated reads of runs their owners published to Explore.
paths:
  /v1/training_jobs/{job_id}/logs:
    get:
      tags:
        - Training jobs
      summary: Stream job logs
      description: >-
        Server-sent events. Each `data:` line is one log line: the provisioning
        log first, then the worker's stdout tail, polled every 3 seconds. The
        stream ends with `[Job completed]`, `[Job failed]` or `[Job cancelled]`
        when the job reaches a terminal state, or `[Log stream timeout]` after
        30 minutes; reconnect to keep following. For the whole log as one text
        body, use `GET /v1/training_jobs/{job_id}/logs/full`.
      operationId: logs
      parameters:
        - name: job_id
          in: path
          description: Training job ID
          required: true
          schema:
            type: string
      responses:
        '200':
          description: An event stream of log lines
          content:
            text/event-stream:
              schema:
                type: string
        '400':
          description: The job has not been submitted to a worker yet
        '404':
          description: Not found or not owned by the caller
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: API key with the `vk_` prefix. Create one from the dashboard.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.