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

# Get Job

> Get detailed information about a specific job.

**Authentication Required**: Requires `job:read` permission.
Includes full product keys list and error details.



## OpenAPI

````yaml /openapi/merchantops-public.json get /api/jobs/{job_id}
openapi: 3.1.0
info:
  description: >-
    Public API for the MerchantOps product catalog, pricing, and publishing
    surface.
  title: MerchantOps API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.merchantops.ai
security: []
paths:
  /api/jobs/{job_id}:
    get:
      tags:
        - Jobs
      summary: Get Job
      description: |-
        Get detailed information about a specific job.

        **Authentication Required**: Requires `job:read` permission.
        Includes full product keys list and error details.
      operationId: get_job
      parameters:
        - in: path
          name: job_id
          required: true
          schema:
            title: Job Id
            type: string
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: X-Organization-ID
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
        - in: cookie
          name: stytch_session
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Stytch Session
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobDetailResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    JobDetailResponse:
      description: Detailed response model with reference keys.
      properties:
        completed_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Job completion timestamp
          title: Completed At
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Job creation timestamp
          title: Created At
        duration_seconds:
          anyOf:
            - type: number
            - type: 'null'
          description: Job duration in seconds
          title: Duration Seconds
        error_details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: Detailed error information
          title: Error Details
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          description: 'DEPRECATED: Use ''errors'' array. Legacy error message'
          title: Error Message
        errors:
          description: Array of errors that occurred
          items:
            $ref: '#/components/schemas/JobErrorResponse'
          title: Errors
          type: array
        failed_items:
          description: Items that failed
          title: Failed Items
          type: integer
        job_id:
          description: Unique job identifier
          title: Job Id
          type: string
        job_type:
          description: Type of job (enrichment or crawl)
          title: Job Type
          type: string
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: Job metadata
          title: Metadata
        processed_items:
          description: Items successfully processed
          title: Processed Items
          type: integer
        progress_percentage:
          description: Progress percentage (0-100)
          title: Progress Percentage
          type: number
        reference_keys:
          description: List of entity reference keys
          items:
            $ref: '#/components/schemas/JobReferenceKeyResponse'
          title: Reference Keys
          type: array
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Job start timestamp
          title: Started At
        status:
          description: Current job status
          title: Status
          type: string
        success_rate:
          description: Success rate percentage (0-100)
          title: Success Rate
          type: number
        total_items:
          description: Total items to process
          title: Total Items
          type: integer
        triggered_by:
          anyOf:
            - type: string
            - type: 'null'
          description: User who triggered the job
          title: Triggered By
        warned_items:
          default: 0
          description: Items processed with warnings (e.g., expected target gaps)
          title: Warned Items
          type: integer
        warnings:
          description: Array of non-blocking warnings (same shape as errors)
          items:
            $ref: '#/components/schemas/JobErrorResponse'
          title: Warnings
          type: array
      required:
        - job_id
        - job_type
        - status
        - total_items
        - processed_items
        - failed_items
        - progress_percentage
        - success_rate
      title: JobDetailResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    JobErrorResponse:
      description: Response model for a single job error.
      properties:
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: Additional error context
          title: Details
        entity_key:
          description: Key of the entity that failed
          title: Entity Key
          type: string
        entity_type:
          description: Type of entity (product, document, etc.)
          title: Entity Type
          type: string
        error_type:
          description: Type of error
          title: Error Type
          type: string
        message:
          description: Human-readable error message
          title: Message
          type: string
        step:
          anyOf:
            - type: string
            - type: 'null'
          description: Step where the error occurred
          title: Step
        timestamp:
          description: When the error occurred (ISO 8601)
          title: Timestamp
          type: string
      required:
        - entity_key
        - entity_type
        - error_type
        - message
        - timestamp
      title: JobErrorResponse
      type: object
    JobReferenceKeyResponse:
      description: Response model for job reference keys.
      properties:
        entity_type:
          description: Type of entity (product, document, technology)
          title: Entity Type
          type: string
        key:
          description: Entity key/identifier
          title: Key
          type: string
      required:
        - entity_type
        - key
      title: JobReferenceKeyResponse
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````