> ## 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 Trace Summary Endpoint

> Get trace summary for drawer header + Metrics/Metadata/Diagnostics tabs.
Lightweight endpoint that doesn't load full messages or spans.



## OpenAPI

````yaml openapi.json get /api/v1/traces/{trace_id}/summary
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:
  /api/v1/traces/{trace_id}/summary:
    get:
      tags:
        - Tracing
      summary: Get Trace Summary Endpoint
      description: |-
        Get trace summary for drawer header + Metrics/Metadata/Diagnostics tabs.
        Lightweight endpoint that doesn't load full messages or spans.
      operationId: get_trace_summary_endpoint_api_v1_traces__trace_id__summary
      parameters:
        - name: trace_id
          in: path
          required: true
          schema:
            type: string
            title: Trace Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TraceSummaryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyAuth: []
components:
  schemas:
    TraceSummaryResponse:
      properties:
        trace_id:
          type: string
          title: Trace Id
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
        project_id:
          type: string
          title: Project Id
        project_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Name
        app_name:
          anyOf:
            - type: string
            - type: 'null'
          title: App Name
        app_version:
          anyOf:
            - type: string
            - type: 'null'
          title: App Version
        environment:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment
        status:
          type: string
          title: Status
        created_at:
          type: string
          title: Created At
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
        ended_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Ended At
        duration_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Duration Ms
        total_cost:
          anyOf:
            - type: number
            - type: 'null'
          title: Total Cost
        total_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Tokens
        input_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Input Tokens
        output_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Output Tokens
        llm_calls:
          anyOf:
            - type: integer
            - type: 'null'
          title: Llm Calls
        tool_calls:
          anyOf:
            - type: integer
            - type: 'null'
          title: Tool Calls
        retrieval_calls:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retrieval Calls
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        custom_fields:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Custom Fields
        summary:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Summary
        diagnostics:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Diagnostics
        message_count:
          type: integer
          title: Message Count
          default: 0
        span_count:
          type: integer
          title: Span Count
          default: 0
      type: object
      required:
        - trace_id
        - project_id
        - status
        - created_at
      title: TraceSummaryResponse
      description: >-
        Lightweight summary for drawer header + Metrics/Metadata/Diagnostics
        tabs
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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`

````