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

# Get Parse Eval Run Result

> Get a completed run's result: its overall score, each rubric item's score and each document's scores or error, with the config it tested. Scores are not rounded. It is kept as your organization's retention keeps results.



## OpenAPI

````yaml /api-reference/v2/openapi.yml get /eval/run/parse/{run_id}/result
openapi: 3.1.0
info:
  title: Pulse API
  description: >-
    Agentic document infrastructure for the enterprise. The Pulse API turns
    complex documents into AI-ready data, such as Markdown, structured JSON and
    bounding boxes.
  version: '2'
servers:
  - url: https://api.runpulse.com
    description: Default Pulse API base URL
security: []
tags:
  - name: Parse
    description: Parse a document's text, tables and figures.
  - name: Batch parse
    description: Parse many documents with one config.
  - name: Extract
    description: Extract structured data from a parsed document.
  - name: Split
    description: Find each topic's pages in a parsed document.
  - name: Tables
    description: Merge a parsed document's tables across pages.
  - name: Charts
    description: Read the charts in a parsed document.
  - name: Classify
    description: Sort a document into the categories you define.
  - name: Pipeline
    description: Run a parse and its follow-on steps as one job.
  - name: Usage
    description: Check the pages and credits your organization has used.
  - name: Webhook
    description: Get notified when your organization's jobs change status.
  - name: Eval
    description: Score parse and extract output against ground truth.
  - name: Eval datasets
    description: The documents an eval grades, each with its ground truth.
  - name: Eval runs
    description: Run an eval with a config and read its scores.
  - name: Organization settings
    description: Read and change your organization's name, address and default API version.
paths:
  /eval/run/parse/{run_id}/result:
    get:
      tags:
        - Eval runs
      summary: Get Parse Eval Run Result
      description: >-
        Get a completed run's result: its overall score, each rubric item's
        score and each document's scores or error, with the config it tested.
        Scores are not rounded. It is kept as your organization's retention
        keeps results.
      operationId: getParseEvalRunResult
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            description: The `run_id` that starting the run returned.
            title: Run Id
          description: The `run_id` that starting the run returned.
        - name: Pulse-Version
          in: header
          required: false
          schema:
            type: string
            default: '2'
            title: Pulse-Version
          examples:
            default:
              value: '2'
      responses:
        '200':
          description: The run's result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParseRunResult'
        '400':
          description: >-
            [`REQUEST_INVALID`](https://docs.runpulse.com/errors/request-invalid):
            a query parameter this route doesn't take. `Pulse-Version` names a
            version this API doesn't serve
            ([`UNSUPPORTED_VERSION`](https://docs.runpulse.com/errors/unsupported-version)).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: The request's id; the problem's `request_id`.
              schema:
                type: string
          x-pulse-errors:
            - REQUEST_INVALID
            - UNSUPPORTED_VERSION
        '401':
          description: >-
            [`CREDENTIALS_INVALID`](https://docs.runpulse.com/errors/credentials-invalid):
            the API key is missing or not valid.
            [`API_KEY_INACTIVE`](https://docs.runpulse.com/errors/api-key-inactive):
            the API key is inactive; create a new one.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: The request's id; the problem's `request_id`.
              schema:
                type: string
          x-pulse-errors:
            - CREDENTIALS_INVALID
            - API_KEY_INACTIVE
        '403':
          description: >-
            [`ACCOUNT_SUSPENDED`](https://docs.runpulse.com/errors/account-suspended):
            your account is suspended.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: The request's id; the problem's `request_id`.
              schema:
                type: string
          x-pulse-errors:
            - ACCOUNT_SUSPENDED
        '404':
          description: >-
            [`RESOURCE_NOT_FOUND`](https://docs.runpulse.com/errors/resource-not-found):
            your organization has no parse run with this id. No endpoint answers
            this path
            ([`ROUTE_NOT_FOUND`](https://docs.runpulse.com/errors/route-not-found)).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: The request's id; the problem's `request_id`.
              schema:
                type: string
          x-pulse-errors:
            - RESOURCE_NOT_FOUND
            - ROUTE_NOT_FOUND
        '409':
          description: >-
            [`JOB_NOT_FINISHED`](https://docs.runpulse.com/errors/job-not-finished):
            the run is still processing; poll its status.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: The request's id; the problem's `request_id`.
              schema:
                type: string
          x-pulse-errors:
            - JOB_NOT_FINISHED
        '410':
          description: >-
            [`JOB_CANCELED`](https://docs.runpulse.com/errors/job-canceled): the
            run was canceled, so it has no result.
            [`RESULT_EXPIRED`](https://docs.runpulse.com/errors/result-expired):
            the result expired under your retention.
            [`RESULT_ALREADY_FETCHED`](https://docs.runpulse.com/errors/result-already-fetched):
            your organization's retention deletes a result on its first read,
            and this one was read.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: The request's id; the problem's `request_id`.
              schema:
                type: string
          x-pulse-errors:
            - JOB_CANCELED
            - RESULT_EXPIRED
            - RESULT_ALREADY_FETCHED
        '422':
          description: >-
            [`NO_DOCUMENT_GRADED`](https://docs.runpulse.com/errors/no-document-graded):
            the run failed, and this is its error: no document could be graded,
            each because of what was sent, such as a link or a ground truth
            refused.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: The request's id; the problem's `request_id`.
              schema:
                type: string
          x-pulse-errors:
            - NO_DOCUMENT_GRADED
        '500':
          description: >-
            [`PROCESSING_FAILED`](https://docs.runpulse.com/errors/processing-failed):
            the run failed, and this is its error: no document could be graded,
            or it couldn't be finished. An unexpected error on Pulse's side
            ([`SERVER_ERROR`](https://docs.runpulse.com/errors/server-error));
            retry.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: The request's id; the problem's `request_id`.
              schema:
                type: string
          x-pulse-errors:
            - PROCESSING_FAILED
            - SERVER_ERROR
        '503':
          description: >-
            [`SERVICE_UNAVAILABLE`](https://docs.runpulse.com/errors/service-unavailable):
            a service the request needs couldn't be reached; retry. On a
            self-hosted install that hasn't been activated yet,
            [`LICENSE_NOT_ACTIVATED`](https://docs.runpulse.com/errors/license-not-activated).
            On a self-hosted install whose license is invalid or expired,
            [`LICENSE_INVALID`](https://docs.runpulse.com/errors/license-invalid).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: The request's id; the problem's `request_id`.
              schema:
                type: string
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: string
          x-pulse-errors:
            - SERVICE_UNAVAILABLE
            - LICENSE_NOT_ACTIVATED
            - LICENSE_INVALID
      security:
        - ApiKey: []
components:
  schemas:
    ParseRunResult:
      properties:
        run_id:
          type: string
          title: Run Id
          description: The run's id, `eval-run-<uuid>`.
        name:
          type: string
          title: Name
          description: A label for the run. It need not be unique.
        eval_id:
          type: string
          title: Eval Id
          description: The eval the run graded.
        created_at:
          type: string
          title: Created At
          description: When the run was started.
        completed_at:
          type: string
          title: Completed At
          description: When the run ended.
        config:
          $ref: '#/components/schemas/ParseConfig'
          description: >-
            The config the run tested, as Pulse read it, with its defaults
            shown.
        overall:
          type: number
          maximum: 1
          minimum: 0
          title: Overall
          description: >-
            The average of the documents' `overall`, each document counting
            once; a document that couldn't be graded is left out. Absent when no
            document has one.
        scores:
          $ref: '#/components/schemas/ParseScores'
          description: >-
            Each rubric item's average over the documents graded on it; an item
            graded on none is left out.
        documents:
          items:
            $ref: '#/components/schemas/ParseResultDocument'
          type: array
          title: Documents
          description: Every document, in the dataset's order.
      additionalProperties: false
      type: object
      required:
        - run_id
        - name
        - eval_id
        - created_at
        - completed_at
        - config
        - scores
        - documents
      title: ParseRunResult
      description: >-
        A completed parse run's scores: overall, for each rubric item and for
        each document.
    Problem:
      additionalProperties: false
      description: >-
        Why the request or the job failed. Branch on `code`; quote `request_id`
        to support.
      properties:
        type:
          description: 'This code''s page: what it means and what to do.'
          title: Type
          type: string
        title:
          description: A short summary of the code, the same for every occurrence.
          title: Title
          type: string
        status:
          description: The HTTP status the code answers with.
          title: Status
          type: integer
        detail:
          description: What happened this time.
          title: Detail
          type: string
        instance:
          description: 'This occurrence: the request''s URN, `urn:pulse:request:<id>`.'
          title: Instance
          type: string
        code:
          description: The stable error code, e.g. `REQUEST_INVALID`. Branch on it.
          title: Code
          type: string
        request_id:
          description: >-
            The request that failed, as `X-Request-Id` named it; for a failed
            job, the request that created it. Quote it to support.
          title: Request Id
          type: string
        retryable:
          description: Whether the same request may succeed if sent again.
          title: Retryable
          type: boolean
        retry_after:
          description: Seconds to wait before retrying, as `Retry-After` says.
          title: Retry After
          type: integer
        errors:
          description: Each refused part of the request.
          items:
            $ref: '#/components/schemas/FieldIssue'
          title: Errors
          type: array
        resource:
          description: 'What wasn''t found: `job`, `batch`, `webhook`, `config`, …'
          title: Resource
          type: string
        reason:
          description: The cause within the code.
          title: Reason
          type: string
        provider:
          description: >-
            The connected service the `file_url` is in: `microsoft`, `google`,
            `box` or `aws_s3`.
          title: Provider
          type: string
        parse_id:
          description: The parse the request recorded.
          title: Parse Id
          type: string
        extract_id:
          description: The extraction it recorded.
          title: Extract Id
          type: string
        split_id:
          description: The split it recorded.
          title: Split Id
          type: string
        classify_id:
          description: The classification it recorded.
          title: Classify Id
          type: string
        tables_id:
          description: The tables job it recorded.
          title: Tables Id
          type: string
        charts_id:
          description: The charts job it recorded.
          title: Charts Id
          type: string
        pipeline_id:
          description: The pipeline it recorded.
          title: Pipeline Id
          type: string
        batch_id:
          description: The batch it recorded.
          title: Batch Id
          type: string
        filename:
          description: The file refused.
          title: Filename
          type: string
        declared_type:
          description: The type its name declared.
          title: Declared Type
          type: string
        detected:
          description: The type its contents are.
          title: Detected
          type: string
        supported_types:
          description: The types accepted.
          items:
            type: string
          title: Supported Types
          type: array
        supported:
          description: The values accepted.
          items:
            type: string
          title: Supported
          type: array
        max_size_mb:
          anyOf:
            - type: integer
            - type: number
          description: The largest size accepted.
          title: Max Size Mb
        file_size_mb:
          anyOf:
            - type: integer
            - type: number
          description: The file's size.
          title: File Size Mb
        plan_name:
          description: Your organization's plan.
          title: Plan Name
          type: string
        pages_used:
          anyOf:
            - type: integer
            - type: number
          description: Pages used this period.
          title: Pages Used
        page_allowance:
          anyOf:
            - type: integer
            - type: number
          description: Pages the plan allows.
          title: Page Allowance
        upgrade_url:
          description: Where to change your plan.
          title: Upgrade Url
          type: string
        action_required:
          description: What to do to continue.
          title: Action Required
          type: string
        billing_info:
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
          description: Your organization's billing state, as the gate read it.
          title: Billing Info
          type: object
      required:
        - type
        - title
        - status
        - code
        - retryable
      title: Problem
      type: object
    ParseConfig:
      additionalProperties: false
      description: The options for a parse.
      properties:
        model:
          description: The model to parse with.
          enum:
            - ultra-2
          title: Model
          type: string
        storage:
          $ref: '#/components/schemas/Storage'
          description: Whether the result is saved, and where.
        page_range:
          description: >-
            The pages to parse, listed as numbers and ranges from 1, such as
            `1-3, 6, 8-end` (`end` is the last page). Defaults to every page. A
            spreadsheet's pages are its sheets, hidden ones included.
          pattern: ^ *[0-9]+ *(- *([0-9]+|end) *)?(, *[0-9]+ *(- *([0-9]+|end) *)?)*$
          title: Page Range
          type: string
        prompt:
          description: Extra instructions for reading the document, added to Pulse's own.
          minLength: 1
          title: Prompt
          type: string
        extensions:
          $ref: '#/components/schemas/Extensions'
          default:
            additional_formats: []
            footnotes: false
            document_metadata: false
            word_level_bounding_boxes: false
            chunking:
              strategies: []
          description: Extra outputs to add to the result.
        enhancements:
          $ref: '#/components/schemas/Enhancements'
          default:
            detect: []
            figures:
              describe: []
              include: false
              prompt: null
            refine:
              modes: []
            spreadsheet:
              cell_formatting: false
              include_hidden: []
              raw_values: false
              trim_empty: []
      required:
        - model
      title: ParseConfig { model, storage, page_range, 3 more }
      type: object
    ParseScores:
      properties:
        words:
          type: number
          maximum: 1
          minimum: 0
          title: Words
          description: >-
            How many words of the text came out right, from 0 to 1; numbers,
            tick boxes and text in tables are scored apart. Absent when it
            wasn't graded.
        layout:
          type: number
          maximum: 1
          minimum: 0
          title: Layout
          description: >-
            How closely each block's box overlaps the ground truth's box, from 0
            to 1. The overlap itself is the credit, so only the same box earns
            1. Absent when it wasn't graded.
        tables:
          type: number
          maximum: 1
          minimum: 0
          title: Tables
          description: >-
            How many table cells hold the right text in the right row and
            column, from 0 to 1. Absent when it wasn't graded.
        structure:
          type: number
          maximum: 1
          minimum: 0
          title: Structure
          description: >-
            The share of blocks labelled as the right kind, a heading also under
            the right heading, from 0 to 1. Absent when it wasn't graded.
        text_styles:
          type: number
          maximum: 1
          minimum: 0
          title: Text Styles
          description: >-
            How well bold, italic, underline, strikethrough and highlight fall
            on the right characters, from 0 to 1. Absent when it wasn't graded.
        formulas:
          type: number
          maximum: 1
          minimum: 0
          title: Formulas
          description: >-
            How much of each displayed formula is right, symbol by symbol, from
            0 to 1. Absent when it wasn't graded.
        numbers:
          type: number
          maximum: 1
          minimum: 0
          title: Numbers
          description: >-
            How many numbers, in text and in tables, came out right as printed,
            from 0 to 1. Absent when it wasn't graded.
        checkboxes:
          type: number
          maximum: 1
          minimum: 0
          title: Checkboxes
          description: >-
            How many tick boxes, in text and in tables, are in the right state,
            from 0 to 1. Absent when it wasn't graded.
        paragraphs:
          type: number
          maximum: 1
          minimum: 0
          title: Paragraphs
          description: >-
            How well the output's blocks start where the ground truth's
            paragraphs start, from 0 to 1. Absent when it wasn't graded.
      additionalProperties: false
      type: object
      title: ParseScores
      description: >-
        A score on each parse rubric item. An item with nothing to grade is left
        out.
    ParseResultDocument:
      properties:
        document_id:
          type: string
          title: Document Id
          description: The document's id.
        parse_id:
          type: string
          title: Parse Id
          description: The parse this run graded. Absent until it has one.
        overall:
          type: number
          maximum: 1
          minimum: 0
          title: Overall
          description: >-
            The average of the document's item scores, weighted by the eval's
            weights, over the items graded on it. Absent when they all weigh 0
            or the document couldn't be graded.
        scores:
          $ref: '#/components/schemas/ParseScores'
          description: >-
            Its score on each rubric item graded on it, an item weighing 0
            included; an item with nothing to grade is left out. Absent when it
            couldn't be graded.
        error:
          $ref: '#/components/schemas/Problem'
          description: Why it couldn't be graded. Absent when it was graded.
      additionalProperties: false
      type: object
      required:
        - document_id
      title: ParseResultDocument
      description: >-
        One document of a parse run's result: its scores, or why it couldn't be
        graded.
    FieldIssue:
      additionalProperties: false
      description: One refused part of the request.
      properties:
        field:
          description: >-
            The part as sent: a body field's path
            (`config.enhancements.detect[1]`), or `query.<name>` /
            `header.<name>`.
          title: Field
          type: string
        pointer:
          description: >-
            A body field as a JSON Pointer (RFC 6901), e.g.
            `#/config/enhancements/detect/1`. Absent for a query parameter or
            header.
          title: Pointer
          type: string
        issue:
          description: What is wrong with it.
          title: Issue
          type: string
      required:
        - field
        - issue
      title: FieldIssue
      type: object
    JsonValue: {}
    Storage:
      additionalProperties: false
      description: >-
        Whether the result is saved to your organization's Pulse dashboard, and
        in which folder.
      properties:
        save:
          description: >-
            `true` saves the result, and `false` keeps it only until
            `expires_at`, 24 hours by default. If omitted, it's saved unless
            your organization turned saving off, which also overrides `true`.
            Free plans can't send `false`.
          title: Save
          type: boolean
        folder_id:
          description: >-
            The dashboard folder to save the result in. Sending it saves the
            result, so it's refused with `save: false`. Another organization's
            folder is ignored.
          minLength: 1
          title: Folder Id
          type: string
      title: Storage { save, folder_id }
      type: object
    Extensions:
      additionalProperties: false
      description: >-
        Extra outputs to add to the result, each under the result's
        `extensions`.
      properties:
        additional_formats:
          default: []
          description: >-
            Other formats to return the document in, under
            `extensions.additional_formats`. Choose from `html` (the Markdown as
            HTML), `xml` (the elements, by page) and `tagged_md` (the Markdown
            with element ids).
          items:
            enum:
              - html
              - xml
              - tagged_md
            type: string
          title: Additional Formats
          type: array
        footnotes:
          default: false
          description: >-
            Set to `true` to find the document's footnotes and link each one to
            the elements that cite it, in `extensions.footnotes`.
          title: Footnotes
          type: boolean
        document_metadata:
          default: false
          description: >-
            Set to `true` to return the metadata the file carries, such as its
            title, authors or a PDF's form fields, in
            `extensions.document_metadata`.
          title: Document Metadata
          type: boolean
        word_level_bounding_boxes:
          default: false
          description: >-
            Set to `true` to return every word with its outline, as `Word`
            elements in `extensions.word_level_bounding_boxes`. This option must
            be enabled for your organization.
          title: Word Level Bounding Boxes
          type: boolean
        chunking:
          $ref: '#/components/schemas/Chunking'
          default:
            strategies: []
      title: Extensions { additional_formats, footnotes, document_metadata, 2 more }
      type: object
    Enhancements:
      additionalProperties: false
      description: Optional passes that add to the parse or correct it.
      properties:
        detect:
          default: []
          description: >-
            Send `["selections"]` to detect checkboxes, radio buttons and
            similar controls, and mark each ticked one `selected: true`.
          items:
            const: selections
            type: string
          title: Detect
          type: array
        figures:
          $ref: '#/components/schemas/Figures'
          default:
            describe: []
            include: false
            prompt: null
          description: Descriptions and images of the document's figures.
        refine:
          $ref: '#/components/schemas/Refine'
          default:
            modes: []
          description: Passes that correct the parse.
        spreadsheet:
          $ref: '#/components/schemas/Spreadsheet'
          default:
            include_hidden: []
            trim_empty: []
            raw_values: false
            cell_formatting: false
          description: Options for spreadsheets.
      title: Enhancements { detect, figures, refine, 1 more }
      type: object
    Chunking:
      additionalProperties: false
      properties:
        strategies:
          default: []
          items:
            $ref: '#/components/schemas/SemanticStrategy'
          title: Strategies
          type: array
      title: Chunking
      type: object
    Figures:
      additionalProperties: false
      description: >-
        What to return for the document's figures: its charts, diagrams, photos
        and other pictures.
      properties:
        describe:
          default: []
          description: >-
            Send `["all"]` to describe every figure in its `description`. A
            figure that can't be described gets none, with a
            `FIGURE_DESCRIPTIONS_SKIPPED` warning on the result.
          items:
            const: all
            type: string
          title: Describe
          type: array
        include:
          default: false
          description: >-
            Set to `true` to return each figure's image, base64-encoded, in its
            `figure_base64`.
          title: Include
          type: boolean
        prompt:
          description: >-
            Extra instructions for the figure descriptions. Used only with
            `describe`.
          minLength: 1
          title: Prompt
          type: string
      title: Figures { describe, include, prompt }
      type: object
    Refine:
      additionalProperties: false
      description: Passes that check the parse against the page images and correct it.
      properties:
        modes:
          default: []
          description: >-
            The passes to run, each mode at most once. A page they can't correct
            is returned as parsed, with a `REFINE_SKIPPED` warning on the
            result.
          items:
            $ref: '#/components/schemas/RefineMode'
          title: Modes
          type: array
      title: Refine
      type: object
    Spreadsheet:
      additionalProperties: false
      description: Options for spreadsheets. Other documents ignore them.
      properties:
        include_hidden:
          default: []
          description: >-
            The hidden `rows`, `columns` or `sheets` to read. By default, hidden
            parts are skipped.
          items:
            enum:
              - rows
              - columns
              - sheets
            type: string
          title: Include Hidden
          type: array
        trim_empty:
          default: []
          description: >-
            Send `rows`, `columns` or both to drop empty but formatted ones past
            a sheet's last value. Some exported workbooks carry thousands of
            them. Kept cells keep their addresses. Applies to `.xlsx` and
            `.xlsm` files only.
          items:
            enum:
              - rows
              - columns
            type: string
          title: Trim Empty
          type: array
        raw_values:
          default: false
          description: >-
            Set to `true` to add each cell's underlying value as its
            `raw_value`, such as `1201.67` where `content` shows `$1,202`. The
            markdown then writes numbers as stored too; percentages and dates
            stay as shown.
          title: Raw Values
          type: boolean
        cell_formatting:
          default: false
          description: >-
            Set to `true` to add each cell's formatting (font, fill, borders and
            alignment) as its `style`.
          title: Cell Formatting
          type: boolean
      title: Spreadsheet { include_hidden, trim_empty, raw_values, 1 more }
      type: object
    SemanticStrategy:
      additionalProperties: false
      description: >-
        Chunks cut where the meaning of neighboring sentences drifts apart. A
        chunk longer than

        `max_characters` is cut again. Without `max_characters`, chunk length
        has no cap.
      properties:
        strategy:
          const: semantic
          title: Strategy
          type: string
        max_characters:
          maximum: 100000
          minimum: 20
          title: Max Characters
          type: integer
      required:
        - strategy
      title: SemanticStrategy { strategy, max_characters }
      type: object
    RefineMode:
      additionalProperties: false
      description: >-
        One pass that checks the parsed content against the page images and
        corrects it.
      properties:
        mode:
          description: >-
            `tables` fixes cells and structure. `formatting` fixes bold,
            headings, lists and math, not words. `text` fixes misread words and
            numbers, not formatting. `layout` fixes a figure or table read as
            the wrong kind.
          enum:
            - tables
            - formatting
            - text
            - layout
          title: Mode
          type: string
        prompt:
          description: >-
            Extra instructions for this pass. A prompt sent with `layout` is
            refused (`REQUEST_INVALID`).
          minLength: 1
          title: Prompt
          type: string
      required:
        - mode
      title: RefineMode { mode, prompt }
      type: object
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.