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

# Get job status (alias)

> Alias for /runs/{run_id}/status - Poll the status of an async failure analysis job



## OpenAPI

````yaml openapi.json get /v2/failure-analysis/jobs/{job_id}/status
openapi: 3.1.0
info:
  title: Valiqor API
  description: >-
    The Valiqor API provides programmatic access to AI application testing,
    evaluation, failure analysis, and security auditing.


    ## Authentication


    All API requests require an API key passed as a Bearer token in the
    `Authorization` header:


    ```

    Authorization: Bearer vq-xxxxxxxxxxxxxxxxxxxx

    ```


    Get your API key from the [Valiqor Dashboard](https://app.valiqor.com) or
    via `valiqor login` CLI command.


    ## Base URL


    ```

    https://api.valiqor.com

    ```
  version: 2.0.0
  contact:
    name: Valiqor Support
    url: https://valiqor.com
    email: support@valiqor.com
servers:
  - url: https://api.valiqor.com
    description: Production
security: []
tags:
  - name: Authentication
    description: >-
      API key validation, user management, device authorization flow, and CLI
      authentication. All SDK requests require a valid API key passed as a
      Bearer token.
  - name: Evaluation
    description: >-
      Run quality evaluations on datasets or traces. Compute metrics like
      faithfulness, relevance, coherence, and more. Compare runs and track
      trends over time.
  - name: Security
    description: >-
      Security audits (S1-S23 safety categories) and red team simulations.
      Detect prompt injection, harmful content, data leakage, and other
      vulnerabilities.
  - name: Failure Analysis
    description: >-
      Analyze AI app failures with root cause detection, severity scoring, and
      actionable fix suggestions. Supports both trace-based (full) and
      dataset-based (minimal) analysis modes.
  - name: Tracing
    description: >-
      Upload and query execution traces from AI applications. Traces capture
      messages, spans, tool calls, retrievals, and LLM interactions for
      debugging and evaluation.
  - name: Scanner
    description: >-
      Upload code scans to detect AI app features, workflows, and prompts.
      Generates evaluation configurations automatically from your codebase.
  - name: Projects
    description: >-
      Create and manage projects. Projects are containers that organize
      evaluation runs, security audits, traces, and failure analysis results.
paths:
  /v2/failure-analysis/jobs/{job_id}/status:
    get:
      tags:
        - Failure Analysis
      summary: Get job status (alias)
      description: >-
        Alias for /runs/{run_id}/status - Poll the status of an async failure
        analysis job
      operationId: get_job_status_alias_v2_failure_analysis_jobs__job_id__status
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/app__failure_analysis__api__models__JobStatusResponse
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyAuth: []
components:
  schemas:
    app__failure_analysis__api__models__JobStatusResponse:
      properties:
        job_id:
          type: string
          title: Job Id
        job_type:
          type: string
          title: Job Type
          default: failure_analysis
        status:
          type: string
          title: Status
        progress_percent:
          type: number
          title: Progress Percent
          default: 0
        current_item:
          type: integer
          title: Current Item
          default: 0
        total_items:
          type: integer
          title: Total Items
          default: 0
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
        finished_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Finished At
        estimated_remaining_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Estimated Remaining Seconds
        result:
          anyOf:
            - $ref: '#/components/schemas/FailureAnalysisResponse'
            - type: 'null'
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
      type: object
      required:
        - job_id
        - status
      title: JobStatusResponse
      description: Response for FA job status queries.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FailureAnalysisResponse:
      properties:
        run_id:
          type: string
          title: Run Id
        status:
          type: string
          title: Status
          description: '''completed'', ''processing'', ''failed'''
        mode:
          type: string
          title: Mode
          description: '''minimal'' or ''full'''
        input_type:
          type: string
          title: Input Type
          description: '''trace'', ''json'', or ''csv'''
        feature_kind:
          type: string
          title: Feature Kind
          description: Detected or specified app type
        summary:
          $ref: '#/components/schemas/FailureSummary'
        failure_tags:
          items:
            $ref: '#/components/schemas/FailureTagResponse'
          type: array
          title: Failure Tags
        inputs:
          items:
            $ref: '#/components/schemas/FARunInputResponse'
          type: array
          title: Inputs
          description: Original input items with per-item failure stats
        eval_metrics:
          anyOf:
            - additionalProperties:
                type: number
              type: object
            - type: 'null'
          title: Eval Metrics
          description: Evaluation metric scores
        eval_run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Eval Run Id
          description: ID of linked evaluation run
        security_flags:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Security Flags
          description: Security category flags
        security_batch_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Security Batch Id
          description: ID of linked security audit batch
        detectors_run:
          items:
            type: string
          type: array
          title: Detectors Run
          description: Subcategories that were analyzed
        detectors_skipped:
          items:
            type: string
          type: array
          title: Detectors Skipped
          description: Subcategories skipped (not applicable)
        duration_ms:
          type: integer
          title: Duration Ms
          default: 0
        tokens_used:
          type: integer
          title: Tokens Used
          default: 0
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - run_id
        - status
        - mode
        - input_type
        - feature_kind
        - summary
      title: FailureAnalysisResponse
      description: Full failure analysis response.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    FailureSummary:
      properties:
        primary_failure:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Failure
          description: Subcategory ID of highest severity failure
        primary_failure_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Failure Name
          description: Human-readable name of primary failure
        overall_severity:
          type: number
          title: Overall Severity
          description: Overall severity score
          default: 0
        overall_confidence:
          type: number
          title: Overall Confidence
          description: Overall confidence score
          default: 0
        total_failures_detected:
          type: integer
          title: Total Failures Detected
          default: 0
        total_passes:
          type: integer
          title: Total Passes
          default: 0
        total_uncertain:
          type: integer
          title: Total Uncertain
          default: 0
        total_items:
          type: integer
          title: Total Items
          description: Total number of input items analyzed
          default: 0
        items_with_failures:
          type: integer
          title: Items With Failures
          description: Number of items with at least one failure
          default: 0
        items_all_passed:
          type: integer
          title: Items All Passed
          description: Number of items with zero failures
          default: 0
        buckets_affected:
          items:
            type: string
          type: array
          title: Buckets Affected
          description: Bucket IDs with failures
        should_alert:
          type: boolean
          title: Should Alert
          description: Whether any failure should trigger alert
          default: false
        should_gate_ci:
          type: boolean
          title: Should Gate Ci
          description: Whether any failure should gate CI
          default: false
        needs_human_review:
          type: boolean
          title: Needs Human Review
          description: Whether manual review is recommended
          default: false
      type: object
      title: FailureSummary
      description: Summary of failure analysis results.
    FailureTagResponse:
      properties:
        tag_id:
          type: string
          title: Tag Id
        bucket_id:
          type: string
          title: Bucket Id
          description: Parent bucket ID (L1 category)
        bucket_name:
          type: string
          title: Bucket Name
          description: Human-readable bucket name
        subcategory_id:
          type: string
          title: Subcategory Id
          description: Failure subcategory ID (L2 category)
        subcategory_name:
          type: string
          title: Subcategory Name
          description: Human-readable subcategory name
        item_index:
          anyOf:
            - type: integer
            - type: 'null'
          title: Item Index
          description: 0-based index of the dataset item this tag belongs to
        decision:
          type: string
          title: Decision
          description: '''pass'', ''fail'', or ''unsure'''
        severity:
          type: number
          maximum: 5
          minimum: 0
          title: Severity
          description: Severity score 0-5
        confidence:
          type: number
          maximum: 1
          minimum: 0
          title: Confidence
          description: Confidence score 0-1
        detector_type_used:
          type: string
          title: Detector Type Used
          description: '''deterministic'', ''llm_judge'', or ''hybrid'''
        judge_rationale:
          anyOf:
            - type: string
            - type: 'null'
          title: Judge Rationale
          description: LLM judge explanation
        scoring_breakdown:
          $ref: '#/components/schemas/ScoringBreakdownResponse'
        eval_metric_values:
          additionalProperties:
            type: number
          type: object
          title: Eval Metric Values
          description: Correlated eval metric scores
        evidence_items:
          items:
            $ref: '#/components/schemas/EvidenceItemResponse'
          type: array
          title: Evidence Items
      type: object
      required:
        - tag_id
        - bucket_id
        - bucket_name
        - subcategory_id
        - subcategory_name
        - decision
        - severity
        - confidence
        - detector_type_used
        - scoring_breakdown
      title: FailureTagResponse
      description: Single failure tag response.
    FARunInputResponse:
      properties:
        item_index:
          type: integer
          title: Item Index
          description: 0-based index of the item in the dataset
        input_text:
          type: string
          title: Input Text
          description: Original user prompt/query
        output_text:
          type: string
          title: Output Text
          description: Original model response
        input_preview:
          type: string
          title: Input Preview
          description: Truncated input text for table display
          default: ''
        output_preview:
          type: string
          title: Output Preview
          description: Truncated output text for table display
          default: ''
        context:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Context
          description: Retrieved documents/chunks
        tool_calls:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Tool Calls
          description: Tool invocations
        trace_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Trace Id
          description: Trace ID if trace-mode
        failure_count:
          type: integer
          title: Failure Count
          description: Number of failure tags for this item
          default: 0
        pass_count:
          type: integer
          title: Pass Count
          description: Number of pass tags for this item
          default: 0
        unsure_count:
          type: integer
          title: Unsure Count
          description: Number of unsure tags for this item
          default: 0
        max_severity:
          type: number
          title: Max Severity
          description: Highest severity among this item's failure tags
          default: 0
      type: object
      required:
        - item_index
        - input_text
        - output_text
      title: FARunInputResponse
      description: Original input item with per-item failure stats.
    ScoringBreakdownResponse:
      properties:
        impact:
          type: integer
          title: Impact
          description: Impact level 0-3
        risk:
          type: integer
          title: Risk
          description: Risk level 0-2
        frequency_weight:
          type: number
          title: Frequency Weight
          default: 1
        security_override:
          anyOf:
            - type: string
            - type: 'null'
          title: Security Override
        deterministic_weight:
          type: number
          title: Deterministic Weight
          default: 0
        judge_weight:
          type: number
          title: Judge Weight
          default: 0
        security_weight:
          type: number
          title: Security Weight
          default: 0
        metric_agreement_bonus:
          type: number
          title: Metric Agreement Bonus
          default: 0
        disagreement_penalty:
          type: number
          title: Disagreement Penalty
          default: 0
        final_severity:
          type: number
          title: Final Severity
        final_confidence:
          type: number
          title: Final Confidence
      type: object
      required:
        - impact
        - risk
        - final_severity
        - final_confidence
      title: ScoringBreakdownResponse
      description: Scoring breakdown for a failure tag.
    EvidenceItemResponse:
      properties:
        item_id:
          type: string
          title: Item Id
        evidence_type:
          type: string
          title: Evidence Type
          description: 'Type: ''rationale'', ''unsupported_claim'', ''violation'', etc.'
        description:
          type: string
          title: Description
        content_snippet:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Snippet
        source:
          type: string
          title: Source
        confidence:
          type: number
          maximum: 1
          minimum: 0
          title: Confidence
          default: 1
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
      type: object
      required:
        - item_id
        - evidence_type
        - description
        - source
      title: EvidenceItemResponse
      description: Evidence item in a failure tag response.
  securitySchemes:
    APIKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Valiqor API key. Pass as Bearer token: `Authorization: Bearer
        vq-xxxxxxxxxxxxxxxxxxxx`

````