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

# Charts

> Detect and digitize charts from a completed extraction or split. The
response includes normalized source bounding boxes, reconstructed data
series, axis metadata, confidence scores, and optional export files.

Provide exactly one of `extraction_id` or `split_id`. When using an
extraction, `page_range` can limit processing to selected 1-indexed
pages. Split requests inherit their pages from the split and therefore
cannot also provide `page_range`.

Export URLs require authentication and are consumed after one successful
download. Request every required format up front and store the downloaded
bytes rather than the URL.

Set `async: true` to return immediately with a `job_id`. Poll
`GET /job/{job_id}` for the completed `ChartsResponse`.

## Overview

> [!NOTE]
>
> **Pipeline Step 2 (terminal)** — Charts reuses a completed extraction or split.
> It does not accept a document upload directly.

Reconstruct line, scatter, bar, pie, donut, and well-log charts as auditable data.
Each result contains the source page and normalized bounding box, reconstructed
series, axis metadata, a confidence score, and warnings. You can also request Excel,
CSV, or LAS exports.

Set `charts_config.document_analysis` to `true` to analyze the selected document
pages for charts, tables, image descriptions, and readable lithology text. It uses
the same `extraction_id` or `split_id`; no new upload is needed. Omit the option or set it
to `false` to keep the default chart reconstruction.

For PDFs with vector well-log curves, document analysis can recover separate traces
that share a printed scale, including traces drawn as short segments. Numeric
recovery requires readable measurement and depth rulers. Ambiguous scales,
overlapping traces, or scale changes between pages can leave gaps or prevent recovery.

The endpoint can run synchronously or asynchronously and is billed at **1 credit per
reconstructed chart**. It must be enabled for your organization.

## Request

Provide exactly one source:

| Field | Type | Required | Description |
| - | - | - | - |
| `extraction_id` | UUID | One source | A completed, saved extraction. |
| `split_id` | UUID | One source | A completed split. Results are grouped by split topic. |
| `page_range` | string | No | Extraction mode only. 1-indexed pages such as `"1-3,5"`. Split mode inherits its pages. |
| `charts_config` | object | No | Reconstruction and export options. |
| `async` | boolean | No | Defaults to `false`. With `true`, returns a `job_id` immediately for polling. |

### `charts_config`

**document\_analysis** `boolean` (default: false)

Analyze the selected document pages and include tables, descriptions, warnings,
coverage, and supported lithology records in the response. Accepts JSON `true` or
`false` only.

**data\_points** `integer` (default: 20)

Requested samples per continuous series, from 2 to 500. With document analysis,
this is a target: source curves may retain more points to preserve extrema, step
corners, and gaps.

**agentic\_zoom** `boolean` (default: false)

When `document_analysis` is `false`, inspect difficult regions at higher
resolution. This can improve recovery at additional latency.

**export\_formats** `array`

Any of `excel`, `csv`, and `las`. Use `[]` to disable exports. LAS applies only
to compatible well logs.

Options belong inside `charts_config`. Top-level `document_analysis`,
`data_points`, `agentic_zoom`, `export_formats`, `generate_las`, and
`layout_confidence` are rejected.

```bash theme={null}
curl -X POST https://api.runpulse.com/charts \
  -H "x-api-key: $PULSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "extraction_id": "0d904c3c-8eb8-4abd-a455-04c3a83c5b43",
    "page_range": "1-3,5",
    "async": true,
    "charts_config": {
      "document_analysis": true,
      "data_points": 100,
      "export_formats": ["excel", "csv"]
    }
  }'
```

For a split, replace `extraction_id` with `split_id` and omit `page_range`.

## Response

With `async: true`, the endpoint returns HTTP `202`:

```json theme={null}
{
  "job_id": "90705060-b7b9-48c3-9593-7c7d62ce280e",
  "status": "pending",
  "message": "Chart extraction started. Poll GET /job/{job_id} for results."
}
```

Poll `GET /job/{job_id}` until the job reaches a terminal status. The completed chart
response is returned in the job response's `result` field. `charts_id` belongs to that
completed result; it is not duplicated in the initial async acknowledgement.

Extraction mode returns a flat `charts` array. Split mode returns `results`, keyed by
topic, with each topic's inherited pages and charts. `count` is the total number of
charts across the response.

When requested, `document_analysis` is included alongside the charts and exports.
It contains results for the selected pages, including the inherited pages in split
mode. Tables, descriptions, and lithology records do not increase `count`, and may
be returned even when no numeric chart can be reconstructed.

| Field | Contents |
| - | - |
| `descriptions` | Image descriptions with their source `page_number` and, when available, `bounding_box`. |
| `tables` | Tables with `id`, `title`, `page_number`, `columns`, and `rows`. Unreadable cells can be `null`. |
| `lithology` | Supported lithology descriptions from readable native PDF text, with printed depth bounds and source evidence. |
| `warnings` | Limitations to review alongside individual chart warnings. |
| `coverage` | Source `page_count`, `processed_pages`, `failed_pages`, and processing status. `tiles_total`, `tiles_completed`, and `tiles_failed` count document regions. |

`coverage.status` is `complete`, `partial`, or `failed`. A `complete` status
means the scheduled regions were processed; it does not guarantee that every curve
was recovered or every value is correct.

```json theme={null}
{
  "charts_id": "90705060-b7b9-48c3-9593-7c7d62ce280e",
  "extraction_id": "0d904c3c-8eb8-4abd-a455-04c3a83c5b43",
  "page_range": "1-3,5",
  "count": 1,
  "charts": [
    {
      "id": "p2-source-color-gr",
      "page_number": 2,
      "bounding_box": [
        {"x": 0.12, "y": 0.18},
        {"x": 0.88, "y": 0.18},
        {"x": 0.88, "y": 0.76},
        {"x": 0.12, "y": 0.76}
      ],
      "type": "well_log",
      "title": "Gamma ray",
      "x_axis": {"type": "linear", "title": "Gamma ray (gAPI)"},
      "y_axis": {"type": "linear", "title": "Depth (m)"},
      "series": [
        {
          "name": "GR",
          "color": "#1769aa",
          "line_style": "solid",
          "data": [[45.2, 1000], [48.6, 1001]]
        }
      ],
      "confidence": 0,
      "warnings": ["Confidence has not been calibrated; zero means unscored."]
    }
  ],
  "document_analysis": {
    "descriptions": [
      {
        "page_number": 2,
        "description": "A well log shows gamma ray measurements against depth, a printed measurement table, and lithology notes."
      }
    ],
    "tables": [
      {
        "id": "table-1",
        "title": "Printed measurements",
        "page_number": 2,
        "columns": ["Depth (m)", "Gamma ray (gAPI)"],
        "rows": [[1000, 45.2], [1001, 48.6]]
      }
    ],
    "lithology": [
      {
        "id": "lithology-7d91ac482e30",
        "page_number": 2,
        "page_numbers": [2],
        "depth_top": 1000,
        "depth_base": 1010,
        "depth_unit": "m",
        "description": "Grey sandstone.\nFine grained.",
        "status": "printed_interval",
        "bounding_box": [
          {"x": 0.7, "y": 0.8},
          {"x": 0.95, "y": 0.8},
          {"x": 0.95, "y": 0.85},
          {"x": 0.7, "y": 0.85}
        ],
        "source_evidence": {
          "method": "native_printed_interval",
          "coordinate_system": "top_left_display",
          "coordinate_unit": "pdf_points",
          "interval_text": "1000-1010 m:",
          "interval_bbox": [420, 640, 570, 652],
          "fragments": [
            {
              "page_number": 2,
              "bbox": [420, 640, 570, 680],
              "text": "1000-1010 m: Grey sandstone.\nFine grained."
            }
          ]
        }
      }
    ],
    "warnings": [],
    "coverage": {
      "page_count": 5,
      "processed_pages": [1, 2, 3, 5],
      "failed_pages": [],
      "tiles_total": 4,
      "tiles_completed": 4,
      "tiles_failed": 0,
      "status": "complete"
    }
  },
  "exports": [
    {
      "format": "excel",
      "filename": "chart-data.xlsx",
      "url": "https://api.runpulse.com/results/90705060-b7b9-48c3-9593-7c7d62ce280e/charts/chart-data.xlsx"
    },
    {
      "format": "csv",
      "filename": "chart-data.csv",
      "url": "https://api.runpulse.com/results/90705060-b7b9-48c3-9593-7c7d62ce280e/charts/chart-data.csv"
    },
    {
      "format": "csv",
      "filename": "lithology.csv",
      "url": "https://api.runpulse.com/results/90705060-b7b9-48c3-9593-7c7d62ce280e/charts/lithology.csv"
    }
  ],
  "excel_url": "https://api.runpulse.com/results/90705060-b7b9-48c3-9593-7c7d62ce280e/charts/chart-data.xlsx",
  "credits_used": 1
}
```

`excel_url` mirrors the first Excel export URL when one is available. Iterate over `exports` when you request multiple formats.
If an export cannot be produced, `export_warnings` explains why without failing the
chart reconstruction.

### Lithology records

`document_analysis.lithology` recovers supported prose from PDFs with readable
native text. It does not recover lithology records from scanned images or infer
rock proportions from colors, symbols, or chemical curves. An empty array does
not establish that the document contains no lithology.

Each record preserves the source `description`, including line breaks. Its
`depth_top` and `depth_base` come from an explicitly printed interval; unbounded
descriptions keep both fields `null`. `depth_unit` is `m`, `ft`, or an empty string
when no unit is available. Paragraph position is not used as a depth bound.

| `status` | Meaning |
| - | - |
| `printed_interval` | A lithology description with an explicitly printed depth interval. |
| `unbounded_description` | A description without recovered depth bounds. |
| `reference_only` | An interval referring to another source, such as a core report, rather than describing rock. |

`page_number` identifies the first page; `page_numbers` lists all source pages for
the record. `bounding_box` is normalized to that first page. For source review,
`source_evidence.fragments` contains each page's original `text`, `page_number`,
and `bbox`. These boxes and `interval_bbox` use `[x0, y0, x1, y1]` in PDF points
from the displayed page's top-left corner, rather than normalized coordinates.

`source_evidence.method` is `native_printed_interval` or
`native_printed_description`. `interval_text` retains the printed interval;
`interval_text` and `interval_bbox` are `null` for unbounded descriptions.

## Export Downloads

With document analysis enabled:

* Excel includes chart data, tables, descriptions, and coverage notes. When
  lithology records are available, it also includes a **Lithology** worksheet.
* CSV exports include `chart-data.csv` for chart points and, when lithology records
  are available, a separate `lithology.csv`. Iterate over `exports` to download
  both. Other tables and descriptions are available in Excel and the JSON response.
* LAS is generated for compatible well-log charts with numeric measurement and
  depth points. Missing or conflicting curve intervals remain null. Lithology
  descriptions are not encoded as numeric LAS curves.

The lithology worksheet and CSV include the record ID, pages, top and base depths,
unit, description, status, and printed interval. Missing bounds remain blank in
these exports; the JSON response retains `null` and the detailed source evidence.

Every export URL:

* requires the same API key as the chart request;
* belongs to the organization that created the chart result;
* is deleted after one successful stream;
* must not be prefetched by an agent, UI, or link preview.

```bash theme={null}
curl -H "x-api-key: $PULSE_API_KEY" \
  "https://api.runpulse.com/results/90705060-b7b9-48c3-9593-7c7d62ce280e/charts/chart-data.xlsx" \
  --output chart-data.xlsx
```

Store the downloaded file. Do not store the URL as a durable artifact reference.

## Retrieve Results

Authenticated applications can hydrate saved views without rerunning reconstruction:

| Endpoint | Purpose |
| - | - |
| `GET /api/v1/charts/{charts_id}` | Read one owned result by ID. |
| `GET /api/v1/charts/extraction/{extraction_id}/latest` | Read the newest result associated with an extraction, including split and pipeline runs. |
| `GET /api/v1/charts/extraction/{extraction_id}/public/latest` | Read the newest result only while that extraction's public sharing and retention windows are active. |

The public route intentionally returns `404` for missing, private, expired, and deleted
extractions so it does not disclose which condition failed.

## Accuracy

Chart values are reconstructed from the source document, including vector geometry
or raster images; they are not original instrument readings. Review
`confidence` and `warnings`, and validate consequential data against the source using the
returned `page_number` and `bounding_box`. With document analysis, also review
`document_analysis.warnings` and `coverage` for missing regions. When document
analysis is disabled, `agentic_zoom` can help with small labels or dense curves,
but does not guarantee exact source values.

Document curve results use `confidence: 0` when unscored. This is not a measured
accuracy percentage; check the source and warnings before using the values.

## Related

> [card] [Extract](https://docs.runpulse.com/api-reference/endpoint/extract.md)
>
> Create the saved extraction consumed by Charts.

> [card] [Chaining Steps](https://docs.runpulse.com/concepts/chaining.md)
>
> Reuse extraction and split IDs across downstream steps.


## OpenAPI

````yaml api-reference/openapi.yml POST /charts
openapi: 3.1.0
info:
  title: Pulse API Structure
  version: 0.1.0
  description: >-
    Canonical contract for the Pulse extraction APIs. This specification is the
    single source of truth for shared request/response models that client and
    server packages consume.
servers:
  - url: https://api.runpulse.com
    description: Default Pulse API base URL
security:
  - ApiKey: []
paths:
  /charts:
    post:
      tags:
        - Charts
      summary: Reconstruct charts from a saved extraction or split
      description: >-
        Detect and digitize charts from a completed extraction or split. The

        response includes normalized source bounding boxes, reconstructed data

        series, axis metadata, confidence scores, and optional export files.


        Provide exactly one of `extraction_id` or `split_id`. When using an

        extraction, `page_range` can limit processing to selected 1-indexed

        pages. Split requests inherit their pages from the split and therefore

        cannot also provide `page_range`.


        Export URLs require authentication and are consumed after one successful

        download. Request every required format up front and store the
        downloaded

        bytes rather than the URL.


        Set `async: true` to return immediately with a `job_id`. Poll

        `GET /job/{job_id}` for the completed `ChartsResponse`.
      operationId: extractCharts
      parameters:
        - name: Pulse-Version
          in: header
          required: false
          description: The API version. These pages document version `1`.
          schema:
            type: string
            default: '1'
            enum:
              - '1'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChartsInput'
            example:
              extraction_id: 0d904c3c-8eb8-4abd-a455-04c3a83c5b43
              page_range: 1-3,5
              async: true
              charts_config:
                document_analysis: true
                data_points: 100
                export_formats:
                  - excel
                  - csv
      responses:
        '200':
          description: Completed chart reconstruction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChartsResponse'
        '202':
          description: Chart job accepted (when async=true).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncSubmissionResponse'
        '400':
          description: Invalid target, page range, or chart configuration
        '401':
          description: Authentication failed or missing API key
        '403':
          description: Charts endpoint not enabled for your organization
        '404':
          description: Extraction, split, or source artifact not found
        '429':
          description: Rate limit exceeded
        '503':
          description: >-
            Chart inference is temporarily unavailable. If organization
            retention policy is unavailable, processing and charging have not
            started; retry after the seconds in Retry-After.
          headers:
            Retry-After:
              description: Seconds to wait before retrying a retention-policy refusal.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodedErrorResponse'
components:
  schemas:
    ChartsInput:
      type: object
      additionalProperties: false
      description: >-
        Input for `POST /charts`. Provide exactly one existing extraction_id or
        split_id. Document analysis uses the same source IDs and options.
      oneOf:
        - required:
            - extraction_id
          not:
            required:
              - split_id
        - required:
            - split_id
          not:
            required:
              - extraction_id
      properties:
        extraction_id:
          type: string
          format: uuid
          description: Completed extraction to process.
        split_id:
          type: string
          format: uuid
          description: Completed split whose topic page groups should be processed.
        page_range:
          type: string
          pattern: ^[0-9, -]+$
          description: >-
            Optional 1-indexed pages for extraction mode, for example `"1-3,5"`.
            Do not provide this with `split_id`; split pages are inherited.
        charts_config:
          allOf:
            - $ref: '#/components/schemas/ChartsConfig'
          description: Chart reconstruction options. Defaults are used when omitted.
        async:
          type: boolean
          default: false
          description: >-
            When true, returns immediately with a job ID. Poll `GET
            /job/{job_id}` for the completed chart result.
    ChartsResponse:
      type: object
      required:
        - charts_id
        - count
        - exports
        - excel_url
      properties:
        charts_id:
          type: string
          format: uuid
        extraction_id:
          type: string
          format: uuid
          nullable: true
        split_id:
          type: string
          format: uuid
        page_range:
          type: string
        count:
          type: integer
          minimum: 0
          description: Total reconstructed charts across the response.
        charts:
          type: array
          description: Present in extraction mode.
          items:
            $ref: '#/components/schemas/Chart'
        results:
          type: object
          description: Split-mode results keyed by topic name.
          additionalProperties:
            $ref: '#/components/schemas/ChartTopicResult'
        exports:
          type: array
          items:
            $ref: '#/components/schemas/ChartExport'
        excel_url:
          type: string
          format: uri
          nullable: true
          deprecated: true
          description: Compatibility alias for the Excel item in `exports`.
        export_warnings:
          type: array
          items:
            type: string
        document_analysis:
          $ref: '#/components/schemas/ChartDocumentAnalysis'
        credits_used:
          type: number
          format: float
    AsyncSubmissionResponse:
      type: object
      description: >-
        Acknowledgement returned when a request is submitted for asynchronous
        processing. Poll `GET /job/{job_id}` to check status and retrieve
        results.
      required:
        - job_id
        - status
      properties:
        job_id:
          type: string
          description: Identifier assigned to the asynchronous job.
        status:
          type: string
          description: Initial status reported by the server.
          enum:
            - pending
            - processing
            - completed
            - failed
            - canceled
        message:
          type: string
          description: Human-readable description of the accepted job.
    CodedErrorResponse:
      type: object
      description: A machine-readable request failure.
      additionalProperties: false
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
    ChartsConfig:
      type: object
      additionalProperties: false
      description: Configuration for chart reconstruction and export generation.
      properties:
        document_analysis:
          type: boolean
          default: false
          description: >-
            Opt in to document-wide analysis of the existing extraction_id or
            split_id source, including tables and image descriptions. Adds
            document_analysis to the existing chart and export response.
            Document analysis may return partial coverage or withhold ambiguous
            curves; completed processing does not guarantee accuracy or full
            recovery. Omitted or false preserves the default per-figure
            reconstruction.
        data_points:
          type: integer
          minimum: 2
          maximum: 500
          default: 20
          description: >-
            Number of reconstructed points requested per continuous series. This
            is a soft target for document source tracing; extrema, step corners
            and gaps can require more points.
        agentic_zoom:
          type: boolean
          default: false
          description: >-
            When document_analysis is false, enable targeted high-resolution
            inspection for difficult chart regions. This can improve recovery
            but adds latency.
        export_formats:
          type: array
          default:
            - excel
          uniqueItems: true
          description: >-
            Export files to generate. An empty array disables file generation.
            LAS files are emitted only for compatible well-log charts.
          items:
            type: string
            enum:
              - excel
              - csv
              - las
    Chart:
      type: object
      required:
        - id
        - page_number
        - bounding_box
        - type
        - title
        - x_axis
        - y_axis
        - series
        - confidence
        - warnings
      properties:
        id:
          type: string
          description: Figure identifier from the source extraction.
        page_number:
          type: integer
          minimum: 1
        bounding_box:
          type: array
          minItems: 4
          maxItems: 4
          description: Four normalized source points ordered around the chart rectangle.
          items:
            $ref: '#/components/schemas/ChartPoint'
        type:
          type: string
          enum:
            - line
            - scatter
            - bar
            - pie
            - donut
            - well_log
            - other_chart
        title:
          type: string
          nullable: true
        x_axis:
          $ref: '#/components/schemas/ChartAxis'
        y_axis:
          $ref: '#/components/schemas/ChartAxis'
        series:
          type: array
          items:
            $ref: '#/components/schemas/ChartSeries'
        confidence:
          type: number
          format: float
          minimum: 0
          maximum: 1
        warnings:
          type: array
          items:
            type: string
    ChartTopicResult:
      type: object
      required:
        - pages
        - charts
      properties:
        pages:
          type: array
          items:
            type: integer
            minimum: 1
        charts:
          type: array
          items:
            $ref: '#/components/schemas/Chart'
    ChartExport:
      type: object
      required:
        - format
        - filename
        - url
      properties:
        format:
          type: string
          enum:
            - excel
            - csv
            - las
        filename:
          type: string
        url:
          type: string
          format: uri
          description: Authenticated one-time download URL.
        chart_id:
          type: string
          description: Present for exports that contain one specific chart.
    ChartDocumentAnalysis:
      type: object
      description: >-
        Additional result when charts_config.document_analysis is true. Contains
        only selected-page results alongside the existing charts and exports.
        Tables and descriptions are also included in the Excel export and do not
        increase the reconstructed-chart count. Complete scheduled coverage does
        not certify factual accuracy or recovery of every source curve.
      required:
        - descriptions
        - tables
        - warnings
        - coverage
      properties:
        lithology:
          type: array
          description: >-
            Source-linked lithology prose recovered from native PDF text.
            Printed depth intervals are transcribed literally; unbounded
            descriptions keep null depths. Chemical curves and symbol
            percentages are not inferred. Included in an Excel Lithology sheet
            and a separate lithology.csv when those exports are requested.
            Native-text recovery does not establish complete lithology coverage
            or support scanned images.
          items:
            $ref: '#/components/schemas/ChartLithologyRecord'
        descriptions:
          type: array
          items:
            type: object
            required:
              - page_number
              - description
            properties:
              page_number:
                type: integer
                minimum: 1
              description:
                type: string
              bounding_box:
                type: array
                minItems: 4
                maxItems: 4
                items:
                  $ref: '#/components/schemas/ChartPoint'
        tables:
          type: array
          items:
            type: object
            required:
              - id
              - title
              - page_number
              - columns
              - rows
            properties:
              id:
                type: string
              title:
                type: string
                nullable: true
              page_number:
                type: integer
                minimum: 1
              columns:
                type: array
                items:
                  type: string
              rows:
                type: array
                items:
                  type: array
                  items:
                    oneOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - type: 'null'
              bounding_box:
                type: array
                minItems: 4
                maxItems: 4
                items:
                  $ref: '#/components/schemas/ChartPoint'
        warnings:
          type: array
          items:
            type: string
        coverage:
          type: object
          required:
            - page_count
            - processed_pages
            - failed_pages
            - tiles_total
            - tiles_completed
            - tiles_failed
            - status
          properties:
            page_count:
              type: integer
              minimum: 0
            processed_pages:
              type: array
              items:
                type: integer
                minimum: 1
            failed_pages:
              type: array
              items:
                type: integer
                minimum: 1
            tiles_total:
              type: integer
              minimum: 0
            tiles_completed:
              type: integer
              minimum: 0
            tiles_failed:
              type: integer
              minimum: 0
            status:
              type: string
              enum:
                - complete
                - partial
                - failed
    ErrorBody:
      type: object
      additionalProperties: false
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: >-
            Stable machine-readable error code, e.g. `REQ_002`. Safe to branch
            on.
        message:
          type: string
          description: Human-readable description of what went wrong.
        details:
          type: object
          additionalProperties: true
          description: >-
            Additional context for the error when available, such as the
            offending field. Absent when there is nothing to add.
    ChartPoint:
      type: object
      required:
        - x
        - 'y'
      properties:
        x:
          type: number
          format: float
          minimum: 0
          maximum: 1
        'y':
          type: number
          format: float
          minimum: 0
          maximum: 1
    ChartAxis:
      type: object
      required:
        - type
        - title
      properties:
        type:
          type: string
          enum:
            - linear
            - log
            - categorical
            - normalized
        title:
          type: string
          nullable: true
    ChartSeries:
      type: object
      required:
        - name
        - color
        - data
      properties:
        name:
          type: string
        color:
          type: string
          pattern: ^#[0-9a-fA-F]{6}$
        data:
          type: array
          items:
            $ref: '#/components/schemas/ChartDataPoint'
        line_style:
          type: string
          enum:
            - solid
            - dashed
            - dotted
            - dash_dot
            - unknown
          description: Present when a line style is available for the series.
    ChartLithologyRecord:
      type: object
      required:
        - id
        - page_number
        - page_numbers
        - depth_top
        - depth_base
        - depth_unit
        - description
        - status
        - bounding_box
        - source_evidence
      properties:
        id:
          type: string
        page_number:
          type: integer
          minimum: 1
        page_numbers:
          type: array
          items:
            type: integer
            minimum: 1
        depth_top:
          type: number
          nullable: true
          description: >-
            First explicitly printed interval depth; null when no interval is
            printed.
        depth_base:
          type: number
          nullable: true
          description: >-
            Second explicitly printed interval depth; null when no interval is
            printed.
        depth_unit:
          type: string
          description: >-
            Unit from the interval text, normalized to m or ft; empty when not
            printed.
        description:
          type: string
          description: >-
            Native source prose with line breaks preserved, including unbounded
            paragraphs.
        status:
          type: string
          enum:
            - printed_interval
            - unbounded_description
            - reference_only
          description: >-
            Reference-only records point to another source such as a core
            report, rather than describing rock.
        bounding_box:
          type: array
          minItems: 4
          maxItems: 4
          description: Normalized polygon covering the record on its first page.
          items:
            $ref: '#/components/schemas/ChartPoint'
        source_evidence:
          type: object
          required:
            - method
            - coordinate_system
            - coordinate_unit
            - interval_text
            - interval_bbox
            - fragments
          properties:
            method:
              type: string
              enum:
                - native_printed_interval
                - native_printed_description
            coordinate_system:
              type: string
              enum:
                - top_left_display
            coordinate_unit:
              type: string
              enum:
                - pdf_points
            interval_text:
              type: string
              nullable: true
            interval_bbox:
              type: array
              nullable: true
              minItems: 4
              maxItems: 4
              items:
                type: number
            fragments:
              type: array
              description: >-
                Original page text and source-coordinate box for every continued
                fragment.
              items:
                type: object
                required:
                  - page_number
                  - bbox
                  - text
                properties:
                  page_number:
                    type: integer
                    minimum: 1
                  bbox:
                    type: array
                    minItems: 4
                    maxItems: 4
                    items:
                      type: number
                  text:
                    type: string
    ChartDataPoint:
      type: array
      description: Two-item `[x, y]` reconstructed data tuple.
      minItems: 2
      maxItems: 2
      prefixItems:
        - $ref: '#/components/schemas/ChartDataValue'
        - oneOf:
            - type: number
            - type: 'null'
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      x-fern-header:
        name: apiKey
        env: PULSE_API_KEY

````

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