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

# Job event SSE



## OpenAPI

````yaml /api-reference/openapi.json get /v1/jobs/{id}/events
openapi: 3.1.0
info:
  description: >-
    Authenticated loopback remote execution and declarative schedules.
    Artifacts, schedule list/delete/trigger/backfill, /v1/arm, and POST /v1/run
    are absent.
  title: nika serve
  version: 0.116.2
servers:
  - url: http://127.0.0.1
security:
  - bearerAuth: []
paths:
  /v1/jobs/{id}/events:
    get:
      summary: Job event SSE
      parameters:
        - in: path
          name: id
          required: true
          schema:
            format: uuid
            type: string
        - $ref: '#/components/parameters/LastEventId'
      responses:
        '200':
          content:
            text/event-stream:
              schema:
                type: string
              x-nika-event-schema:
                $ref: '#/components/schemas/JobEvent'
          description: >-
            text/event-stream; sends bounded retry guidance and cursor-neutral
            heartbeat comments; Last-Event-ID replays only persisted events
            after that sequence; terminal data adds declared outputs and receipt
            when available; failures add redacted {code,message}
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error envelope
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error envelope
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error envelope
components:
  parameters:
    LastEventId:
      in: header
      name: Last-Event-ID
      required: false
      schema:
        pattern: ^(0|[1-9][0-9]*)$
        type: string
  schemas:
    Error:
      additionalProperties: false
      properties:
        error:
          additionalProperties: false
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
          type: object
      required:
        - error
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Exactly one Authorization: Bearer value from the token file'
      scheme: bearer
      type: http

````