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

# List Job Events

> Stream training progress at /v1/fine_tuning/jobs/{job_id}/events

## Overview

Returns the training event log for a job — queued, running, metrics, and terminal transitions — with cursor pagination.


## OpenAPI

````yaml GET /v1/fine_tuning/jobs/{job_id}/events
openapi: 3.1.0
info:
  title: Morph API
  version: 1.1.0
  description: >-
    The Morph public API at api.morphllm.com: OpenAI- and Anthropic-compatible
    inference (chat completions, messages), Fast Apply code editing, Compact
    context compression, Reflex classification, and fine-tuning. Model ids,
    prices, and context windows are served live at
    https://www.morphllm.com/api/models/json.
  contact:
    name: Morph
    url: https://morphllm.com
    email: info@morphllm.com
  license:
    name: Proprietary
    url: https://morphllm.com/privacy/tos
servers:
  - url: https://api.morphllm.com
    description: Production
security: []
tags:
  - name: chat
    description: >-
      OpenAI- and Anthropic-compatible chat inference, including Fast Apply and
      WarpGrep models.
  - name: compact
    description: Context compression for long agent conversations.
  - name: reflex
    description: 'Per-turn classifiers: realtime prediction and batches.'
  - name: fine-tuning
    description: Reflex fine-tuning job lifecycle.
  - name: models
    description: Model listing and management.
  - name: telemetry
    description: Usage reporting hooks.
paths:
  /v1/fine_tuning/jobs/{job_id}/events:
    get:
      tags:
        - fine-tuning
      summary: List training events
      description: >-
        Return lifecycle events interleaved with the loss curve, oldest first.
        `type` is `metrics` for a loss point and `message` for a lifecycle line.
        Add `?stream=true` for a live Server-Sent Events stream.
      operationId: listFineTuningJobEvents
      parameters:
        - schema:
            type: string
            description: The `ftjob-` prefixed id whose training log you want.
            example: ftjob-a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
          required: true
          description: Identifies the job whose events you want.
          name: job_id
          in: path
        - schema:
            type: string
            enum:
              - 'true'
            description: Set `true` for a live SSE stream instead of a JSON list.
            example: 'true'
          required: false
          description: Switches the response to Server-Sent Events.
          name: stream
          in: query
      responses:
        '200':
          description: The job's events.
          content:
            application/json:
              example:
                object: list
                data:
                  - id: ftevent-1a2b3c
                    object: fine_tuning.job.event
                    created_at: 1780107005
                    level: info
                    message: 'Step 5: train_loss 0.42'
                    type: metrics
                    data:
                      epoch: 1
                      step: 5
                      train_loss: 0.42
                has_more: false
              schema:
                $ref: '#/components/schemas/FineTuningJobEventList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - bearerAuth: []
components:
  schemas:
    FineTuningJobEventList:
      type: object
      properties:
        object:
          type: string
          description: Always `list` for a page of events.
          example: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/FineTuningJobEvent'
          description: The job's events, oldest first.
          example:
            - id: ftevent-1a2b3c
              object: fine_tuning.job.event
              created_at: 1780107005
              level: info
              message: 'Step 5: train_loss 0.42'
              type: metrics
              data:
                epoch: 1
                step: 5
                train_loss: 0.42
        has_more:
          type: boolean
          description: True when more events exist past this page.
          example: false
      required:
        - object
        - data
        - has_more
      description: A page of training events for one job.
      example:
        object: list
        data:
          - id: ftevent-1a2b3c
            object: fine_tuning.job.event
            created_at: 1780107005
            level: info
            message: 'Step 5: train_loss 0.42'
            type: metrics
            data:
              epoch: 1
              step: 5
              train_loss: 0.42
        has_more: false
    FineTuningJobEvent:
      type: object
      properties:
        id:
          type: string
          description: Event id, prefixed `ftevent-`.
          example: ftevent-1a2b3c
        object:
          type: string
          description: Always `fine_tuning.job.event`.
          example: fine_tuning.job.event
        created_at:
          type: integer
          description: Unix timestamp (seconds) when the event was emitted.
          example: 1780107005
        level:
          type: string
          enum:
            - info
            - warn
            - error
          description: Severity of the event.
          example: info
        message:
          type: string
          description: Human-readable event line.
          example: 'Step 5: train_loss 0.42'
        type:
          type: string
          enum:
            - message
            - metrics
          description: '`metrics` for a loss-curve point, `message` for a lifecycle line.'
          example: metrics
        data:
          type: object
          description: 'For a metrics event: `{epoch, step, train_loss}`.'
          example:
            epoch: 1
            step: 5
            train_loss: 0.42
      required:
        - id
        - object
        - created_at
        - level
        - message
        - type
        - data
      description: A lifecycle line or loss-curve point emitted while a job runs.
      example:
        id: ftevent-1a2b3c
        object: fine_tuning.job.event
        created_at: 1780107005
        level: info
        message: 'Step 5: train_loss 0.42'
        type: metrics
        data:
          epoch: 1
          step: 5
          train_loss: 0.42
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: invalid_request_error
              description: Machine-readable error code.
            message:
              type: string
              example: The request body is missing the `model` field.
              description: Human-readable explanation of the failure.
          required:
            - code
            - message
      required:
        - error
      description: Standard error envelope returned by every non-2xx response.
      example:
        error:
          code: invalid_request_error
          message: The request body is missing the `model` field.
  responses:
    BadRequest:
      description: Malformed request — missing or invalid fields.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request_error
              message: The request body is missing the `model` field.
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Invalid API key provided.
    NotFound:
      description: The requested resource does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: No fine-tuning job found with id ftjob-8f2k1.
    RateLimited:
      description: Rate limited — retry after the interval in the Retry-After header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: rate_limited
              message: Too many requests. Retry in 12 seconds.
    InternalError:
      description: Internal error — safe to retry with backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: internal_error
              message: Something went wrong on our side.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        Morph API key, passed as `Authorization: Bearer sk-...`. Create keys at
        https://www.morphllm.com/dashboard/api-keys.

````