> ## 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 failure taxonomy

> Get the full failure taxonomy with all buckets and subcategories



## OpenAPI

````yaml openapi.json get /v2/failure-analysis/taxonomy
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/taxonomy:
    get:
      tags:
        - Failure Analysis
      summary: Get failure taxonomy
      description: Get the full failure taxonomy with all buckets and subcategories
      operationId: get_taxonomy_v2_failure_analysis_taxonomy
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TaxonomyBucketResponse'
                title: Response Get Taxonomy V2 Failure Analysis Taxonomy Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyAuth: []
components:
  schemas:
    TaxonomyBucketResponse:
      properties:
        bucket_id:
          type: string
          title: Bucket Id
        bucket_name:
          type: string
          title: Bucket Name
        description:
          type: string
          title: Description
        subcategories:
          items:
            $ref: '#/components/schemas/TaxonomySubcategoryResponse'
          type: array
          title: Subcategories
      type: object
      required:
        - bucket_id
        - bucket_name
        - description
      title: TaxonomyBucketResponse
      description: Bucket with subcategories in taxonomy response.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TaxonomySubcategoryResponse:
      properties:
        subcategory_id:
          type: string
          title: Subcategory Id
        subcategory_name:
          type: string
          title: Subcategory Name
        description:
          type: string
          title: Description
        detection_approach:
          type: string
          title: Detection Approach
          description: '''deterministic'', ''llm_judge'', or ''hybrid'''
        applies_to:
          items:
            type: string
          type: array
          title: Applies To
          description: Applicable app types
        requires_retrieval:
          type: boolean
          title: Requires Retrieval
          default: false
        requires_tools:
          type: boolean
          title: Requires Tools
          default: false
        minimal_mode_compatible:
          type: boolean
          title: Minimal Mode Compatible
          default: false
        required_inputs:
          items:
            type: string
          type: array
          title: Required Inputs
          description: Required input types for this detector
        related_eval_metrics:
          items:
            type: string
          type: array
          title: Related Eval Metrics
        related_security_categories:
          items:
            type: string
          type: array
          title: Related Security Categories
        impact_score:
          type: integer
          title: Impact Score
          description: Impact score 0-3
          default: 1
        risk_category:
          type: string
          title: Risk Category
          description: '''high'', ''medium'', or ''low'''
          default: medium
      type: object
      required:
        - subcategory_id
        - subcategory_name
        - description
        - detection_approach
      title: TaxonomySubcategoryResponse
      description: Subcategory in taxonomy 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
  securitySchemes:
    APIKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Valiqor API key. Pass as Bearer token: `Authorization: Bearer
        vq-xxxxxxxxxxxxxxxxxxxx`

````