> ## 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.

# Run Extract Eval

> Run an extract eval with an extract config: `config`, the config of `POST /extract` and checked as it checks it, or `config_id`, a saved one; its `input_schema` must be the dataset's. The first run parses the dataset's documents as one batch, with its `parse_config`, and later runs reuse the parses; if your organization's retention doesn't keep data, every run parses them. Each document is extracted, billed as `POST /extract` bills, and graded against its ground truth. Read the run's status at `GET /eval/run/extract/{run_id}` and its result at `GET /eval/run/extract/{run_id}/result`.



## OpenAPI

````yaml /api-reference/v2/openapi.yml post /eval/run/extract
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/extract:
    post:
      tags:
        - Eval runs
      summary: Run Extract Eval
      description: >-
        Run an extract eval with an extract config: `config`, the config of
        `POST /extract` and checked as it checks it, or `config_id`, a saved
        one; its `input_schema` must be the dataset's. The first run parses the
        dataset's documents as one batch, with its `parse_config`, and later
        runs reuse the parses; if your organization's retention doesn't keep
        data, every run parses them. Each document is extracted, billed as `POST
        /extract` bills, and graded against its ground truth. Read the run's
        status at `GET /eval/run/extract/{run_id}` and its result at `GET
        /eval/run/extract/{run_id}/result`.
      operationId: runExtractEval
      parameters:
        - name: Pulse-Version
          in: header
          required: false
          schema:
            type: string
            default: '2'
            title: Pulse-Version
          examples:
            default:
              value: '2'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              description: >-
                An extract eval to run, with the extract config to test: the
                config of `POST /extract`,

                checked as it checks it. Its `input_schema` must be the
                dataset's.
              title: ExtractRunRequest
              oneOf:
                - title: Inline config
                  additionalProperties: false
                  type: object
                  properties:
                    name:
                      description: A label for the run. It need not be unique.
                      maxLength: 200
                      minLength: 1
                      title: Name
                      type: string
                    eval_id:
                      description: 'The eval to run: one of this route''s type.'
                      title: Eval Id
                      type: string
                    config:
                      $ref: '#/components/schemas/ExtractConfig'
                      description: This request's options.
                  required:
                    - name
                    - eval_id
                    - config
                - title: Saved config
                  additionalProperties: false
                  type: object
                  properties:
                    name:
                      description: A label for the run. It need not be unique.
                      maxLength: 200
                      minLength: 1
                      title: Name
                      type: string
                    eval_id:
                      description: 'The eval to run: one of this route''s type.'
                      title: Eval Id
                      type: string
                    config_id:
                      description: A saved config's id, sent in place of `config`.
                      title: Config Id
                      type: string
                  required:
                    - name
                    - eval_id
                    - config_id
      responses:
        '202':
          description: 'The run was started: its `run_id` and when it was created.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResponse'
        '400':
          description: >-
            [`REQUEST_INVALID`](https://docs.runpulse.com/errors/request-invalid):
            the body isn't a JSON object or has a field or value it doesn't
            take, `name` is missing, blank or longer than 200 characters,
            `eval_id` isn't an eval's id, `config` and `config_id` were both
            sent or neither, a config option is invalid, or the URL has a query
            parameter; `errors` names each field.
            [`PAGE_RANGE_INVALID`](https://docs.runpulse.com/errors/page-range-invalid):
            `config.page_range` isn't a page range.
            [`REQUEST_INVALID`](https://docs.runpulse.com/errors/request-invalid)
            also when the config's `input_schema` isn't the dataset's: `errors`
            names `config.input_schema`, or `config_id` for a saved config.
            `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
            - PAGE_RANGE_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
        '402':
          description: >-
            [`PLAN_UPGRADE_REQUIRED`](https://docs.runpulse.com/errors/plan-upgrade-required):
            your plan doesn't allow turning storage off: the dataset's
            `parse_config.storage.save` is `false`, and this run parses its
            documents: the first does, and every run does where your
            organization's retention doesn't keep data.
          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:
            - PLAN_UPGRADE_REQUIRED
        '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 extract eval with the `eval_id` sent, or no
            saved extract config with the `config_id` sent; `errors` names the
            field. 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
        '500':
          description: >-
            [`SERVER_ERROR`](https://docs.runpulse.com/errors/server-error):
            your saved configs couldn't be read; 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:
            - SERVER_ERROR
        '503':
          description: >-
            [`SERVICE_UNAVAILABLE`](https://docs.runpulse.com/errors/service-unavailable):
            a service the request needs couldn't be reached, to check your API
            key or your organization's settings or to store or start the run;
            retry.
            [`CAPACITY_EXCEEDED`](https://docs.runpulse.com/errors/capacity-exceeded):
            document processing is at capacity, so the run wasn't started; retry
            after `Retry-After` seconds. 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
            - CAPACITY_EXCEEDED
            - LICENSE_NOT_ACTIVATED
            - LICENSE_INVALID
      security:
        - ApiKey: []
components:
  schemas:
    ExtractConfig:
      additionalProperties: false
      description: Options for extracting structured data from a completed parse.
      properties:
        page_range:
          description: >-
            The pages to read, listed as numbers and ranges from 1, such as
            `1-3, 6, 8-end` (`end` is the last page). Defaults to every page.
            Pages are numbered as in the parse's result.
          pattern: ^ *[0-9]+ *(- *([0-9]+|end) *)?(, *[0-9]+ *(- *([0-9]+|end) *)?)*$
          title: Page Range
          type: string
        prompt:
          description: Extra instructions for filling in `input_schema`.
          minLength: 1
          title: Prompt
          type: string
        input_schema:
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
          description: >-
            The JSON Schema (Draft 7) to fill in, with an object root, at least
            one property and at most 5,000 properties in all.
          title: Input Schema
          type: object
        effort:
          default: low
          description: '`high` reads the parse more carefully, at an extra charge per page.'
          enum:
            - low
            - high
          title: Effort
          type: string
        confidence:
          default: standard
          description: >-
            `agentic` gives more reliable confidence scores, at an extra charge
            per page. It must be enabled for your organization.
          enum:
            - standard
            - agentic
          title: Confidence
          type: string
        format:
          anyOf:
            - const: all
              type: string
            - items:
                enum:
                  - enriched
                  - raw
                type: string
              type: array
          default:
            - enriched
          description: >-
            `enriched` returns values with citations and confidence, `raw`
            returns the values alone, and `all` returns both.
          title: Format
      required:
        - input_schema
      title: ExtractConfig { page_range, prompt, input_schema, 3 more }
      type: object
    RunResponse:
      properties:
        run_id:
          type: string
          title: Run Id
          description: The run's id, `eval-run-<uuid>`.
        created_at:
          type: string
          title: Created At
          description: When the run was started.
      additionalProperties: false
      type: object
      required:
        - run_id
        - created_at
      title: RunResponse
      description: A run that was started.
    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
    JsonValue: {}
    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
  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.