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

# Get Job Details

> Get job status and details with config/stats split.

Returns runtime state for a single async job.

This is the primary endpoint for polling monitor/digest jobs and interpreting final outcomes.

## Response Semantics

The response separates data into:

* `config`: user-supplied job settings
* `stats`: runtime progress and result fields

`stats` can evolve while a job is `running`.

## Status Semantics

Possible `status` values:

* `pending`: accepted, not yet running
* `running`: actively processing
* `completed`: finished successfully
* `stopped`: ended without failure
* `failed`: ended due to runtime/stream failure

Recommended client handling:

* `completed`: consume final result fields
* `stopped`: inspect stop reason and restart if needed
* `failed`: inspect error context, fix inputs, retry

## Common Uses

* Poll `live-monitor` / `live-digest` in polling mode
* Validate final outcomes after webhook/SSE flows
* Inspect stop reasons and counters during debugging

## Workflow

1. Create a job with [Live Monitor](/api-reference/live-monitor) or [Live Digest](/api-reference/live-digest)
2. Poll `GET /jobs/{job_id}` until terminal status
3. Cancel early via [Cancel Job](/api-reference/jobs-delete) if needed

## Related

* Polling implementation: [Use Polling](/guides/poll-jobs)
* Lifecycle overview: [Job Lifecycle](/core-concepts/job-lifecycle)
* Failure analysis: [Debugging Playbook](/guides/debugging)


## OpenAPI

````yaml GET /jobs/{job_id}
openapi: 3.1.0
info:
  title: Trio API
  description: Reality as an API - Monitor YouTube Live streams with vision models
  version: 1.0.0
servers:
  - url: https://trio.machinefi.com/api
security: []
paths:
  /jobs/{job_id}:
    get:
      tags:
        - Jobs
      summary: Get Job
      description: Get job status and details with config/stats split.
      operationId: get_job_jobs__job_id__get
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobDetailResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            text/plain:
              example: Invalid HTTP request received.
        '404':
          description: Job not found or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    JobDetailResponse:
      properties:
        job_id:
          type: string
          format: uuid
          title: Job Id
        status:
          $ref: '#/components/schemas/JobStatus'
        job_type:
          type: string
          title: Job Type
        created_at:
          type: string
          title: Created At
        stream_url:
          type: string
          title: Stream Url
        config:
          additionalProperties: true
          type: object
          title: Config
          default: {}
        stats:
          additionalProperties: true
          type: object
          title: Stats
          default: {}
      type: object
      required:
        - job_id
        - status
        - job_type
        - created_at
        - stream_url
      title: JobDetailResponse
      description: Detailed response for a single job with config/stats split.
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: ErrorResponse
      description: Wrapper for error responses.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    JobStatus:
      type: string
      enum:
        - pending
        - running
        - stopped
        - completed
        - failed
      title: JobStatus
      description: Job status enum.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        remediation:
          type: string
          title: Remediation
      type: object
      required:
        - code
        - message
        - remediation
      title: ErrorDetail
      description: Standardized error response for better DX.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````