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

# Get Validation Plot Data

> Return decimated trace data for a single validation or data-fit plot.

Reads the stored ``validation_plot_config`` from the job's metadata blob,
extracts the requested plot, filters to the given x-range, and downsamples
to at most ``max_points`` per trace. Supports semantic zoom: callers refetch
with ``x_min``/``x_max`` set to the current viewport on each zoom event.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json get /pipelines/validations/{job_id}/plot_data
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /pipelines/validations/{job_id}/plot_data:
    get:
      tags:
        - Pipeline
      summary: Get Validation Plot Data
      description: >-
        Return decimated trace data for a single validation or data-fit plot.


        Reads the stored ``validation_plot_config`` from the job's metadata
        blob,

        extracts the requested plot, filters to the given x-range, and
        downsamples

        to at most ``max_points`` per trace. Supports semantic zoom: callers
        refetch

        with ``x_min``/``x_max`` set to the current viewport on each zoom event.
      operationId: get_validation_plot_data_pipelines_validations__job_id__plot_data_get
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            title: Job Id
        - name: objective_name
          in: query
          required: true
          schema:
            type: string
            description: Objective name within validation_plot_config
            title: Objective Name
          description: Objective name within validation_plot_config
        - name: plot_index
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: Index into the plots list for this objective
            default: 0
            title: Plot Index
          description: Index into the plots list for this objective
        - name: max_points
          in: query
          required: false
          schema:
            type: integer
            maximum: 10000
            minimum: 100
            description: Maximum points per trace
            default: 2000
            title: Max Points
          description: Maximum points per trace
        - name: x_min
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            description: Lower x-range bound (inclusive)
            title: X Min
          description: Lower x-range bound (inclusive)
        - name: x_max
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            description: Upper x-range bound (inclusive)
            title: X Max
          description: Upper x-range bound (inclusive)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationPlotDataResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationPlotDataResponse:
      properties:
        traces:
          items:
            $ref: '#/components/schemas/ValidationPlotTrace'
          type: array
          title: Traces
        x_full_min:
          anyOf:
            - type: number
            - type: 'null'
          title: X Full Min
        x_full_max:
          anyOf:
            - type: number
            - type: 'null'
          title: X Full Max
        layout:
          additionalProperties: true
          type: object
          title: Layout
      type: object
      required:
        - traces
        - layout
      title: ValidationPlotDataResponse
      description: >-
        Response from GET /pipelines/{validations|datafits}/{job_id}/plot_data.


        Contains decimated trace data for a single validation plot, filtered to

        the requested x-range and downsampled to at most ``max_points`` per
        trace.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationPlotTrace:
      properties:
        name:
          type: string
          title: Name
        x:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: X
        'y':
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: 'Y'
      type: object
      required:
        - name
        - x
        - 'y'
      title: ValidationPlotTrace
      description: Single decimated trace returned by the validation plot data endpoint.
    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

````