The primary endpoint for the Pulse API. Parses uploaded documents or remote
file URLs and returns rich markdown content with optional structured data
extraction based on user-provided schemas and extraction options.
Set async: true to return immediately with a job_id for polling via
GET /job/. Otherwise processes synchronously.
For large TIFFs with Pulse Ultra 2, submit a file_url ending in
.tif or .tiff with async: true. Pulse downloads and processes
the image in bounded tiles after accepting the job. Results retain
the original TIFF page numbers and coordinates; internal tiles do
not increase the billed page count.
With Pulse Ultra 2, multi-page TIFF uploads also preserve every frame.
Page ranges select original frames; billing counts the selected frames.
Pipeline Step 1 — Extract is where document processing begins: every downstream step consumes its extraction_id. After extraction, you can optionally split the document into topics, apply schema extraction to get structured data, or use tables for span-aware table extraction.Handling mixed document types? /classify can run before Extract to route each raw document to the right pipeline — it only chooses which pipeline runs, so extraction still happens here.
Extract content from documents. Returns markdown or HTML formatted content with optional structured data extraction.For large results (typically documents over 70 pages, spreadsheet extractions, or any response above 5 MB), the API returns a one-time download link at https://api.runpulse.com/results/{job_id} instead of inlining the payload. Fetching that URL returns the same complete extraction result JSON you would receive inline. See Large Result Response below.
For large documents or batch processing workflows, set async: true to process asynchronously and poll for results via GET /job/jobId.
To process many files at once, use Batch Extract. It accepts an S3 prefix, local directory, or list of URLs and runs /extract on each file in parallel.
Async Mode
Set async: true to return immediately with a job ID for polling:
Document file to upload directly (multipart/form-data).
file_url
string
Public or pre-signed URL that Pulse will download and extract.
Extraction Options
Field
Type
Default
Description
model
string (enum)
default
Extraction model to use. One of default or pulse-ultra-2. pulse-ultra-2 uses Pulse’s vision-language model with built-in refinement, figure/chart extraction, and word-level bounding boxes.
pages
string
-
Page range filter (1-indexed). Supports segments like 1-2 or mixed ranges like 1-2,5. Page 1 is the first page.
figure_processing
object
-
Settings that control how figures in the document are processed. These affect the markdown output directly and do not produce additional output fields. See Figure Processing.
extensions
object
-
Settings that enable additional processing or alternate output formats. Each enabled extension produces a corresponding result under response.extensions.*. See Extensions.
spreadsheet
object
-
Settings for Excel/spreadsheet extraction. Controls hidden rows, columns, sheets, raw values, phantom-cell trimming, and whether table cell_data is included. Applies to .xlsx, .xlsm, and .xls files. See Spreadsheet Options.
storage
object
-
Options for persisting extraction artifacts. See Storage Options.
async
boolean
false
If true, returns immediately with a job_id for polling via GET /job/{jobId}.
force_url
boolean
false
When true, return the complete extraction result as a URL even if it is small. Spreadsheet responses are URL-backed by default; set force_url: false to request inline spreadsheet output. URL delivery changes only the transport, not the result shape.
structured_output
object
-
⚠️ Deprecated — Use the /schema endpoint after extraction instead. Still works for backward compatibility.
Figure Processing
Settings under figure_processing control how figures (images, charts, diagrams) and embedded visuals are processed. Applies to both PDFs/images (figures detected from layout) and spreadsheets (charts and embedded images read directly from the workbook). Affects the markdown output and the bounding_boxes.Images[] array.
Field
Type
Default
Description
figure_processing.description
boolean
false
Generate descriptive captions for extracted visuals. Captions appear under bounding_boxes.Images[].description and inline in the markdown output. Applies to both detected charts and non-chart images.
figure_processing.show_images
boolean
false
Return image URLs for extracted visuals. URLs appear under bounding_boxes.Images[].image_url and resolve to a Pulse-hosted PNG/JPEG served from GET /results/{jobId}/images/{filename}. Applies to both detected charts and non-chart images.
For spreadsheets specifically, show_images: true collects every embedded chart and image in the workbook and emits one entry per visual under bounding_boxes.Images, with chart-specific fields like chart_type, chart_title, and source_ranges populated. See Bounding Boxes for the full field list.
Spreadsheet Options
Settings under spreadsheet control how Excel workbooks (.xlsx, .xlsm, .xls) are processed. By default, hidden rows, columns, and sheets are excluded from extraction output, cell values are rendered the way Excel displays them, and table cell metadata is included. Phantom-cell trimming is opt-in. Spreadsheet responses are returned as full-result URLs by default because workbook cell_data can make the payload large even for modest .xlsx files.
Field
Type
Default
Description
spreadsheet.include_hidden_rows
boolean
false
Include rows that are hidden in the Excel workbook.
spreadsheet.include_hidden_cols
boolean
false
Include columns that are hidden in the Excel workbook.
spreadsheet.include_hidden_sheets
boolean
false
Include sheets that are hidden in the Excel workbook.
spreadsheet.use_raw_values
boolean
false
Emit the underlying numeric value for number cells instead of the Excel display-formatted text — e.g. 1201.67 rather than $1,202 when the cell uses a rounded currency format. Useful when downstream processing needs exact amounts (cent-level precision) rather than what the workbook shows visually. Percent-formatted cells and dates keep their display rendering. Does not apply to legacy .xls files.
spreadsheet.only_data_rows
boolean
false
When true, trim trailing empty rows past the last cell carrying a value or formula. See Phantom-cell trimming below.
spreadsheet.only_data_cols
boolean
false
When true, trim trailing empty columns past the last cell carrying a value or formula. Same rationale as only_data_rows.
spreadsheet.cell_data
boolean
true
Include cell-level table metadata under bounding_boxes.Tables[].cell_data. Set to false to omit this metadata and reduce output size.
These settings accept both camelCase (includeHiddenRows, onlyDataRows, cellData) and snake_case (include_hidden_rows, only_data_rows, cell_data) formats.
Excel files exported from claims systems, ERPs, and other automated pipelines routinely declare a “used range” that extends hundreds of thousands of rows past where the data actually ends. A typical case: a 57 MB workbook with only ~500 rows of real data, where the other ~1,000,000 rows are empty cells that exist only because they were once selected and styled. These phantom cells inflate file size by orders of magnitude and can exhaust parser memory on the extraction pipeline.Set only_data_rows: true and only_data_cols: true to have Pulse scan each sheet once before parsing, find the largest row and column containing a value or formula, and ignore everything beyond that extent. Surviving cells keep their original A1 coordinates (e.g., a value at B7 in the source is still B7 in the output), so any citation or bounding box that references a specific cell remains stable. The trim only kicks in on large sheets (≥5 MB of XML per sheet), so small, well-formed workbooks pay no overhead either way.Both flags default to false.
Pulse Ultra 2 Options
These options are available only when model: pulse-ultra-2 is set. Passing any of them with the default model returns a 400 error listing the offending fields.
Field
Type
Default
Description
refine
boolean
false
Run a full-page OCR and formatting correction pass after extraction. Improves accuracy on dense layouts, numerical values, and table structure. Adds ~1–2s per page. Overridden by refine_options if both are provided.
refine_options
object
-
Granular refinement targets. Takes precedence over the boolean refine flag. See below.
refine_options.tables
boolean
false
Fix table cell values, structure, and headers against the source image.
refine_options.text
boolean
false
Fix OCR errors, missing or extra content, and numerical accuracy (tables untouched).
refine_options.formatting
boolean
false
Add strikethrough, italic, bold, super/subscript, and LaTeX formatting (tables untouched).
extract_figure
boolean
false
Convert charts and data visualizations into HTML <table> blocks, wrapped in <figure-table> tags. Useful for financial decks, dashboards, and scientific charts.
figure_description
boolean
false
Generate a 1–2 paragraph natural-language description of each picture, wrapped in <figure-description> tags. Combines well with extract_figure.
detect_selections
boolean
true
Detect selected and unselected marks with a specialized selection-mark model. Improves accuracy on forms, checkboxes, radio buttons, handwritten checkmarks, X marks, and similar controls. Enabled by default for pulse-ultra-2; set to false to skip this pass.
additional_prompt
string
""
Extra context injected into the extraction prompt. Use to steer extraction toward a specific domain or attention focus. Max 4000 characters.
custom_image_prompt
string
""
Extra context appended to the prompt used by figure_description and extract_figure. Tunes image and chart interpretation. Max 2000 characters.
custom_refine_prompt
string
""
Extra context appended to the refinement prompt. Only applies when refine: true or refine_options is set. Max 2000 characters.
Selection mark detection
Use detect_selections: true with model: pulse-ultra-2 when a document contains forms, checkboxes, radio buttons, handwritten selection marks, or other marked-choice controls. Pulse runs a specialized detection pass for these marks so selected/unselected states are less likely to be missed or confused with nearby text, boxes, or handwriting. When available, the detected state is returned on the relevant bounding-box items as selected.
Markdown output additions
When extract_figure or figure_description is enabled, figures in response.markdown include additional tags:
<figure data-page="1"> <figure-table>...HTML table for the chart...</figure-table> <figure-description>...1–2 paragraph description...</figure-description></figure>
When refine (or refine_options) is set, markdown content is post-processed page-by-page; output is cleaner but typically grows ~1.5–3x in size for dense documents. No new tags are introduced.
Extensions
Settings under extensions enable additional processing passes or alternate output formats. Each enabled extension produces a corresponding output field under response.extensions.*. For example, enabling extensions.chunking produces response.extensions.chunking, and enabling extensions.alt_outputs.return_html produces response.extensions.alt_outputs.html.
Field
Type
Default
Description
extensions.document_metadata
boolean
false
Extract native properties and deterministic structure from the original file. Results appear under response.extensions.document_metadata.
extensions.footnote_references
boolean
false
Link footnote markers to their corresponding footnote text.
extensions.chunking
object
-
Chunking configuration. See below.
extensions.chunking.chunk_types
string[]
-
List of chunking strategies: semantic, header, page, recursive.
extensions.chunking.chunk_size
integer
-
Maximum characters per chunk.
extensions.alt_outputs
object
-
Alternate output formats. See below.
extensions.alt_outputs.wlbb
boolean
false
Enable word-level bounding boxes (PDF only). Results in response.extensions.alt_outputs.wlbb.
extensions.alt_outputs.return_html
boolean
false
Include HTML representation. response.markdown is still present; HTML is at response.extensions.alt_outputs.html.
extensions.alt_outputs.return_xml
boolean
false
Include XML representation (work in progress).
pulse-ultra-2 Rate Limits
Requests made with model: pulse-ultra-2 are subject to dedicated rate limits, separate from standard extraction:
Limit
Value
Per minute
5 extractions
Per hour
20 extractions
File size
50 MB
Concurrent
2 per API key
The concurrent limit is the one that most commonly applies in practice — long-running extractions held open while new requests arrive will trip it first.
Storage Options
Control whether extractions are saved to your extraction library:
Field
Type
Default
Description
storage.enabled
boolean
true
Whether to persist extraction artifacts. Set to false for temporary extractions.
storage.folder_name
string
-
Target folder name to save the extraction to. Creates the folder if it doesn’t exist.
storage.folder_id
string (uuid)
-
Target folder ID to save the extraction to. Takes precedence over folder_name.
Deprecated Fields
The following input fields are deprecated and will be removed in a future version. They are still accepted for backward compatibility.
Field
Replacement
show_images
Use figure_processing.show_images
chunking
Use extensions.chunking.chunk_types (array instead of comma-separated string)
chunk_size
Use extensions.chunking.chunk_size
return_html
Use extensions.alt_outputs.return_html
structured_output
Use /schema endpoint after extraction. Pass extraction_id + schema_config. Accepts schema, schema_prompt, and effort.
Use /schema endpoint with schema_config.schema_prompt
custom_prompt
No replacement
thinking
No replacement
When legacy input fields are used, the API returns a deprecation warning in the warnings array directing you to the updated field names. See the latest documentation for details.
Response
The response structure varies based on document size to optimize for different use cases.
Standard Inline Response
For non-spreadsheet documents under 70 pages whose response payload stays below the inline threshold, results are returned directly in the response body:
Clean markdown content extracted from the document. Always present.
page_count
integer
Total number of pages processed.
extraction_id
string (uuid)
Persisted extraction ID. Present when storage is enabled (default). Use with /split and /schema.
extraction_url
string
URL to view the extraction in the Pulse Platform. Present when storage is enabled.
credits_used
number
Credits consumed by this request. Only present when the org has the credit billing system enabled.
plan_info
object
Billing tier and cumulative usage information for the calling org, including this request. Includes tier, total_credits_used (primary billing metric), pages_used (legacy), and an optional note.
bounding_boxes
object
Typed bounding-box data — Images, Tables, Text, Title, Footer, plus markdown_with_ids. See Bounding Boxes for the full field list including the chart/image fields under Images.
extensions
object
Output from enabled extensions. Only keys for enabled extensions are present. See below.
extensions.document_metadata
object
Native properties and deterministic structure from the original file (when extensions.document_metadata is enabled). See Document Metadata below.
extensions.chunking
object
Chunk results by strategy (when extensions.chunking is enabled).
extensions.footnoteReferences
array
List of detected footnotes with their in-text references (when extensions.footnote_references is enabled). See Footnote References below.
extensions.altOutputs.wlbb
object
Word-level bounding boxes (when extensions.alt_outputs.wlbb is enabled).
extensions.altOutputs.html
string
HTML representation (when extensions.alt_outputs.return_html is enabled).
extensions.altOutputs.xml
string
XML representation (when extensions.alt_outputs.return_xml is enabled, WIP).
warnings
array
Non-fatal warnings generated during extraction, including deprecation notices for legacy input usage.
Error message if schema processing failed (deprecated path only).
Large Result Response
For documents with 70 or more pages, spreadsheet extractions, or any response payload above the 5 MB inline threshold, the API returns a one-time download link to /results/{job_id} instead of inlining the payload. This prevents timeout issues and keeps the immediate response small. The downloaded JSON is the complete extraction result with the normal response shape.
Always true for URL-backed responses. Use this to detect URL-based responses.
url
string
One-time download link of the form https://api.runpulse.com/results/{job_id}. The link streams the complete extraction result the first time it is fetched and is then invalidated (subsequent reads return 410 Gone). It also expires 1 hour after the job completes. Authenticate the request with your x-api-key header.
extraction_id
string
Extraction/job identifier. The downloaded result contains the normal response fields, including metadata such as page_count, credits_used, and plan_info when available.
/results/{job_id} links are single-use and expire 1 hour after the job completes. Download and persist the payload immediately — do not pass the URL through queues or share it across workers.
curl -X POST https://api.runpulse.com/extract \ -H "x-api-key: YOUR_API_KEY" \ -F "file=@large_document.pdf"# Response: {"is_url": true, "url": "https://api.runpulse.com/results/abc123-..."}# Fetch the result once (single-use link, valid for 1 hour after job completion)curl -H "x-api-key: YOUR_API_KEY" \ "https://api.runpulse.com/results/abc123-..."
Because /results/{job_id} is one-time use, persist the result to your own storage on first download. If you need to access the result later, enable storage.enabled and retrieve it from your extraction library on the Pulse Platform.
Example Usage
Basic Extraction
from pulse import Pulsefrom pulse.types import ( ExtractRequestFigureProcessing, ExtractRequestExtensions, ExtractRequestExtensionsAltOutputs,)client = Pulse(api_key="YOUR_API_KEY")# Extract from URL with figure processing and HTML outputresponse = client.extract( file_url="https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf", figure_processing=ExtractRequestFigureProcessing( description=True, ), extensions=ExtractRequestExtensions( alt_outputs=ExtractRequestExtensionsAltOutputs( return_html=True, ), ),)print(f"Markdown: {response.markdown}")print(f"HTML: {response.extensions.alt_outputs.html}")print(f"Extraction ID: {response.extraction_id}")
from pulse.types import ExtractRequestFigureProcessing# Upload and extract a local filewith open("document.pdf", "rb") as f: response = client.extract( file=f, figure_processing=ExtractRequestFigureProcessing( description=True, ), )
import * as fs from 'fs';const fileBuffer = fs.readFileSync("document.pdf");const blob = new Blob([fileBuffer], { type: 'application/pdf' });const response = await client.extract({ file: blob,});
The structured_output parameter on /extract is deprecated. Use the /schema endpoint after extraction instead. This gives you better control, re-runnability, and support for split-mode schemas.
# Step 1: Extract the documentcurl -X POST https://api.runpulse.com/extract \ -H "x-api-key: YOUR_API_KEY" \ -F "file=@invoice.pdf"# Response includes extraction_id: "abc123-..."# Step 2: Apply schemacurl -X POST https://api.runpulse.com/schema \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "extraction_id": "abc123-...", "schema_config": { "input_schema": {"type": "object", "properties": {"total": {"type": "number"}, "vendor": {"type": "string"}}}, "schema_prompt": "Extract invoice total and vendor" } }'
Document Metadata
Enable extensions.document_metadata to read native properties from the original
file before conversion, rendering, or OCR. The option is a single boolean; Pulse
returns every safely recoverable field for the detected format.
Absent metadata fields are omitted rather than returned as null. Metadata is
evidence declared by the source file and is not independently verified. Original
camera files may contain sensitive capture timestamps or GPS coordinates.See Document Metadata for
format-specific behavior and implementation guidance.
Page Range and Chunking
from pulse.types import ( ExtractRequestExtensions, ExtractRequestExtensionsChunking,)response = client.extract( file_url="https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf", pages="1-5,10", # 1-indexed extensions=ExtractRequestExtensions( chunking=ExtractRequestExtensionsChunking( chunk_types=["semantic", "page"], chunk_size=1000, ), ),)# Chunk data is in extensions.chunkingprint(response.extensions.chunking.semantic)print(response.extensions.chunking.page)
const response = await client.extract({ fileUrl: "https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf", pages: "1-5,10", // 1-indexed extensions: { chunking: { chunkTypes: ["semantic", "page"], chunkSize: 1000 } }});// Chunk data is in extensions.chunkingconsole.log(response.extensions?.chunking?.semantic);console.log(response.extensions?.chunking?.page);
Enable extensions.footnote_references to detect footnote markers (e.g. *, †, 1) in body text and link them to the footnote explanation paragraphs at the bottom of the page. Each result item includes the marker symbol, the bounding-box text ID of the footnote, and the bounding-box text IDs of all body-text paragraphs that reference it.
from pulse.types import ExtractRequestExtensionsresponse = client.extract( file_url="https://example.com/research-paper.pdf", extensions=ExtractRequestExtensions( footnote_references=True, ),)# Footnote links are in extensions.footnote_referencesfor ref in response.extensions.footnote_references: print(f"Marker: {ref.symbol}") print(f" Footnote: {ref.footnote_text_id}") print(f" Referenced by: {ref.reference_text_ids}")
The footnote marker symbol as detected in the document (e.g. *, †, ‡, 1, #).
footnoteTextId
string
The bounding-box text ID (e.g. txt-11) of the footnote explanation paragraph. Cross-reference with bounding_boxes.Footer to get the footnote’s content and position.
referenceTextIds
string[]
Bounding-box text IDs of body-text paragraphs that contain a reference to this footnote. Cross-reference with bounding_boxes.Text to get each paragraph’s content and position.
Footnote reference detection uses Azure Document Intelligence for paragraph classification, supplemented by PyMuPDF native text extraction for accurate symbol identification. This handles common OCR confusion between visually similar symbols like †/+ and ‡/#. Supported marker types include numbered (1, 2, 3), symbolic (*, †, ‡, §, #), and lettered (a, b, c) footnotes.
Excel Spreadsheet Options
from pulse import Pulsefrom pulse.types import ExtractRequestSpreadsheetclient = Pulse(api_key="YOUR_API_KEY")# Extract from Excel with hidden content includedresponse = client.extract( file=open("financials.xlsx", "rb"), spreadsheet=ExtractRequestSpreadsheet( include_hidden_rows=True, include_hidden_cols=True, include_hidden_sheets=False, ),)print(response.markdown)
Spreadsheet responses are URL-backed by default: the immediate response is is_url: true with a one-time /results/{job_id} link. Fetch that URL to receive the complete extraction result. The result shape is unchanged: table metadata remains under bounding_boxes.Tables[].cell_data when spreadsheet.cell_data is true (the default). Set top-level force_url: false only if you need the full result inline.
Workbooks exported from claims systems, ERPs, and other automated pipelines often declare a “used range” that extends hundreds of thousands of rows past where the data actually ends. Set spreadsheet.only_data_rows: true and spreadsheet.only_data_cols: true to have Pulse trim those trailing empty “phantom” rows and columns before parsing. Surviving cells keep their original A1 coordinates, so any citation or bounding box that references a specific cell remains stable. Both flags default to false. See the extraction options above for the full reference.
Excel Charts and Embedded Images
When you set figure_processing.show_images: true on an Excel workbook, every embedded chart and image is collected from the workbook directly and returned under bounding_boxes.Images[]. Each entry carries a Pulse-hosted image_url you can fetch via results.getImage (or any HTTP client with your API key) to get the raw PNG/JPEG bytes.
import refrom pulse import Pulsefrom pulse.types import ExtractRequestFigureProcessingclient = Pulse(api_key="YOUR_API_KEY")# 1) Extract the workbook with show_images enabled.response = client.extract( file=open("financials.xlsx", "rb"), figure_processing=ExtractRequestFigureProcessing( show_images=True, description=False, ),)# 2) Walk the typed Images array.for img in response.bounding_boxes.images or []: print(f"{img.id}: {img.visual_type} '{img.chart_title}' @ {img.excel_range}") print(f" url: {img.image_url}")# 3) Fetch the bytes for one chart.img = response.bounding_boxes.images[0]m = re.search(r"/results/([^/]+)/images/([^/?#]+)", img.image_url)job_id, filename = m.group(1), m.group(2)chunks = list(client.results.get_image(job_id=job_id, filename=filename))with open("chart.png", "wb") as f: f.write(b"".join(chunks))
import { PulseClient } from "pulse-ts-sdk";import * as fs from "node:fs";const client = new PulseClient({ apiKey: "YOUR_API_KEY" });// 1) Extract the workbook with show_images enabled.const response = await client.extract({ file: fs.createReadStream("financials.xlsx"), figureProcessing: { showImages: true, description: false },});// 2) Walk the typed Images array.for (const img of response.boundingBoxes?.Images ?? []) { console.log( `${img.id}: ${img.visualType} '${img.chartTitle}' @ ${img.excelRange}`, ); console.log(` url: ${img.imageUrl}`);}// 3) Fetch the bytes for one chart.const url = response.boundingBoxes?.Images?.[0]?.imageUrl;const m = url?.match(/\/results\/([^/]+)\/images\/([^/?#]+)/);const [, jobId, filename] = m!;const image = await client.results.getImage({ jobId, filename });// Persist `image` per your runtime (e.g. `await image.bytes()`).
# Step 1: extract and capture an image_url from the response.curl -sS -X POST https://api.runpulse.com/extract \ -H "x-api-key: YOUR_API_KEY" \ -F "file=@financials.xlsx" \ -F 'figure_processing={"show_images": true}' \ | jq -r '.bounding_boxes.Images[0].image_url'# Step 2: fetch the PNG bytes.curl -sS -X GET "https://api.runpulse.com/results/$JOB_ID/images/excel_image_1_1.png" \ -H "x-api-key: YOUR_API_KEY" \ -o chart.png
Input schema for extraction requests. Provide either file (direct upload) or fileUrl (remote URL).
file
file
Document to upload directly. Required unless fileUrl is provided.
fileUrl
string<uri>
Public or pre-signed URL that Pulse will download and extract. CSV and XLSB documents are converted to XLSX, as with direct uploads. Required unless file is provided.
model
enum<string>
Extraction model to use. pulse-ultra-2 runs Pulse Ultra 2; pulse-ultra-2-flash runs Pulse Ultra 2 Flash — lower-latency tier, billed at 0.5 credits per page (Ultra 2: 1); requires the org to be enabled for flash. Flash skips the optional passes unless asked: selection-mark detection is off by default, and the grouped Words category is included only when extensions.altOutputs.wlbb (or footnote references) requests word-level boxes; pulse-ultra-1 runs the previous-generation engine. If omitted or set to default, your organization's default backend is used (Pulse Ultra 2 for organizations upgraded to it), so send pulse-ultra-1 explicitly to keep a request on the previous engine.
Available options:
default,
pulse-ultra-1,
pulse-ultra-2,
pulse-ultra-2-flash
detectSelections
boolean
Pulse Ultra 2 only. Enables a specialized selection-mark detection pass that improves selected/unselected state accuracy for forms, checkboxes, radio buttons, handwritten checkmarks, X marks, and similar controls. Enabled by default when model is pulse-ultra-2; set to false to skip this pass. Off by default for pulse-ultra-2-flash (the lower-latency tier); set to true to run it there. Passing true with any other model returns a validation error.
extractionConfigId
string<uuid>
UUID of a saved extraction config in your organization. In a /pipeline/execute step, the step starts from the config's saved options and options set in the step override them; an unknown ID fails the pipeline at that step. /extract and /extract_async ignore it.
pages
string
Page range filter supporting segments such as 1-2 or mixed ranges like 1-2,5.
Pattern: ^[0-9]+(-[0-9]+)?(,[0-9]+(-[0-9]+)?)*$
forceUrl
boolean
default:false
When true, return the complete extraction result as a URL even if it is small. Spreadsheet extractions use URL delivery by default; set force_url: false to request inline spreadsheet output. URL delivery changes only the transport, not the result shape.
figureProcessing
object
Settings that control how figures and embedded visuals are processed. Applies to both PDFs/images (where figures are detected from layout) and spreadsheets (where charts and embedded images are read directly from the workbook). These options affect the markdown output and the bounding_boxes.Images[] array; they do not produce additional output fields elsewhere in the response.
Show child attributes
extensions
object
Settings that enable additional processing passes or alternate output formats. Each enabled extension produces a corresponding output field under response.extensions.*.
Show child attributes
spreadsheet
object
Settings for Excel/spreadsheet extraction. Controls handling of hidden rows, columns, and sheets, whether numeric cells are rendered using their display format or underlying raw value, where table cell metadata is returned (inline or as external artifacts), whether cell formatting is included, and optional trimming of empty phantom rows/columns past the last data-bearing cell. Applies to .xlsx, .xlsm, and .xls files. Accepts both camelCase and snake_case field names; spreadsheet_options is accepted as a legacy alias for this object.
Show child attributes
storage
object
Options for persisting extraction artifacts. When enabled (default), artifacts are saved to storage and a database record is created.
Show child attributes
async
boolean
default:false
If true, returns immediately with a job_id for polling via GET /job/{jobId}. Otherwise processes synchronously.
structuredOutput
object
deprecated
⚠️ DEPRECATED — Use the /schema endpoint after extraction instead. Pass the extraction_id from the extract response to /schema with your schema_config. This parameter still works for backward compatibility but will be removed in a future version.
Show child attributes
schema
objectstring
deprecated
(Deprecated) JSON schema describing structured data to extract. Use structuredOutput instead. Accepts either a JSON object or a stringified JSON representation.
schemaPrompt
string
deprecated
(Deprecated) Natural language prompt for schema-guided extraction. Use structuredOutput.schemaPrompt instead.
customPrompt
string
deprecated
(Deprecated) Custom instructions that augment the default extraction behaviour. Use figureProcessing or extensions instead.
chunking
string
deprecated
⚠️ DEPRECATED — Use extensions.chunking.chunkTypes instead. Comma-separated list of chunking strategies to apply (for example semantic,header,page,recursive). Still accepted for backward compatibility.
chunkSize
integer
deprecated
⚠️ DEPRECATED — Use extensions.chunking.chunkSize instead. Override for maximum characters per chunk when chunking is enabled.
Required range: x >= 1
extractFigure
boolean
default:false
deprecated
⚠️ DEPRECATED — Toggle to enable figure extraction in results.
figureDescription
boolean
default:false
deprecated
⚠️ DEPRECATED — Use figureProcessing.description instead. Toggle to generate descriptive captions for extracted figures.
showImages
boolean
default:false
deprecated
⚠️ DEPRECATED — Use figureProcessing.showImages instead. Embed base64-encoded images inline in figure tags in the output. Increases response size.
returnHtml
boolean
default:false
deprecated
⚠️ DEPRECATED — Use extensions.altOutputs.returnHtml instead. Whether to include HTML representation alongside markdown in the response.
thinking
boolean
default:false
deprecated
(Deprecated) Enables expanded rationale output for debugging.
Response
Extraction result. For documents under 70 pages the full result is returned inline. For larger documents and spreadsheet extractions the response can contain is_url: true and a single-use url to download the full result via GET /results/{jobId}.
Option 1
Option 2
Full extraction result returned by the synchronous /extract endpoint. Inherits all core fields and adds deprecated backward-compatibility fields.
markdown
string
Primary markdown content extracted from the document. Always present in the new format.
extensions
object
Output from enabled extensions. Each key corresponds to an extension that was enabled in the request under extensions.*. Only keys for enabled extensions are present.
Show child attributes
bounding_boxes
object
Positional bounding-box data for text, titles, headers, footers, images, and tables. Images carries chart/image visuals (with image_url when figure_processing.show_images is enabled), Tables the detected tables, and Text/Title/Footer the paragraph/title/footer regions. Additional keys (e.g. markdown_with_ids, defined_names) round-trip without being typed.
Show child attributes
extraction_id
string<uuid>
Persisted extraction ID. Present when storage is enabled (default). Use this ID with /split and /schema endpoints.
extraction_url
string
URL to view the extraction on the Pulse platform. Present when storage is enabled.
page_count
integer
Number of pages processed.
Required range: x >= 1
failed_pages
object[]
Large documents only: the pages that could not be extracted, each {page, error}; [] when every page was extracted. The job still completes, and page_count stays the document's page count.
Show child attributes
pages_succeeded
integer
Large documents only: pages extracted (and billed).
Required range: x >= 0
pages_failed
integer
Large documents only: pages that could not be extracted; 0 when none.
Required range: x >= 0
plan_info
object
Billing tier and cumulative usage information. Includes total_credits_used (primary billing metric) and pages_used (legacy compatibility).
Show child attributes
warnings
string[]
Non-fatal warnings generated during extraction. Includes deprecation notices when legacy input parameters are used, as well as processing warnings (e.g. word-level bounding box limitations).
credits_used
number<float> | null
Number of credits consumed by this request. Only present when the organization has the credit billing system enabled.
html
string
deprecated
Deprecated — Use extensions.altOutputs.html instead. HTML representation of the extracted content. Present when the legacy returnHtml input was used.
chunks
object
deprecated
Deprecated — Use extensions.chunking instead. Document content split into chunks. Present when the legacy chunking input was used.
Show child attributes
structured_output
object
deprecated
Deprecated — Only present when the deprecated structuredOutput input parameter was used. Use the /schema endpoint after extraction instead.
Show child attributes
input_schema
object
deprecated
Deprecated — Echo of the schema that was applied. Only present when the deprecated structuredOutput input parameter was used.
schema_error
string
deprecated
Deprecated — Error message if schema processing failed via the deprecated structuredOutput input parameter.
content
string
deprecated
Deprecated — Alias for markdown. Included for backward compatibility with older SDK versions. Prefer markdown.
job_id
string
deprecated
Deprecated — Identifier assigned to the extraction job. Retained for backward compatibility.
metadata
object
deprecated
Deprecated — Additional metadata supplied by the backend. Retained for backward compatibility.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Pulse API","colors":{"primary":"#3573f6","light":"#4a90f9","dark":"#2561ef"},"logo":{"light":"https://mintcdn.com/pulseai/OJ897TEZf8bV6lk8/logo-icon.svg?fit=max\u0026auto=format\u0026n=OJ897TEZf8bV6lk8\u0026q=85\u0026s=1062873c6d0f5dd9971e379f2210c1cb","dark":"https://mintcdn.com/pulseai/OJ897TEZf8bV6lk8/logo-icon.svg?fit=max\u0026auto=format\u0026n=OJ897TEZf8bV6lk8\u0026q=85\u0026s=1062873c6d0f5dd9971e379f2210c1cb"},"favicon":"https://mintcdn.com/pulseai/OJ897TEZf8bV6lk8/logo-icon.svg?fit=max\u0026auto=format\u0026n=OJ897TEZf8bV6lk8\u0026q=85\u0026s=1062873c6d0f5dd9971e379f2210c1cb","api":{"openapi":{"source":"api-reference/openapi.yml","overlays":["api-reference/pulse-version.overlay.yaml"]}},"appearance":{"default":"light","strict":true},"background":{"color":{"light":"#ffffff","dark":"#000000"}},"navbar":{"links":[{"href":"https://platform.runpulse.com","label":"Platform"},{"href":"mailto:support@trypulse.ai","label":"Support"}],"primary":{"type":"button","label":"Get API Key","href":"https://platform.runpulse.com/"}},"footer":{"socials":{"x":"https://x.com/Pulse__AI","linkedin":"https://www.linkedin.com/company/pulse-ai-corp"}},"fonts":{"heading":{"family":"Inria Serif"},"body":{"family":"Geist"}},"icons":{"library":"fontawesome"},"integrations":{"posthog":{"apiKey":"phc_FutnpUqAQasGvZ2zQSA1mt9uu14YLiO85JV69tm0cYz"}},"banner":{"content":"**Pulse API v2 is here.** Upgrading from v1? Read [Moving from V1](/v2/moving-from-v1).","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pulseai","hasAudioNarration":false,"actualSubdomain":"pulseai","customDomains":["docs.runpulse.com"],"gitSource":{"type":"github","owner":"pulse-software-corp","repo":"pulse-api","deployBranch":"pulse-dev","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":"","_id":"6aea3a8ca753b7b0d57a1a6e"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af7adea73417820f2ea77c4","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"API Reference","count":201},{"language":"default","tag":"Documentation","count":84},{"language":"default","tag":"Errors","count":46},{"language":"default","tag":"Codes","count":45},{"language":"default","tag":"Configs","count":42},{"language":"default","tag":"Cookbooks","count":40},{"language":"default","tag":"Platform Reference","count":28},{"language":"default","tag":"Core Concepts","count":19},{"language":"default","tag":"Agent Tools","count":16},{"language":"default","tag":"Pipeline Steps","count":14}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":".build-examples{position:relative;padding-left:48px}.build-examples::before{content:'';position:absolute;left:23px;top:48px;bottom:48px;width:2px;background-color:rgba(255, 255, 255, 0.1)}.example{display:flex;align-items:flex-start;margin-bottom:48px;position:relative}.icon-container{position:relative;left:-48px;margin-right:-24px;width:46px;height:46px;border-radius:12px;background:#1c1c1c;border:1px solid rgba(255, 255, 255, 0.1);display:flex;align-items:center;justify-content:center;z-index:1}.icon-container i{font-size:20px;color:#ffffff}.content{flex:1}.content h3{margin:0 0 8px 0;font-size:20px;font-weight:500}.content p{margin:0;color:rgba(255, 255, 255, 0.7);line-height:1.5}.nav-logo-name{display:flex!important;color:#ffffff;font-size:1.2rem;font-weight:500}.logo-title{display:block!important;visibility:visible!important;opacity:1!important}img[src*=\"/images/platform/\"]{display:block;width:auto;max-width:100%;height:auto;margin:16px auto 24px;background:#ffffff;border:1px solid rgba(15, 23, 42, 0.14);border-radius:8px;box-shadow:0 1px 1px rgba(15, 23, 42, 0.04)}html[class~=\"dark\"] img[src*=\"/images/platform/\"]{background:#020617;border-color:rgba(226, 232, 240, 0.16);box-shadow:0 1px 1px rgba(0, 0, 0, 0.28)}figure.frame img{max-height:440px;width:auto}.mdx-content[data-page-href*=\"/v2/\"] .mermaid svg{max-height:460px}#content-area:has(.api-section) #page-title{font-size:28px;line-height:1.25}#content-area:has(.api-section) .mt-2.text-lg.prose,#content-area:has(.api-section) .mt-2.text-lg.prose p{font-size:14px;line-height:1.6}.api-section-heading-title{margin-top:1rem}.api-section-heading{row-gap:0.5rem}.api-section .pt-6.pb-4{padding-top:0.25rem;padding-bottom:0.25rem}.primitive-param-field>.py-6,.object-param-field>.py-6{padding-top:0.75rem;padding-bottom:0.75rem}.primitive-param-field>.py-6>.mt-4,.object-param-field>.py-6>.mt-4{margin-top:0.25rem}[data-component-part=\"field-info-pill\"]{word-break:normal;overflow-wrap:anywhere}[data-pulse-more]>div>.param-head{cursor:pointer}[data-pulse-more]>div>.param-head::before{content:'';position:absolute;left:-16px;top:8px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;color:rgb(120 113 108);transform:rotate(-45deg);transition:transform 0.15s}[data-pulse-open]>div>.param-head::before{transform:rotate(45deg);top:6px}[data-pulse-extra]:not([data-pulse-shown]){display:none}[data-pulse-extra]{margin-top:0.5rem}details[data-pulse-children]{margin-top:0.25rem;border:0}details[data-pulse-children]>summary{display:none}details[data-pulse-children]>.expandable-content{margin:0;padding:0 0 0 1rem;border-top:0;border-left:1px solid rgb(231 229 228)}html.dark details[data-pulse-children]>.expandable-content{border-left-color:rgb(255 255 255 / 0.1)}.method-nav-pill{width:auto}.method-nav-pill>[data-pulse-method]{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border-radius:5px;font-size:0;color:var(--pulse-method-color);background:var(--pulse-method-tint)}.method-nav-pill>[data-pulse-method]::before{content:'';width:13px;height:13px;background-color:currentColor;-webkit-mask:var(--pulse-method-icon) center / contain no-repeat;mask:var(--pulse-method-icon) center / contain no-repeat}[data-pulse-method=\"post\"]{--pulse-method-color: #1d4ed8;--pulse-method-tint: #dbeafe;--pulse-method-icon: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E\")}[data-pulse-method=\"get\"]{--pulse-method-color: #15803d;--pulse-method-tint: #dcfce7;--pulse-method-icon: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 7 7 17'/%3E%3Cpath d='M17 17H7V7'/%3E%3C/svg%3E\")}[data-pulse-method=\"del\"],[data-pulse-method=\"delete\"]{--pulse-method-color: #b91c1c;--pulse-method-tint: #fee2e2;--pulse-method-icon: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E\")}[data-pulse-method=\"patch\"],[data-pulse-method=\"put\"]{--pulse-method-color: #b45309;--pulse-method-tint: #fef3c7;--pulse-method-icon: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E\")}html.dark [data-pulse-method=\"post\"]{--pulse-method-color: #93c5fd;--pulse-method-tint: rgb(59 130 246 / 0.2)}html.dark [data-pulse-method=\"get\"]{--pulse-method-color: #86efac;--pulse-method-tint: rgb(34 197 94 / 0.2)}html.dark [data-pulse-method=\"del\"],html.dark [data-pulse-method=\"delete\"]{--pulse-method-color: #fca5a5;--pulse-method-tint: rgb(239 68 68 / 0.2)}html.dark [data-pulse-method=\"patch\"],html.dark [data-pulse-method=\"put\"]{--pulse-method-color: #fcd34d;--pulse-method-tint: rgb(245 158 11 / 0.2)}[data-testid=\"try-it-button\"]{display:none}#content-area div:has(>div>div>.method-pill),#content-area div:has(>.method-pill){border:0;padding:0;background:none}#content-area div:has(>.method-pill){gap:0.5rem}.method-pill[data-pulse-method]{display:inline-flex;align-items:center;gap:4px;padding:1px 6px;border-radius:5px;font-size:12px;font-weight:500;line-height:18px;color:var(--pulse-method-color);background:var(--pulse-method-tint)}.method-pill[data-pulse-method]::before{content:'';width:12px;height:12px;background-color:currentColor;-webkit-mask:var(--pulse-method-icon) center / contain no-repeat;mask:var(--pulse-method-icon) center / contain no-repeat}#content-area div:has(>.method-pill) [data-component-part=\"scroll-area-content\"] div{font-size:13px;font-weight:400;color:rgb(82 81 78)}html.dark #content-area div:has(>.method-pill) [data-component-part=\"scroll-area-content\"] div{color:rgb(255 255 255 / 0.6)}"}]}
{"page":{"pagePath":"v1/api-reference/endpoint/extract","slug":"/v1/api-reference/endpoint/extract","pageMetadata":{"title":"Extract File","openapi":"api-reference/openapi.yml POST /extract","description":"The primary endpoint for the Pulse API. Parses uploaded documents or remote\nfile URLs and returns rich markdown content with optional structured data\nextraction based on user-provided schemas and extraction options.\n\nSet `async: true` to return immediately with a job_id for polling via\nGET /job/{jobId}. Otherwise processes synchronously.\n\nFor large TIFFs with Pulse Ultra 2, submit a `file_url` ending in\n`.tif` or `.tiff` with `async: true`. Pulse downloads and processes\nthe image in bounded tiles after accepting the job. Results retain\nthe original TIFF page numbers and coordinates; internal tiles do\nnot increase the billed page count.\n\nWith Pulse Ultra 2, multi-page TIFF uploads also preserve every frame.\nPage ranges select original frames; billing counts the selected frames.\n\nTo process many files at once, see [Batch Extract](api:POST/batch/extract)\nor the [Batch Processing guide](/batch).","href":"/v1/api-reference/endpoint/extract"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"The primary endpoint for the Pulse API. Parses uploaded documents or remote\\nfile URLs and returns rich markdown content with optional structured data\\nextraction based on user-provided schemas and extraction options.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Set \", _jsx(_components.code, {\n children: \"async: true\"\n }), \" to return immediately with a job_id for polling via\\nGET /job/\", \". Otherwise processes synchronously.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"For large TIFFs with Pulse Ultra 2, submit a \", _jsx(_components.code, {\n children: \"file_url\"\n }), \" ending in\\n\", _jsx(_components.code, {\n children: \".tif\"\n }), \" or \", _jsx(_components.code, {\n children: \".tiff\"\n }), \" with \", _jsx(_components.code, {\n children: \"async: true\"\n }), \". Pulse downloads and processes\\nthe image in bounded tiles after accepting the job. Results retain\\nthe original TIFF page numbers and coordinates; internal tiles do\\nnot increase the billed page count.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"With Pulse Ultra 2, multi-page TIFF uploads also preserve every frame.\\nPage ranges select original frames; billing counts the selected frames.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"To process many files at once, see \", _jsx(_components.a, {\n href: \"api:POST/batch/extract\",\n children: \"Batch Extract\"\n }), \"\\nor the \", _jsx(_components.a, {\n href: \"/batch\",\n children: \"Batch Processing guide\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Info,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(Info,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Pipeline Step 1`}),` — Extract is where document processing begins: every downstream step consumes its `,_jsx(_components.code,{children:`extraction_id`}),`. After extraction, you can optionally `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/split`,children:`split`}),` the document into topics, apply `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/schema`,children:`schema extraction`}),` to get structured data, or use `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/tables`,children:`tables`}),` for span-aware table extraction.`]}),_jsxs(_components.p,{children:[`Handling mixed document types? `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/classify`,children:_jsx(_components.code,{children:`/classify`})}),` can run before Extract to route each raw document to the right pipeline — it only chooses `,_jsx(_components.em,{children:`which`}),` pipeline runs, so extraction still happens here.`]})]}),`\n`,_jsx(_components.p,{children:`Extract content from documents. Returns markdown or HTML formatted content with optional structured data extraction.`}),`\n`,_jsxs(_components.p,{children:[`For large results (typically documents over 70 pages, spreadsheet extractions, or any response above 5 MB), the API returns a one-time download link at `,_jsx(_components.code,{children:`https://api.runpulse.com/results/{job_id}`}),` instead of inlining the payload. Fetching that URL returns the same complete extraction result JSON you would receive inline. See `,_jsx(_components.a,{href:`#large-result-response`,children:`Large Result Response`}),` below.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`For large documents or batch processing workflows, set `,_jsx(_components.code,{children:`async: true`}),` to process asynchronously and poll for results via `,_jsxs(_components.a,{href:`/v1/api-reference/endpoint/poll`,children:[`GET /job/`,`{`,`jobId`,`}`]}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`To process many files at once, use `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/batch-overview#batch-extract`,children:`Batch Extract`}),`. It accepts an S3 prefix, local directory, or list of URLs and runs `,_jsx(_components.code,{children:`/extract`}),` on each file in parallel.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`async-mode`,children:`Async Mode`}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`async: true`}),` to return immediately with a job ID for polling:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/document.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"async\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Async Response (200):`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"job_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"abc123-def456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Document processing started\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`GET /job/{job_id}`}),` to poll for completion.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(Heading,{level:`3`,id:`document-source`,children:`Document Source`}),`\n`,_jsx(_components.p,{children:`Provide the document using one of these methods:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`file`})}),_jsx(_components.td,{children:`binary`}),_jsx(_components.td,{children:`Document file to upload directly (multipart/form-data).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`file_url`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Public or pre-signed URL that Pulse will download and extract.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`extraction-options`,children:`Extraction Options`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`string (enum)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`default`})}),_jsxs(_components.td,{children:[`Extraction model to use. One of `,_jsx(_components.code,{children:`default`}),` or `,_jsx(_components.code,{children:`pulse-ultra-2`}),`. `,_jsx(_components.code,{children:`pulse-ultra-2`}),` uses Pulse’s vision-language model with built-in refinement, figure/chart extraction, and word-level bounding boxes.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pages`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsxs(_components.td,{children:[`Page range filter (1-indexed). Supports segments like `,_jsx(_components.code,{children:`1-2`}),` or mixed ranges like `,_jsx(_components.code,{children:`1-2,5`}),`. Page 1 is the first page.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`figure_processing`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsxs(_components.td,{children:[`Settings that control how figures in the document are processed. These affect the `,_jsx(_components.strong,{children:`markdown output directly`}),` and do not produce additional output fields. See `,_jsx(_components.a,{href:`#figure-processing`,children:`Figure Processing`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsxs(_components.td,{children:[`Settings that enable additional processing or alternate output formats. Each enabled extension produces a corresponding result under `,_jsx(_components.code,{children:`response.extensions.*`}),`. See `,_jsx(_components.a,{href:`#extensions`,children:`Extensions`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`spreadsheet`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsxs(_components.td,{children:[`Settings for Excel/spreadsheet extraction. Controls hidden rows, columns, sheets, raw values, phantom-cell trimming, and whether table `,_jsx(_components.code,{children:`cell_data`}),` is included. Applies to `,_jsx(_components.code,{children:`.xlsx`}),`, `,_jsx(_components.code,{children:`.xlsm`}),`, and `,_jsx(_components.code,{children:`.xls`}),` files. See `,_jsx(_components.a,{href:`#spreadsheet-options`,children:`Spreadsheet Options`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`storage`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsxs(_components.td,{children:[`Options for persisting extraction artifacts. See `,_jsx(_components.a,{href:`#storage-options`,children:`Storage Options`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`async`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`If `,_jsx(_components.code,{children:`true`}),`, returns immediately with a `,_jsx(_components.code,{children:`job_id`}),` for polling via `,_jsx(_components.code,{children:`GET /job/{jobId}`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`force_url`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, return the complete extraction result as a URL even if it is small. Spreadsheet responses are URL-backed by default; set `,_jsx(_components.code,{children:`force_url: false`}),` to request inline spreadsheet output. URL delivery changes only the transport, not the result shape.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`structured_output`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`⚠️ Deprecated`}),` — Use the `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/schema`,children:_jsx(_components.code,{children:`/schema`})}),` endpoint after extraction instead. Still works for backward compatibility.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`figure-processing`,children:`Figure Processing`}),`\n`,_jsxs(_components.p,{children:[`Settings under `,_jsx(_components.code,{children:`figure_processing`}),` control how figures (images, charts, diagrams) and embedded visuals are processed. Applies to both PDFs/images (figures detected from layout) and spreadsheets (charts and embedded images read directly from the workbook). Affects the markdown output and the `,_jsx(_components.code,{children:`bounding_boxes.Images[]`}),` array.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`figure_processing.description`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Generate descriptive captions for extracted visuals. Captions appear under `,_jsx(_components.code,{children:`bounding_boxes.Images[].description`}),` and inline in the markdown output. Applies to both detected charts and non-chart images.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`figure_processing.show_images`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Return image URLs for extracted visuals. URLs appear under `,_jsx(_components.code,{children:`bounding_boxes.Images[].image_url`}),` and resolve to a Pulse-hosted PNG/JPEG served from `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/results-image`,children:_jsx(_components.code,{children:`GET /results/{jobId}/images/{filename}`})}),`. Applies to both detected charts and non-chart images.`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`For spreadsheets specifically, `,_jsx(_components.code,{children:`show_images: true`}),` collects every embedded chart and image in the workbook and emits one entry per visual under `,_jsx(_components.code,{children:`bounding_boxes.Images`}),`, with chart-specific fields like `,_jsx(_components.code,{children:`chart_type`}),`, `,_jsx(_components.code,{children:`chart_title`}),`, and `,_jsx(_components.code,{children:`source_ranges`}),` populated. See `,_jsx(_components.a,{href:`/v1/api-reference/bounding-boxes#images-array`,children:`Bounding Boxes`}),` for the full field list.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`spreadsheet-options`,children:`Spreadsheet Options`}),`\n`,_jsxs(_components.p,{children:[`Settings under `,_jsx(_components.code,{children:`spreadsheet`}),` control how Excel workbooks (`,_jsx(_components.code,{children:`.xlsx`}),`, `,_jsx(_components.code,{children:`.xlsm`}),`, `,_jsx(_components.code,{children:`.xls`}),`) are processed. By default, hidden rows, columns, and sheets are excluded from extraction output, cell values are rendered the way Excel displays them, and table cell metadata is included. Phantom-cell trimming is opt-in. Spreadsheet responses are returned as full-result URLs by default because workbook `,_jsx(_components.code,{children:`cell_data`}),` can make the payload large even for modest `,_jsx(_components.code,{children:`.xlsx`}),` files.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`spreadsheet.include_hidden_rows`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Include rows that are hidden in the Excel workbook.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`spreadsheet.include_hidden_cols`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Include columns that are hidden in the Excel workbook.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`spreadsheet.include_hidden_sheets`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Include sheets that are hidden in the Excel workbook.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`spreadsheet.use_raw_values`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Emit the underlying numeric value for number cells instead of the Excel display-formatted text — e.g. `,_jsx(_components.code,{children:`1201.67`}),` rather than `,_jsx(_components.code,{children:`$1,202`}),` when the cell uses a rounded currency format. Useful when downstream processing needs exact amounts (cent-level precision) rather than what the workbook shows visually. Percent-formatted cells and dates keep their display rendering. Does not apply to legacy `,_jsx(_components.code,{children:`.xls`}),` files.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`spreadsheet.only_data_rows`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, trim trailing empty rows past the last cell carrying a value or formula. See `,_jsx(_components.a,{href:`#phantom-cell-trimming-only_data_rows--only_data_cols`,children:`Phantom-cell trimming`}),` below.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`spreadsheet.only_data_cols`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, trim trailing empty columns past the last cell carrying a value or formula. Same rationale as `,_jsx(_components.code,{children:`only_data_rows`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`spreadsheet.cell_data`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsxs(_components.td,{children:[`Include cell-level table metadata under `,_jsx(_components.code,{children:`bounding_boxes.Tables[].cell_data`}),`. Set to `,_jsx(_components.code,{children:`false`}),` to omit this metadata and reduce output size.`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`These settings accept both camelCase (`,_jsx(_components.code,{children:`includeHiddenRows`}),`, `,_jsx(_components.code,{children:`onlyDataRows`}),`, `,_jsx(_components.code,{children:`cellData`}),`) and snake_case (`,_jsx(_components.code,{children:`include_hidden_rows`}),`, `,_jsx(_components.code,{children:`only_data_rows`}),`, `,_jsx(_components.code,{children:`cell_data`}),`) formats.`]})}),`\n`,_jsxs(Heading,{level:`4`,id:`phantom-cell-trimming-only_data_rows-/-only_data_cols`,children:[`Phantom-cell trimming (`,_jsx(_components.code,{children:`only_data_rows`}),` / `,_jsx(_components.code,{children:`only_data_cols`}),`)`]}),`\n`,_jsx(_components.p,{children:`Excel files exported from claims systems, ERPs, and other automated pipelines routinely declare a “used range” that extends hundreds of thousands of rows past where the data actually ends. A typical case: a 57 MB workbook with only ~500 rows of real data, where the other ~1,000,000 rows are empty cells that exist only because they were once selected and styled. These phantom cells inflate file size by orders of magnitude and can exhaust parser memory on the extraction pipeline.`}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`only_data_rows: true`}),` and `,_jsx(_components.code,{children:`only_data_cols: true`}),` to have Pulse scan each sheet once before parsing, find the largest row and column containing a value or formula, and ignore everything beyond that extent. Surviving cells keep their `,_jsx(_components.strong,{children:`original A1 coordinates`}),` (e.g., a value at `,_jsx(_components.code,{children:`B7`}),` in the source is still `,_jsx(_components.code,{children:`B7`}),` in the output), so any citation or bounding box that references a specific cell remains stable. The trim only kicks in on large sheets (≥5 MB of XML per sheet), so small, well-formed workbooks pay no overhead either way.`]}),`\n`,_jsxs(_components.p,{children:[`Both flags default to `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`pulse-ultra-2-options`,children:`Pulse Ultra 2 Options`}),`\n`,_jsxs(_components.p,{children:[`These options are available only when `,_jsx(_components.code,{children:`model: pulse-ultra-2`}),` is set. Passing any of them with the default model returns a 400 error listing the offending fields.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refine`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Run a full-page OCR and formatting correction pass after extraction. Improves accuracy on dense layouts, numerical values, and table structure. Adds ~1–2s per page. Overridden by `,_jsx(_components.code,{children:`refine_options`}),` if both are provided.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refine_options`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsxs(_components.td,{children:[`Granular refinement targets. Takes precedence over the boolean `,_jsx(_components.code,{children:`refine`}),` flag. See below.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refine_options.tables`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Fix table cell values, structure, and headers against the source image.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refine_options.text`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Fix OCR errors, missing or extra content, and numerical accuracy (tables untouched).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refine_options.formatting`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Add strikethrough, italic, bold, super/subscript, and LaTeX formatting (tables untouched).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extract_figure`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Convert charts and data visualizations into HTML `,_jsx(_components.code,{children:`\u003ctable>`}),` blocks, wrapped in `,_jsx(_components.code,{children:`\u003cfigure-table>`}),` tags. Useful for financial decks, dashboards, and scientific charts.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`figure_description`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Generate a 1–2 paragraph natural-language description of each picture, wrapped in `,_jsx(_components.code,{children:`\u003cfigure-description>`}),` tags. Combines well with `,_jsx(_components.code,{children:`extract_figure`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`detect_selections`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsxs(_components.td,{children:[`Detect selected and unselected marks with a specialized selection-mark model. Improves accuracy on forms, checkboxes, radio buttons, handwritten checkmarks, X marks, and similar controls. Enabled by default for `,_jsx(_components.code,{children:`pulse-ultra-2`}),`; set to `,_jsx(_components.code,{children:`false`}),` to skip this pass.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`additional_prompt`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"\"`})}),_jsx(_components.td,{children:`Extra context injected into the extraction prompt. Use to steer extraction toward a specific domain or attention focus. Max 4000 characters.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`custom_image_prompt`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"\"`})}),_jsxs(_components.td,{children:[`Extra context appended to the prompt used by `,_jsx(_components.code,{children:`figure_description`}),` and `,_jsx(_components.code,{children:`extract_figure`}),`. Tunes image and chart interpretation. Max 2000 characters.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`custom_refine_prompt`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"\"`})}),_jsxs(_components.td,{children:[`Extra context appended to the refinement prompt. Only applies when `,_jsx(_components.code,{children:`refine: true`}),` or `,_jsx(_components.code,{children:`refine_options`}),` is set. Max 2000 characters.`]})]})]})]}),`\n`,_jsx(Heading,{level:`4`,id:`selection-mark-detection`,children:`Selection mark detection`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`detect_selections: true`}),` with `,_jsx(_components.code,{children:`model: pulse-ultra-2`}),` when a document contains forms, checkboxes, radio buttons, handwritten selection marks, or other marked-choice controls. Pulse runs a specialized detection pass for these marks so selected/unselected states are less likely to be missed or confused with nearby text, boxes, or handwriting. When available, the detected state is returned on the relevant bounding-box items as `,_jsx(_components.code,{children:`selected`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`markdown-output-additions`,children:`Markdown output additions`}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`extract_figure`}),` or `,_jsx(_components.code,{children:`figure_description`}),` is enabled, figures in `,_jsx(_components.code,{children:`response.markdown`}),` include additional tags:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`figure`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` data-page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`figure-table`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`...HTML table for the chart...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`figure-table`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`figure-description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`...1–2 paragraph description...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`figure-description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`figure`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`refine`}),` (or `,_jsx(_components.code,{children:`refine_options`}),`) is set, markdown content is post-processed page-by-page; output is cleaner but typically grows ~1.5–3x in size for dense documents. No new tags are introduced.`]}),`\n`,_jsx(Heading,{level:`3`,id:`extensions`,children:`Extensions`}),`\n`,_jsxs(_components.p,{children:[`Settings under `,_jsx(_components.code,{children:`extensions`}),` enable additional processing passes or alternate output formats. Each enabled extension produces a `,_jsx(_components.strong,{children:`corresponding output field`}),` under `,_jsx(_components.code,{children:`response.extensions.*`}),`. For example, enabling `,_jsx(_components.code,{children:`extensions.chunking`}),` produces `,_jsx(_components.code,{children:`response.extensions.chunking`}),`, and enabling `,_jsx(_components.code,{children:`extensions.alt_outputs.return_html`}),` produces `,_jsx(_components.code,{children:`response.extensions.alt_outputs.html`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.document_metadata`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Extract native properties and deterministic structure from the original file. Results appear under `,_jsx(_components.code,{children:`response.extensions.document_metadata`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.footnote_references`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Link footnote markers to their corresponding footnote text.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.chunking`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Chunking configuration. See below.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.chunking.chunk_types`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsxs(_components.td,{children:[`List of chunking strategies: `,_jsx(_components.code,{children:`semantic`}),`, `,_jsx(_components.code,{children:`header`}),`, `,_jsx(_components.code,{children:`page`}),`, `,_jsx(_components.code,{children:`recursive`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.chunking.chunk_size`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Maximum characters per chunk.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.alt_outputs`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Alternate output formats. See below.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.alt_outputs.wlbb`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Enable word-level bounding boxes (PDF only). Results in `,_jsx(_components.code,{children:`response.extensions.alt_outputs.wlbb`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.alt_outputs.return_html`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Include HTML representation. `,_jsx(_components.code,{children:`response.markdown`}),` is still present; HTML is at `,_jsx(_components.code,{children:`response.extensions.alt_outputs.html`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.alt_outputs.return_xml`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Include XML representation (work in progress).`})]})]})]}),`\n`,_jsxs(Heading,{level:`3`,id:`pulse-ultra-2-rate-limits`,children:[_jsx(_components.code,{children:`pulse-ultra-2`}),` Rate Limits`]}),`\n`,_jsxs(_components.p,{children:[`Requests made with `,_jsx(_components.code,{children:`model: pulse-ultra-2`}),` are subject to dedicated rate limits, separate from standard extraction:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Limit`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per minute`}),_jsx(_components.td,{children:`5 extractions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Per hour`}),_jsx(_components.td,{children:`20 extractions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`File size`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`50 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Concurrent`}),_jsx(_components.td,{children:`2 per API key`})]})]})]}),`\n`,_jsx(_components.p,{children:`The concurrent limit is the one that most commonly applies in practice — long-running extractions held open while new requests arrive will trip it first.`}),`\n`,_jsx(Heading,{level:`3`,id:`storage-options`,children:`Storage Options`}),`\n`,_jsx(_components.p,{children:`Control whether extractions are saved to your extraction library:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`storage.enabled`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsxs(_components.td,{children:[`Whether to persist extraction artifacts. Set to `,_jsx(_components.code,{children:`false`}),` for temporary extractions.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`storage.folder_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Target folder name to save the extraction to. Creates the folder if it doesn’t exist.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`storage.folder_id`})}),_jsx(_components.td,{children:`string (uuid)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsxs(_components.td,{children:[`Target folder ID to save the extraction to. Takes precedence over `,_jsx(_components.code,{children:`folder_name`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`deprecated-fields`,children:`Deprecated Fields`}),`\n`,_jsx(_components.p,{children:`The following input fields are deprecated and will be removed in a future version. They are still accepted for backward compatibility.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Replacement`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`show_images`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.code,{children:`figure_processing.show_images`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`chunking`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.code,{children:`extensions.chunking.chunk_types`}),` (array instead of comma-separated string)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`chunk_size`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.code,{children:`extensions.chunking.chunk_size`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`return_html`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.code,{children:`extensions.alt_outputs.return_html`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`structured_output`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/schema`,children:_jsx(_components.code,{children:`/schema`})}),` endpoint after extraction. Pass `,_jsx(_components.code,{children:`extraction_id`}),` + `,_jsx(_components.code,{children:`schema_config`}),`. Accepts `,_jsx(_components.code,{children:`schema`}),`, `,_jsx(_components.code,{children:`schema_prompt`}),`, and `,_jsx(_components.code,{children:`effort`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`schema`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/schema`,children:_jsx(_components.code,{children:`/schema`})}),` endpoint after extraction`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`schema_prompt`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/schema`,children:_jsx(_components.code,{children:`/schema`})}),` endpoint with `,_jsx(_components.code,{children:`schema_config.schema_prompt`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`custom_prompt`})}),_jsx(_components.td,{children:`No replacement`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`thinking`})}),_jsx(_components.td,{children:`No replacement`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`When legacy input fields are used, the API returns a deprecation warning in the `,_jsx(_components.code,{children:`warnings`}),` array directing you to the updated field names. See the `,_jsx(_components.a,{href:`https://docs.runpulse.com/api-reference/endpoint/extract`,children:`latest documentation`}),` for details.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`The response structure varies based on document size to optimize for different use cases.`}),`\n`,_jsx(Heading,{level:`3`,id:`standard-inline-response`,children:`Standard Inline Response`}),`\n`,_jsx(_components.p,{children:`For non-spreadsheet documents under 70 pages whose response payload stays below the inline threshold, results are returned directly in the response body:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`40`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`40`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"markdown\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"# Document Title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Extracted content...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`15`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"extraction_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"abc123-def456-ghi789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"extraction_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://platform.runpulse.com/dashboard/extractions/abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"credits_used\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"plan_info\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"growth\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pages_used\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`15`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_credits_used\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`49.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"note\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Pulse Ultra\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bounding_boxes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"Title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"Text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"Tables\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"Images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"excel_image_1_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"visual_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chart\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.runpulse.com/results/abc123-def456-ghi789/images/excel_image_1_1.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chart_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BarChart\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chart_title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Revenue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"excel_range\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"D2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sheet_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Charts\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"markdown_with_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cp data-bb-text-id=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`txt-1`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`>...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"extensions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chunking\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"semantic\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chunk 1...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chunk 2...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"header\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"section 1...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"section 2...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"altOutputs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"html\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003chtml>...\u003c/html>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"warnings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`response-fields`,children:`Response Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`markdown`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Clean markdown content extracted from the document. Always present.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`page_count`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Total number of pages processed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extraction_id`})}),_jsx(_components.td,{children:`string (uuid)`}),_jsxs(_components.td,{children:[`Persisted extraction ID. Present when storage is enabled (default). Use with `,_jsx(_components.code,{children:`/split`}),` and `,_jsx(_components.code,{children:`/schema`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extraction_url`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`URL to view the extraction in the Pulse Platform. Present when storage is enabled.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`credits_used`})}),_jsx(_components.td,{children:`number`}),_jsxs(_components.td,{children:[`Credits consumed by `,_jsx(_components.strong,{children:`this request`}),`. Only present when the org has the credit billing system enabled.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`plan_info`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`Billing tier and `,_jsx(_components.strong,{children:`cumulative`}),` usage information for the calling org, including this request. Includes `,_jsx(_components.code,{children:`tier`}),`, `,_jsx(_components.code,{children:`total_credits_used`}),` (primary billing metric), `,_jsx(_components.code,{children:`pages_used`}),` (legacy), and an optional `,_jsx(_components.code,{children:`note`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`bounding_boxes`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`Typed bounding-box data — `,_jsx(_components.code,{children:`Images`}),`, `,_jsx(_components.code,{children:`Tables`}),`, `,_jsx(_components.code,{children:`Text`}),`, `,_jsx(_components.code,{children:`Title`}),`, `,_jsx(_components.code,{children:`Footer`}),`, plus `,_jsx(_components.code,{children:`markdown_with_ids`}),`. See `,_jsx(_components.a,{href:`/v1/api-reference/bounding-boxes`,children:`Bounding Boxes`}),` for the full field list including the chart/image fields under `,_jsx(_components.code,{children:`Images`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Output from enabled extensions. Only keys for enabled extensions are present. See below.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.document_metadata`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`Native properties and deterministic structure from the original file (when `,_jsx(_components.code,{children:`extensions.document_metadata`}),` is enabled). See `,_jsx(_components.a,{href:`#document-metadata`,children:`Document Metadata`}),` below.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.chunking`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`Chunk results by strategy (when `,_jsx(_components.code,{children:`extensions.chunking`}),` is enabled).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.footnoteReferences`})}),_jsx(_components.td,{children:`array`}),_jsxs(_components.td,{children:[`List of detected footnotes with their in-text references (when `,_jsx(_components.code,{children:`extensions.footnote_references`}),` is enabled). See `,_jsx(_components.a,{href:`#footnote-references`,children:`Footnote References`}),` below.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.altOutputs.wlbb`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`Word-level bounding boxes (when `,_jsx(_components.code,{children:`extensions.alt_outputs.wlbb`}),` is enabled).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.altOutputs.html`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`HTML representation (when `,_jsx(_components.code,{children:`extensions.alt_outputs.return_html`}),` is enabled).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.altOutputs.xml`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`XML representation (when `,_jsx(_components.code,{children:`extensions.alt_outputs.return_xml`}),` is enabled, WIP).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`warnings`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`Non-fatal warnings generated during extraction, including deprecation notices for legacy input usage.`})]})]})]}),`\n`,_jsx(Heading,{level:`4`,id:`deprecated-response-fields`,children:`Deprecated Response Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Replacement`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`html`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.altOutputs.html`})}),_jsxs(_components.td,{children:[`Present when legacy `,_jsx(_components.code,{children:`return_html`}),` input is used.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`chunks`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`extensions.chunking`})}),_jsxs(_components.td,{children:[`Present when legacy `,_jsx(_components.code,{children:`chunking`}),` input is used.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`plan-info`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`plan_info`})}),_jsx(_components.td,{children:`Present when only legacy inputs are used.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`structured_output`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/schema`,children:_jsx(_components.code,{children:`/schema`})})]}),_jsxs(_components.td,{children:[`Present when deprecated `,_jsx(_components.code,{children:`structured_output`}),` input was used.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input_schema`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/schema`,children:_jsx(_components.code,{children:`/schema`})})]}),_jsx(_components.td,{children:`Echo of the applied schema (deprecated path only).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`schema_error`})}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/schema`,children:_jsx(_components.code,{children:`/schema`})})]}),_jsx(_components.td,{children:`Error message if schema processing failed (deprecated path only).`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`large-result-response`,children:`Large Result Response`}),`\n`,_jsxs(_components.p,{children:[`For documents with 70 or more pages, spreadsheet extractions, or any response payload above the 5 MB inline threshold, the API returns a one-time download link to `,_jsx(_components.code,{children:`/results/{job_id}`}),` instead of inlining the payload. This prevents timeout issues and keeps the immediate response small. The downloaded JSON is the complete extraction result with the normal response shape.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"is_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.runpulse.com/results/abc123-def456-ghi789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"extraction_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"abc123-def456-ghi789\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`large-result-response-fields`,children:`Large Result Response Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`is_url`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`true`}),` for URL-backed responses. Use this to detect URL-based responses.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`url`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`One-time download link of the form `,_jsx(_components.code,{children:`https://api.runpulse.com/results/{job_id}`}),`. The link streams the complete extraction result the first time it is fetched and is then invalidated (subsequent reads return `,_jsx(_components.code,{children:`410 Gone`}),`). It also expires 1 hour after the job completes. Authenticate the request with your `,_jsx(_components.code,{children:`x-api-key`}),` header.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`extraction_id`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Extraction/job identifier. The downloaded result contains the normal response fields, including metadata such as `,_jsx(_components.code,{children:`page_count`}),`, `,_jsx(_components.code,{children:`credits_used`}),`, and `,_jsx(_components.code,{children:`plan_info`}),` when available.`]})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`/results/{job_id}`}),` links are `,_jsx(_components.strong,{children:`single-use`}),` and `,_jsx(_components.strong,{children:`expire 1 hour`}),` after the job completes. Download and persist the payload immediately — do not pass the URL through queues or share it across workers.`]})}),`\n`,_jsx(Heading,{level:`4`,id:`handling-large-document-responses`,children:`Handling Large Document Responses`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`18`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pulse `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Pulse`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_API_KEY\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Pulse(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.extract(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` hasattr`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"is_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`and`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.is_url:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` full_result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.url,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ).json()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(full_result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"markdown\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.markdown)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`17`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PulseClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pulse-ts-sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PulseClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`extract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fileUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ((`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` as`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` any`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`is_url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` fullResult`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` as`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` any`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fullResult`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`markdown`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`markdown`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl`,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.runpulse.com/extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@large_document.pdf\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Response: {\"is_url\": true, \"url\": \"https://api.runpulse.com/results/abc123-...\"}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Fetch the result once (single-use link, valid for 1 hour after job completion)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.runpulse.com/results/abc123-...\"`})}),`\n`]})})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Because `,_jsx(_components.code,{children:`/results/{job_id}`}),` is one-time use, persist the result to your own storage on first download. If you need to access the result later, enable `,_jsx(_components.code,{children:`storage.enabled`}),` and retrieve it from your extraction library on the Pulse Platform.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`example-usage`,children:`Example Usage`}),`\n`,_jsx(Heading,{level:`3`,id:`basic-extraction`,children:`Basic Extraction`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`25`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pulse `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Pulse`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pulse.types `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExtractRequestFigureProcessing,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExtractRequestExtensions,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExtractRequestExtensionsAltOutputs,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Pulse(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Extract from URL with figure processing and HTML output`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.extract(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` figure_processing`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ExtractRequestFigureProcessing(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` extensions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ExtractRequestExtensions(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` alt_outputs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ExtractRequestExtensionsAltOutputs(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` return_html`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Markdown: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response.markdown`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"HTML: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response.extensions.alt_outputs.html`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Extraction ID: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response.extraction_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`13`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PulseClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pulse-ts-sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PulseClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`extract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fileUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` figureProcessing:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`description:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` extensions:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`altOutputs:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`returnHtml:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Markdown: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`markdown`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`HTML: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`extensions`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`altOutputs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`html`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Extraction ID: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`extraction_id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl`,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Extract from URL with figure processing`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.runpulse.com/extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file_url\": \"https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"figureProcessing\": {\"description\": true},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"extensions\": {\"altOutputs\": {\"returnHtml\": true}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`file-upload`,children:`File Upload`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`10`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pulse.types `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExtractRequestFigureProcessing`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Upload and extract a local file`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"document.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.extract(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`f,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` figure_processing`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ExtractRequestFigureProcessing(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`8`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` *`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'fs'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` fileBuffer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`readFileSync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"document.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` blob`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Blob`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fileBuffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/pdf'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`extract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` file:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` blob`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.runpulse.com/extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@document.pdf\"`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`structured-data-extract-→-schema`,children:`Structured Data (Extract → Schema)`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`structured_output`}),` parameter on `,_jsx(_components.code,{children:`/extract`}),` is `,_jsx(_components.strong,{children:`deprecated`}),`. Use the `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/schema`,children:_jsx(_components.code,{children:`/schema`})}),` endpoint after extraction instead. This gives you better control, re-runnability, and support for split-mode schemas.`]})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Recommended two-step approach:`})}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`23`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Step 1: Extract the document`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.extract(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`extraction_id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.extraction_id`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Step 2: Apply schema separately`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`schema_result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.schema(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` extraction_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`extraction_id,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` schema_config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input_schema\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"properties\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"vendor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"schema_prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Extract invoice total and vendor\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(schema_result.schema_output)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`23`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Step 1: Extract the document`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`extract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fileUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` extractionId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`extraction_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Step 2: Apply schema separately`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` schemaResult`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`schema`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` extraction_id:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` extractionId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` schema_config:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` input_schema:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` properties:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` total:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` vendor:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` schema_prompt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Extract invoice total and vendor\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`schemaResult`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`schema_output`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl`,numberOfLines:`18`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Step 1: Extract the document`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.runpulse.com/extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@invoice.pdf\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Response includes extraction_id: \"abc123-...\"`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Step 2: Apply schema`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.runpulse.com/schema`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"extraction_id\": \"abc123-...\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"schema_config\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input_schema\": {\"type\": \"object\", \"properties\": {\"total\": {\"type\": \"number\"}, \"vendor\": {\"type\": \"string\"}}},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"schema_prompt\": \"Extract invoice total and vendor\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`document-metadata`,children:`Document Metadata`}),`\n`,_jsxs(_components.p,{children:[`Enable `,_jsx(_components.code,{children:`extensions.document_metadata`}),` to read native properties from the original\nfile before conversion, rendering, or OCR. The option is a single boolean; Pulse\nreturns every safely recoverable field for the detected format.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python SDK`,numberOfLines:`12`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pulse.types `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExtractRequestExtensions`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.extract(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/report.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` extensions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ExtractRequestExtensions(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` document_metadata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`metadata `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.extensions.document_metadata`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(metadata.properties.title)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(metadata.structure.page_count)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.runpulse.com/extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@report.pdf\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'extensions={\"document_metadata\":true};type=application/json'`})]}),`\n`]})})})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`25`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"extensions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"document_metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pulse-complex-metadata-10-page.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"extension\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\".pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"media_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"size_bytes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`32506`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"properties\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Pulse Complex Metadata Validation Report\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"authors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ritvik Pandey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Pulse Document Intelligence\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-01-15T09:30:00-08:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"structure\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"outline_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"attachment_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"annotation_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"form_field_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"warnings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Absent metadata fields are omitted rather than returned as `,_jsx(_components.code,{children:`null`}),`. Metadata is\nevidence declared by the source file and is not independently verified. Original\ncamera files may contain sensitive capture timestamps or GPS coordinates.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/v1/concepts/processing-parameters-document-metadata`,children:`Document Metadata`}),` for\nformat-specific behavior and implementation guidance.`]}),`\n`,_jsx(Heading,{level:`3`,id:`page-range-and-chunking`,children:`Page Range and Chunking`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`19`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`19`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pulse.types `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExtractRequestExtensions,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExtractRequestExtensionsChunking,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.extract(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` pages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1-5,10\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 1-indexed`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` extensions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ExtractRequestExtensions(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` chunking`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ExtractRequestExtensionsChunking(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` chunk_types`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"semantic\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` chunk_size`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Chunk data is in extensions.chunking`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.extensions.chunking.semantic)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.extensions.chunking.page)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`14`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`extract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fileUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pages:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"1-5,10\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 1-indexed`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` extensions:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` chunking:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` chunkTypes:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"semantic\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` chunkSize:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Chunk data is in extensions.chunking`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`extensions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chunking`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`semantic`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`extensions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chunking`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.runpulse.com/extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@document.pdf\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pages=1-5,10\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'extensions={\"chunking\": {\"chunkTypes\": [\"semantic\", \"page\"], \"chunkSize\": 1000}}'`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`footnote-references`,children:`Footnote References`}),`\n`,_jsxs(_components.p,{children:[`Enable `,_jsx(_components.code,{children:`extensions.footnote_references`}),` to detect footnote markers (e.g. `,_jsx(_components.code,{children:`*`}),`, `,_jsx(_components.code,{children:`†`}),`, `,_jsx(_components.code,{children:`1`}),`) in body text and link them to the footnote explanation paragraphs at the bottom of the page. Each result item includes the marker symbol, the bounding-box text ID of the footnote, and the bounding-box text IDs of all body-text paragraphs that reference it.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pulse.types `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExtractRequestExtensions`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.extract(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/research-paper.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` extensions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ExtractRequestExtensions(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` footnote_references`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Footnote links are in extensions.footnote_references`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ref `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.extensions.footnote_references:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Marker: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ref.symbol`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\" Footnote: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ref.footnote_text_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\" Referenced by: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ref.reference_text_ids`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`13`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`extract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fileUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/research-paper.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` extensions:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` footnoteReferences:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Footnote links are in extensions.footnoteReferences`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` ref`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` of`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`extensions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`footnoteReferences`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` []) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Marker: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ref`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`symbol`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"` Footnote: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ref`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`footnoteTextId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"` Referenced by: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ref`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`referenceTextIds`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.runpulse.com/extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@research-paper.pdf\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'extensions={\"footnoteReferences\": true}'`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`4`,id:`example-response`,children:`Example Response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"markdown\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bounding_boxes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"extensions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"footnoteReferences\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"*\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"footnoteTextId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txt-11\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"referenceTextIds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txt-4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txt-5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txt-6\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txt-7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txt-8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"†\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"footnoteTextId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txt-12\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"referenceTextIds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txt-8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"footnoteTextId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txt-48\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"referenceTextIds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txt-45\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`footnote-reference-fields`,children:`Footnote Reference Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`symbol`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`The footnote marker symbol as detected in the document (e.g. `,_jsx(_components.code,{children:`*`}),`, `,_jsx(_components.code,{children:`†`}),`, `,_jsx(_components.code,{children:`‡`}),`, `,_jsx(_components.code,{children:`1`}),`, `,_jsx(_components.code,{children:`#`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`footnoteTextId`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`The bounding-box text ID (e.g. `,_jsx(_components.code,{children:`txt-11`}),`) of the footnote explanation paragraph. Cross-reference with `,_jsx(_components.code,{children:`bounding_boxes.Footer`}),` to get the footnote’s content and position.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`referenceTextIds`})}),_jsx(_components.td,{children:`string[]`}),_jsxs(_components.td,{children:[`Bounding-box text IDs of body-text paragraphs that contain a reference to this footnote. Cross-reference with `,_jsx(_components.code,{children:`bounding_boxes.Text`}),` to get each paragraph’s content and position.`]})]})]})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Footnote reference detection uses Azure Document Intelligence for paragraph classification, supplemented by PyMuPDF native text extraction for accurate symbol identification. This handles common OCR confusion between visually similar symbols like `,_jsx(_components.code,{children:`†`}),`/`,_jsx(_components.code,{children:`+`}),` and `,_jsx(_components.code,{children:`‡`}),`/`,_jsx(_components.code,{children:`#`}),`. Supported marker types include numbered (`,_jsx(_components.code,{children:`1`}),`, `,_jsx(_components.code,{children:`2`}),`, `,_jsx(_components.code,{children:`3`}),`), symbolic (`,_jsx(_components.code,{children:`*`}),`, `,_jsx(_components.code,{children:`†`}),`, `,_jsx(_components.code,{children:`‡`}),`, `,_jsx(_components.code,{children:`§`}),`, `,_jsx(_components.code,{children:`#`}),`), and lettered (`,_jsx(_components.code,{children:`a`}),`, `,_jsx(_components.code,{children:`b`}),`, `,_jsx(_components.code,{children:`c`}),`) footnotes.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`excel-spreadsheet-options`,children:`Excel Spreadsheet Options`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`16`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pulse `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Pulse`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pulse.types `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExtractRequestSpreadsheet`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Pulse(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Extract from Excel with hidden content included`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.extract(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"financials.xlsx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` spreadsheet`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ExtractRequestSpreadsheet(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` include_hidden_rows`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` include_hidden_cols`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` include_hidden_sheets`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`False`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.markdown)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`16`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PulseClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pulse-ts-sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PulseClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-api-key'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`extract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` file:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createReadStream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"financials.xlsx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` spreadsheet:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` includeHiddenRows:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` includeHiddenCols:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` includeHiddenSheets:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`markdown`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.runpulse.com/extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@financials.xlsx\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'spreadsheet={\"includeHiddenRows\": true, \"includeHiddenCols\": true, \"includeHiddenSheets\": false, \"cellData\": true}'`})]}),`\n`]})})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Spreadsheet responses are URL-backed by default: the immediate response is `,_jsx(_components.code,{children:`is_url: true`}),` with a one-time `,_jsx(_components.code,{children:`/results/{job_id}`}),` link. Fetch that URL to receive the complete extraction result. The result shape is unchanged: table metadata remains under `,_jsx(_components.code,{children:`bounding_boxes.Tables[].cell_data`}),` when `,_jsx(_components.code,{children:`spreadsheet.cell_data`}),` is `,_jsx(_components.code,{children:`true`}),` (the default). Set top-level `,_jsx(_components.code,{children:`force_url: false`}),` only if you need the full result inline.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Workbooks exported from claims systems, ERPs, and other automated pipelines often declare a “used range” that extends hundreds of thousands of rows past where the data actually ends. Set `,_jsx(_components.code,{children:`spreadsheet.only_data_rows: true`}),` and `,_jsx(_components.code,{children:`spreadsheet.only_data_cols: true`}),` to have Pulse trim those trailing empty “phantom” rows and columns before parsing. Surviving cells keep their original A1 coordinates, so any citation or bounding box that references a specific cell remains stable. Both flags default to `,_jsx(_components.code,{children:`false`}),`. See the extraction options above for the full reference.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`excel-charts-and-embedded-images`,children:`Excel Charts and Embedded Images`}),`\n`,_jsxs(_components.p,{children:[`When you set `,_jsx(_components.code,{children:`figure_processing.show_images: true`}),` on an Excel workbook, every embedded chart and image is collected from the workbook directly and returned under `,_jsx(_components.code,{children:`bounding_boxes.Images[]`}),`. Each entry carries a Pulse-hosted `,_jsx(_components.code,{children:`image_url`}),` you can fetch via `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/results-image`,children:_jsx(_components.code,{children:`results.getImage`})}),` (or any HTTP client with your API key) to get the raw PNG/JPEG bytes.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`28`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`28`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` re`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pulse `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Pulse`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pulse.types `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExtractRequestFigureProcessing`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Pulse(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 1) Extract the workbook with show_images enabled.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.extract(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"financials.xlsx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` figure_processing`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ExtractRequestFigureProcessing(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` show_images`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`False`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 2) Walk the typed Images array.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` img `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.bounding_boxes.images `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`or`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` []:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`img.id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`img.visual_type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`img.chart_title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`' @ `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`img.excel_range`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\" url: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`img.image_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 3) Fetch the bytes for one chart.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`img `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.bounding_boxes.images[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`m `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` re.search(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`r`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`\"/results/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`([`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#CE9178`},children:`^`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D16969`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`/images/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`([`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#CE9178`},children:`^`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D16969`},children:`/?#`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, img.image_url)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`job_id, filename `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` m.group(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), m.group(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`chunks `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` list`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(client.results.get_image(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`job_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`job_id, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`filename`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`filename))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chart.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f.write(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`b`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.join(chunks))`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`25`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PulseClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pulse-ts-sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` *`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:fs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PulseClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 1) Extract the workbook with show_images enabled.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`extract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` file:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createReadStream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"financials.xlsx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` figureProcessing:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`showImages:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`description:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 2) Walk the typed Images array.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` img`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` of`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boundingBoxes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Images`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` []) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`img`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`img`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`visualType`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`img`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chartTitle`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`' @ `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`img`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`excelRange`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"` url: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`img`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`imageUrl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 3) Fetch the bytes for one chart.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boundingBoxes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Images`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`imageUrl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` m`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`match`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#D7BA7D`,\"--shiki-dark-font-weight\":`inherit`},children:`\\\\/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`results`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#D7BA7D`,\"--shiki-dark-font-weight\":`inherit`},children:`\\\\/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#CE9178`},children:`^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D16969`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`+`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`)`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#D7BA7D`,\"--shiki-dark-font-weight\":`inherit`},children:`\\\\/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`images`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#D7BA7D`,\"--shiki-dark-font-weight\":`inherit`},children:`\\\\/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#CE9178`},children:`^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D16969`},children:`/?#`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`+`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`jobId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`filename`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` m`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` image`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`results`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getImage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`jobId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`filename`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"// Persist `image` per your runtime (e.g. `await image.bytes()`).\"})}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Step 1: extract and capture an image_url from the response.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.runpulse.com/extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@financials.xlsx\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'figure_processing={\"show_images\": true}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -r`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.bounding_boxes.Images[0].image_url'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Step 2: fetch the PNG bytes.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.runpulse.com/results/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$JOB_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/images/excel_image_1_1.png\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -o`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` chart.png`})]}),`\n`]})})})]}),`\n`,_jsxs(Heading,{level:`4`,id:`example-bounding_boxes-images-entry`,children:[`Example `,_jsx(_components.code,{children:`bounding_boxes.Images`}),` Entry`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"excel_image_1_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"visual_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chart\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bounding_box\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.runpulse.com/results/13e3e75f-.../images/excel_image_1_1.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sheet_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Charts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"excel_range\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"D2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chart_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BarChart\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chart_title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Revenue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source_ranges\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"'Charts'!$A$2:$A$5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"'Charts'!$B$2:$B$5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bar chart showing revenue by quarter.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/v1/api-reference/bounding-boxes#images-array`,children:`Bounding Boxes — Images Array`}),` for the full field reference and `,_jsx(_components.a,{href:`/v1/api-reference/endpoint/results-image`,children:`Get Result Image`}),` for the auth requirement on `,_jsx(_components.code,{children:`image_url`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`disable-storage`,children:`Disable Storage`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`4`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.extract(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` storage`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`False`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`extract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fileUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://platform.runpulse.com/api/examples/637e5678-30b1-45fa-acc4-877f2d636419/pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` storage:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enabled:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.runpulse.com/extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@document.pdf\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'storage={\"enabled\": false}'`})]}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Extract File","openapi":"api-reference/openapi.yml POST /extract","description":"The primary endpoint for the Pulse API. Parses uploaded documents or remote\nfile URLs and returns rich markdown content with optional structured data\nextraction based on user-provided schemas and extraction options.\n\nSet `async: true` to return immediately with a job_id for polling via\nGET /job/{jobId}. Otherwise processes synchronously.\n\nFor large TIFFs with Pulse Ultra 2, submit a `file_url` ending in\n`.tif` or `.tiff` with `async: true`. Pulse downloads and processes\nthe image in bounded tiles after accepting the job. Results retain\nthe original TIFF page numbers and coordinates; internal tiles do\nnot increase the billed page count.\n\nWith Pulse Ultra 2, multi-page TIFF uploads also preserve every frame.\nPage ranges select original frames; billing counts the selected frames.\n\nTo process many files at once, see [Batch Extract](api:POST/batch/extract)\nor the [Batch Processing guide](/batch).","href":"/v1/api-reference/endpoint/extract"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[2824,2852,"jobId`]}),`.`]})}),`"]]},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[{"title":"Async Mode","slug":"async-mode","depth":3,"children":[]}]},{"title":"Request","slug":"request","depth":2,"children":[{"title":"Document Source","slug":"document-source","depth":3,"children":[]},{"title":"Extraction Options","slug":"extraction-options","depth":3,"children":[]},{"title":"Figure Processing","slug":"figure-processing","depth":3,"children":[]},{"title":"Spreadsheet Options","slug":"spreadsheet-options","depth":3,"children":[]},{"title":"Phantom-cell trimming (only_data_rows / only_data_cols)","slug":"phantom-cell-trimming-only_data_rows-/-only_data_cols","depth":4,"children":[]},{"title":"Pulse Ultra 2 Options","slug":"pulse-ultra-2-options","depth":3,"children":[]},{"title":"Selection mark detection","slug":"selection-mark-detection","depth":4,"children":[]},{"title":"Markdown output additions","slug":"markdown-output-additions","depth":4,"children":[]},{"title":"Extensions","slug":"extensions","depth":3,"children":[]},{"title":"pulse-ultra-2 Rate Limits","slug":"pulse-ultra-2-rate-limits","depth":3,"children":[]},{"title":"Storage Options","slug":"storage-options","depth":3,"children":[]},{"title":"Deprecated Fields","slug":"deprecated-fields","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Standard Inline Response","slug":"standard-inline-response","depth":3,"children":[]},{"title":"Response Fields","slug":"response-fields","depth":4,"children":[]},{"title":"Deprecated Response Fields","slug":"deprecated-response-fields","depth":4,"children":[]},{"title":"Large Result Response","slug":"large-result-response","depth":3,"children":[]},{"title":"Large Result Response Fields","slug":"large-result-response-fields","depth":4,"children":[]},{"title":"Handling Large Document Responses","slug":"handling-large-document-responses","depth":4,"children":[]}]},{"title":"Example Usage","slug":"example-usage","depth":2,"children":[{"title":"Basic Extraction","slug":"basic-extraction","depth":3,"children":[]},{"title":"File Upload","slug":"file-upload","depth":3,"children":[]},{"title":"Structured Data (Extract → Schema)","slug":"structured-data-extract-→-schema","depth":3,"children":[]},{"title":"Document Metadata","slug":"document-metadata","depth":3,"children":[]},{"title":"Page Range and Chunking","slug":"page-range-and-chunking","depth":3,"children":[]},{"title":"Footnote References","slug":"footnote-references","depth":3,"children":[]},{"title":"Example Response","slug":"example-response","depth":4,"children":[]},{"title":"Footnote Reference Fields","slug":"footnote-reference-fields","depth":4,"children":[]},{"title":"Excel Spreadsheet Options","slug":"excel-spreadsheet-options","depth":3,"children":[]},{"title":"Excel Charts and Embedded Images","slug":"excel-charts-and-embedded-images","depth":3,"children":[]},{"title":"Example bounding_boxes.Images Entry","slug":"example-bounding_boxes-images-entry","depth":4,"children":[]},{"title":"Disable Storage","slug":"disable-storage","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/pulseai/5215a343261c1e3e/api-fields.js"],"openApiReferenceData":{"operation":{"summary":"Extract rich content from a document","description":"The primary endpoint for the Pulse API. Parses uploaded documents or remote\nfile URLs and returns rich markdown content with optional structured data\nextraction based on user-provided schemas and extraction options.\n\nSet `async: true` to return immediately with a job_id for polling via\nGET /job/{jobId}. Otherwise processes synchronously.\n\nFor large TIFFs with Pulse Ultra 2, submit a `file_url` ending in\n`.tif` or `.tiff` with `async: true`. Pulse downloads and processes\nthe image in bounded tiles after accepting the job. Results retain\nthe original TIFF page numbers and coordinates; internal tiles do\nnot increase the billed page count.\n\nWith Pulse Ultra 2, multi-page TIFF uploads also preserve every frame.\nPage ranges select original frames; billing counts the selected frames.\n\nTo process many files at once, see [Batch Extract](api:POST/batch/extract)\nor the [Batch Processing guide](/batch).","operationId":"extractDocument","tags":["Extract"],"requestBody":"dbe83c4c-a402-4e68-b599-0b1686c572d5","responses":{"200":"45ec60c3-610c-47b2-96ef-661b79e3f2d6","202":"eeadd8af-a443-4bbd-aa0f-d5e25fa92cf4","400":"ff49d208-b298-4a07-a349-79ecfd0637a9","401":"1b32ab62-e488-4013-b982-067545c6de29","429":"6bba667f-0511-43b8-b0e3-5045c9339961","503":"ec120c04-768b-4710-bcf8-433d43c5b9f3"},"parameters":["279ee8ac-f75b-421c-b154-6220781cefd1"],"method":"post","type":"path","servers":["e1ef7834-5f16-4759-9585-bf90a3a29520"],"security":["3d136d9b-6b58-4a17-9f2d-f27756a950c2"],"path":"/extract","baseUrlOptions":["https://api.runpulse.com"],"title":"Extract rich content from a document","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"279ee8ac-f75b-421c-b154-6220781cefd1":{"name":"Pulse-Version","in":"header","required":false,"description":"The API version. These pages document version `1`.","schema":{"type":"string","default":"1","enum":["1"],"isRequired":false,"description":"The API version. These pages document version `1`.","uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","description":"Input schema for extraction requests. Provide either file (direct upload) or fileUrl (remote URL).","properties":{"file":{"type":"string","format":"binary","description":"Document to upload directly. Required unless fileUrl is provided.","uniqueKey":"file","typeLabel":"file"},"fileUrl":{"type":"string","format":"uri","x-fern-property-name":"file_url","description":"Public or pre-signed URL that Pulse will download and extract. CSV and XLSB documents are converted to XLSX, as with direct uploads. Required unless file is provided.","uniqueKey":"fileUrl","typeLabel":"string\u003curi>"},"model":{"type":"string","description":"Extraction model to use. `pulse-ultra-2` runs Pulse Ultra 2; `pulse-ultra-2-flash` runs Pulse Ultra 2 Flash — lower-latency tier, billed at 0.5 credits per page (Ultra 2: 1); requires the org to be enabled for flash. Flash skips the optional passes unless asked: selection-mark detection is off by default, and the grouped `Words` category is included only when `extensions.altOutputs.wlbb` (or footnote references) requests word-level boxes; `pulse-ultra-1` runs the previous-generation engine. If omitted or set to `default`, your organization's default backend is used (Pulse Ultra 2 for organizations upgraded to it), so send `pulse-ultra-1` explicitly to keep a request on the previous engine.","enum":["default","pulse-ultra-1","pulse-ultra-2","pulse-ultra-2-flash"],"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"detectSelections":{"type":"boolean","x-fern-property-name":"detect_selections","description":"Pulse Ultra 2 only. Enables a specialized selection-mark detection pass that improves selected/unselected state accuracy for forms, checkboxes, radio buttons, handwritten checkmarks, X marks, and similar controls. Enabled by default when `model` is `pulse-ultra-2`; set to false to skip this pass. Off by default for `pulse-ultra-2-flash` (the lower-latency tier); set to true to run it there. Passing true with any other model returns a validation error.","uniqueKey":"detectSelections","typeLabel":"boolean"},"extractionConfigId":{"type":"string","format":"uuid","x-fern-property-name":"extraction_config_id","description":"UUID of a saved extraction config in your organization. In a `/pipeline/execute` step, the step starts from the config's saved options and options set in the step override them; an unknown ID fails the pipeline at that step. `/extract` and `/extract_async` ignore it.","uniqueKey":"extractionConfigId","typeLabel":"string\u003cuuid>"},"pages":{"type":"string","description":"Page range filter supporting segments such as `1-2` or mixed ranges like `1-2,5`.","pattern":"^[0-9]+(-[0-9]+)?(,[0-9]+(-[0-9]+)?)*$","uniqueKey":"pages","typeLabel":"string"},"forceUrl":{"type":"boolean","x-fern-property-name":"force_url","default":false,"description":"When true, return the complete extraction result as a URL even if it is small. Spreadsheet extractions use URL delivery by default; set `force_url: false` to request inline spreadsheet output. URL delivery changes only the transport, not the result shape.","uniqueKey":"forceUrl","typeLabel":"boolean"},"figureProcessing":{"type":"object","x-fern-property-name":"figure_processing","description":"Settings that control how figures and embedded visuals are processed. Applies to both PDFs/images (where figures are detected from layout) and spreadsheets (where charts and embedded images are read directly from the workbook). These options affect the markdown output and the `bounding_boxes.Images[]` array; they do not produce additional output fields elsewhere in the response.","properties":{"description":{"oneOf":[{"type":"boolean","description":"Generate descriptive captions for extracted visuals. When `true`, applies to both detected charts and non-chart images. Captions appear under `bounding_boxes.Images[].description` and inline in the markdown output where applicable. Pass `true` for every visual type, or an array of targets (`chart`, `image`) to restrict processing to those classes.","default":false,"uniqueKey":"figureProcessing.description.oneOf.0","typeLabel":"boolean"},{"type":"array","items":{"type":"string","enum":["chart","image"],"uniqueKey":"figureProcessing.description.oneOf.1.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Generate descriptive captions for extracted visuals. When `true`, applies to both detected charts and non-chart images. Captions appear under `bounding_boxes.Images[].description` and inline in the markdown output where applicable. Pass `true` for every visual type, or an array of targets (`chart`, `image`) to restrict processing to those classes.","default":false,"uniqueKey":"figureProcessing.description.oneOf.1","typeLabel":"enum\u003cstring>[]"}],"uniqueKey":"figureProcessing.description","typeLabel":"boolean | enum\u003cstring>[]"},"showImages":{"oneOf":[{"type":"boolean","description":"Return image URLs for extracted visuals. When `true`, applies to both charts and non-chart images. URLs are emitted under `bounding_boxes.Images[].image_url` — typically a Pulse-hosted proxy URL served from `GET /results/{jobId}/images/{filename}`. Spreadsheet charts and embedded images are read directly from the workbook; PDF/image inputs use detected figure regions. Pass `true` for every visual type, or an array of targets (`chart`, `image`) to restrict processing to those classes.","default":false,"x-fern-property-name":"show_images","uniqueKey":"figureProcessing.showImages.oneOf.0","typeLabel":"boolean"},{"type":"array","items":{"type":"string","enum":["chart","image"],"uniqueKey":"figureProcessing.showImages.oneOf.1.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Return image URLs for extracted visuals. When `true`, applies to both charts and non-chart images. URLs are emitted under `bounding_boxes.Images[].image_url` — typically a Pulse-hosted proxy URL served from `GET /results/{jobId}/images/{filename}`. Spreadsheet charts and embedded images are read directly from the workbook; PDF/image inputs use detected figure regions. Pass `true` for every visual type, or an array of targets (`chart`, `image`) to restrict processing to those classes.","default":false,"x-fern-property-name":"show_images","uniqueKey":"figureProcessing.showImages.oneOf.1","typeLabel":"enum\u003cstring>[]"}],"uniqueKey":"figureProcessing.showImages","typeLabel":"boolean | enum\u003cstring>[]"}},"uniqueKey":"figureProcessing","typeLabel":"object"},"extensions":{"type":"object","description":"Settings that enable additional processing passes or alternate output formats. Each enabled extension produces a corresponding output field under `response.extensions.*`.","properties":{"footnoteReferences":{"type":"boolean","x-fern-property-name":"footnote_references","default":false,"description":"Link footnote markers to their corresponding footnote text.","uniqueKey":"extensions.footnoteReferences","typeLabel":"boolean"},"document_metadata":{"type":"boolean","default":false,"description":"Extract the maximum safely recoverable metadata from the original file bytes before conversion, rendering, or OCR. Results appear under `response.extensions.document_metadata`.","uniqueKey":"extensions.document_metadata","typeLabel":"boolean"},"chunking":{"type":"object","description":"Chunking configuration. When provided, the document is split into chunks using the specified strategies. Results appear in `response.extensions.chunking`.","properties":{"chunkTypes":{"type":"array","x-fern-property-name":"chunk_types","items":{"type":"string","enum":["semantic","header","page","recursive"],"uniqueKey":"extensions.chunking.chunkTypes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"List of chunking strategies to apply (e.g. `[\"semantic\", \"header\", \"page\", \"recursive\"]`). The semantic strategy requires a configured embedding service; deployments without one reject the request with a validation error.","uniqueKey":"extensions.chunking.chunkTypes","typeLabel":"enum\u003cstring>[]"},"chunkSize":{"type":"integer","minimum":1,"x-fern-property-name":"chunk_size","description":"Maximum characters per chunk.","uniqueKey":"extensions.chunking.chunkSize","typeLabel":"integer"}},"uniqueKey":"extensions.chunking","typeLabel":"object"},"altOutputs":{"type":"object","x-fern-property-name":"alt_outputs","description":"Alternate output format options. Each enabled format produces a corresponding field under `response.extensions.altOutputs`.","properties":{"wlbb":{"type":"boolean","default":false,"description":"Enable word-level bounding boxes. Runs an additional OCR model to derive bounding boxes for each word. Only applies to PDFs. Results in `response.extensions.altOutputs.wlbb`.","uniqueKey":"extensions.altOutputs.wlbb","typeLabel":"boolean"},"returnHtml":{"type":"boolean","x-fern-property-name":"return_html","default":false,"description":"Include an HTML representation of the document. When enabled, `response.markdown` is still present and the HTML is available at `response.extensions.altOutputs.html`.","uniqueKey":"extensions.altOutputs.returnHtml","typeLabel":"boolean"},"returnXml":{"oneOf":[{"type":"boolean","deprecated":true,"x-fern-property-name":"return_xml","description":"**Deprecated** — Ignored: XML output was withdrawn.","uniqueKey":"extensions.altOutputs.returnXml.oneOf.0","typeLabel":"boolean"},{"type":"null","deprecated":true,"x-fern-property-name":"return_xml","description":"**Deprecated** — Ignored: XML output was withdrawn.","uniqueKey":"extensions.altOutputs.returnXml.oneOf.1","typeLabel":"null"}],"uniqueKey":"extensions.altOutputs.returnXml","typeLabel":"boolean | null"}},"uniqueKey":"extensions.altOutputs","typeLabel":"object"}},"uniqueKey":"extensions","typeLabel":"object"},"spreadsheet":{"type":"object","description":"Settings for Excel/spreadsheet extraction. Controls handling of hidden rows, columns, and sheets, whether numeric cells are rendered using their display format or underlying raw value, where table cell metadata is returned (inline or as external artifacts), whether cell formatting is included, and optional trimming of empty phantom rows/columns past the last data-bearing cell. Applies to `.xlsx`, `.xlsm`, and `.xls` files. Accepts both camelCase and snake_case field names; `spreadsheet_options` is accepted as a legacy alias for this object.","properties":{"includeHiddenRows":{"type":"boolean","x-fern-property-name":"include_hidden_rows","default":false,"description":"Include rows that are hidden in the Excel workbook.","uniqueKey":"spreadsheet.includeHiddenRows","typeLabel":"boolean"},"includeHiddenCols":{"type":"boolean","x-fern-property-name":"include_hidden_cols","default":false,"description":"Include columns that are hidden in the Excel workbook.","uniqueKey":"spreadsheet.includeHiddenCols","typeLabel":"boolean"},"includeHiddenSheets":{"type":"boolean","x-fern-property-name":"include_hidden_sheets","default":false,"description":"Include sheets that are hidden in the Excel workbook.","uniqueKey":"spreadsheet.includeHiddenSheets","typeLabel":"boolean"},"useRawValues":{"type":"boolean","x-fern-property-name":"use_raw_values","default":false,"description":"Emit the underlying numeric value for number cells instead of the Excel display-formatted text (e.g. `1201.67` rather than `$1,202` when the cell uses a rounded currency format). Percent-formatted cells and dates keep their display rendering. Does not apply to legacy `.xls` files.","uniqueKey":"spreadsheet.useRawValues","typeLabel":"boolean"},"onlyDataRows":{"type":"boolean","x-fern-property-name":"only_data_rows","default":false,"description":"When true, trim trailing empty rows past the last cell carrying a value or formula before parsing. Excel exports from claims systems and ERPs routinely declare a used range with hundreds of thousands of empty-but-styled phantom rows that inflate file size and exhaust parser memory; enabling this strips them out without touching any cell that actually has data. Surviving cells keep their original A1 coordinates so citations that reference a specific cell remain stable. Defaults to false.","uniqueKey":"spreadsheet.onlyDataRows","typeLabel":"boolean"},"onlyDataCols":{"type":"boolean","x-fern-property-name":"only_data_cols","default":false,"description":"When true, trim trailing empty columns past the last cell carrying a value or formula. Same rationale and coordinate-stability guarantee as `onlyDataRows`. Defaults to false.","uniqueKey":"spreadsheet.onlyDataCols","typeLabel":"boolean"},"includeCellFormatting":{"type":"boolean","x-fern-property-name":"include_cell_formatting","default":false,"description":"Enrich spreadsheet markdown table cells with the cell-level formatting metadata Pulse already captures: CSS style attributes for visible colours and alignment, and `data-formula` attributes for formula cells. Off by default so legacy markdown stays compact.","uniqueKey":"spreadsheet.includeCellFormatting","typeLabel":"boolean"},"cellDataMode":{"type":"string","x-fern-property-name":"cell_data_mode","enum":["inline","external"],"default":"inline","description":"Where `bounding_boxes.Tables[].cell_data` is returned. `inline` (default) embeds the full cell metadata in the response. `external` stores it as per-table JSONL artifacts and returns an `ExternalCellDataReference` (`is_url`, `url`, `format`, `count`, `filename`) in its place; fetch the artifact from `url`, which is served by `GET /results/{jobId}/cell-data/{filename}`. Keeps large workbook responses small. Unrecognised values are treated as `inline`.","uniqueKey":"spreadsheet.cellDataMode","typeLabel":"enum\u003cstring>"}},"uniqueKey":"spreadsheet","typeLabel":"object"},"storage":{"type":"object","description":"Options for persisting extraction artifacts. When enabled (default), artifacts are saved to storage and a database record is created.","properties":{"enabled":{"type":"boolean","description":"Whether to persist extraction artifacts. Set to false for temporary extractions with no storage or database record.","default":true,"uniqueKey":"storage.enabled","typeLabel":"boolean"},"folderName":{"type":"string","x-fern-property-name":"folder_name","description":"Target folder name to save the extraction to. Creates the folder if it doesn't exist.","uniqueKey":"storage.folderName","typeLabel":"string"},"folderId":{"type":"string","format":"uuid","x-fern-property-name":"folder_id","description":"Target folder ID to save the extraction to. Takes precedence over folderName if both are provided.","uniqueKey":"storage.folderId","typeLabel":"string\u003cuuid>"}},"uniqueKey":"storage","typeLabel":"object"},"async":{"type":"boolean","default":false,"description":"If true, returns immediately with a job_id for polling via GET /job/{jobId}. Otherwise processes synchronously.","uniqueKey":"async","typeLabel":"boolean"},"structuredOutput":{"type":"object","x-fern-property-name":"structured_output","deprecated":true,"description":"**⚠️ DEPRECATED** — Use the `/schema` endpoint after extraction instead. Pass the `extraction_id` from the extract response to `/schema` with your `schema_config`. This parameter still works for backward compatibility but will be removed in a future version.","properties":{"schema":{"type":"object","description":"JSON schema describing the structured data to extract.","uniqueKey":"structuredOutput.schema","typeLabel":"object"},"schemaPrompt":{"type":"string","x-fern-property-name":"schema_prompt","description":"Natural language prompt with additional extraction instructions.","uniqueKey":"structuredOutput.schemaPrompt","typeLabel":"string"},"effort":{"type":"boolean","default":false,"description":"Use higher quality model for better results. When true, uses a more capable model at the cost of higher latency.","uniqueKey":"structuredOutput.effort","typeLabel":"boolean"},"agenticConfidence":{"type":"boolean","default":false,"x-fern-property-name":"agentic_confidence","description":"Return a per-field confidence score (0-1) in `confidence`, backed by additional verification of the extracted values. Billed 3 additional credits per page. Must be enabled for your organization.","uniqueKey":"structuredOutput.agenticConfidence","typeLabel":"boolean"}},"uniqueKey":"structuredOutput","typeLabel":"object"},"schema":{"oneOf":[{"type":"object","description":"(Deprecated) JSON schema describing structured data to extract. Use structuredOutput instead. Accepts either a JSON object or a stringified JSON representation.","deprecated":true,"uniqueKey":"schema.oneOf.0","typeLabel":"object"},{"type":"string","description":"(Deprecated) JSON schema describing structured data to extract. Use structuredOutput instead. Accepts either a JSON object or a stringified JSON representation.","deprecated":true,"uniqueKey":"schema.oneOf.1","typeLabel":"string"}],"uniqueKey":"schema","typeLabel":"object | string"},"schemaPrompt":{"type":"string","x-fern-property-name":"schema_prompt","description":"(Deprecated) Natural language prompt for schema-guided extraction. Use structuredOutput.schemaPrompt instead.","deprecated":true,"uniqueKey":"schemaPrompt","typeLabel":"string"},"customPrompt":{"type":"string","x-fern-property-name":"custom_prompt","description":"(Deprecated) Custom instructions that augment the default extraction behaviour. Use `figureProcessing` or `extensions` instead.","deprecated":true,"uniqueKey":"customPrompt","typeLabel":"string"},"chunking":{"type":"string","deprecated":true,"description":"**⚠️ DEPRECATED** — Use `extensions.chunking.chunkTypes` instead. Comma-separated list of chunking strategies to apply (for example `semantic,header,page,recursive`). Still accepted for backward compatibility.","uniqueKey":"chunking","typeLabel":"string"},"chunkSize":{"type":"integer","minimum":1,"x-fern-property-name":"chunk_size","deprecated":true,"description":"**⚠️ DEPRECATED** — Use `extensions.chunking.chunkSize` instead. Override for maximum characters per chunk when chunking is enabled.","uniqueKey":"chunkSize","typeLabel":"integer"},"extractFigure":{"type":"boolean","x-fern-property-name":"extract_figure","deprecated":true,"description":"**⚠️ DEPRECATED** — Toggle to enable figure extraction in results.","default":false,"uniqueKey":"extractFigure","typeLabel":"boolean"},"figureDescription":{"type":"boolean","x-fern-property-name":"figure_description","deprecated":true,"description":"**⚠️ DEPRECATED** — Use `figureProcessing.description` instead. Toggle to generate descriptive captions for extracted figures.","default":false,"uniqueKey":"figureDescription","typeLabel":"boolean"},"showImages":{"type":"boolean","x-fern-property-name":"show_images","deprecated":true,"description":"**⚠️ DEPRECATED** — Use `figureProcessing.showImages` instead. Embed base64-encoded images inline in figure tags in the output. Increases response size.","default":false,"uniqueKey":"showImages","typeLabel":"boolean"},"returnHtml":{"type":"boolean","x-fern-property-name":"return_html","deprecated":true,"description":"**⚠️ DEPRECATED** — Use `extensions.altOutputs.returnHtml` instead. Whether to include HTML representation alongside markdown in the response.","default":false,"uniqueKey":"returnHtml","typeLabel":"boolean"},"thinking":{"type":"boolean","description":"(Deprecated) Enables expanded rationale output for debugging.","default":false,"deprecated":true,"uniqueKey":"thinking","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"encoding":{"figureProcessing":{"contentType":"application/json"},"extensions":{"contentType":"application/json"},"spreadsheet":{"contentType":"application/json"},"storage":{"contentType":"application/json"},"structuredOutput":{"contentType":"application/json"},"schema":{"contentType":"application/json"}},"examples":{"Example":{"title":"Example","value":{"file":"\u003cstring>","fileUrl":"\u003cstring>","detectSelections":true,"extractionConfigId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","pages":"\u003cstring>","forceUrl":false,"figureProcessing":{"description":false,"showImages":false},"extensions":{"footnoteReferences":false,"document_metadata":false,"chunking":{"chunkTypes":[],"chunkSize":2},"altOutputs":{"wlbb":false,"returnHtml":false,"returnXml":true}},"spreadsheet":{"includeHiddenRows":false,"includeHiddenCols":false,"includeHiddenSheets":false,"useRawValues":false,"onlyDataRows":false,"onlyDataCols":false,"includeCellFormatting":false,"cellDataMode":"inline"},"storage":{"enabled":true,"folderName":"\u003cstring>","folderId":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"async":false,"structuredOutput":{"schema":{},"schemaPrompt":"\u003cstring>","effort":false,"agenticConfidence":false},"schema":{},"schemaPrompt":"\u003cstring>","customPrompt":"\u003cstring>","chunking":"\u003cstring>","chunkSize":2,"extractFigure":false,"figureDescription":false,"showImages":false,"returnHtml":false,"thinking":false}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"45ec60c3-610c-47b2-96ef-661b79e3f2d6":{"description":"Extraction result. For documents under 70 pages the full result is returned inline. For larger documents and spreadsheet extractions the response can contain `is_url: true` and a single-use `url` to download the full result via `GET /results/{jobId}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Full extraction result returned by the synchronous `/extract` endpoint. Inherits all core fields and adds deprecated backward-compatibility fields.","properties":{"markdown":{"type":"string","description":"Primary markdown content extracted from the document. Always present in the new format.","uniqueKey":"oneOf.0.markdown","typeLabel":"string"},"extensions":{"type":"object","description":"Output from enabled extensions. Each key corresponds to an extension that was enabled in the request under `extensions.*`. Only keys for enabled extensions are present.","properties":{"document_metadata":{"type":"object","description":"Native and structural metadata from the original file. Present only when `extensions.document_metadata` was true.","required":["file","properties","structure","warnings"],"properties":{"file":{"type":"object","description":"Transport-level facts derived from the uploaded source file.","required":["name","extension","media_type","size_bytes"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.extensions.document_metadata.file.name","typeLabel":"string"},"extension":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.extensions.document_metadata.file.extension","typeLabel":"string"},"media_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.extensions.document_metadata.file.media_type","typeLabel":"string"},"size_bytes":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"oneOf.0.extensions.document_metadata.file.size_bytes","typeLabel":"integer\u003cint64>"},"sha256":{"type":"string","description":"SHA-256 content digest, when hashing is available.","uniqueKey":"oneOf.0.extensions.document_metadata.file.sha256","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.0.extensions.document_metadata.file","typeLabel":"object"},"properties":{"type":"object","description":"Normalized native document properties. Absent properties are omitted.","properties":{"title":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.title","typeLabel":"string"},"authors":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.authors.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.extensions.document_metadata.properties.authors","typeLabel":"string[]"},"subject":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.subject","typeLabel":"string"},"description":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.description","typeLabel":"string"},"keywords":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.keywords.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.extensions.document_metadata.properties.keywords","typeLabel":"string[]"},"language":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.language","typeLabel":"string"},"application":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.application","typeLabel":"string"},"application_version":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.application_version","typeLabel":"string"},"producer":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.producer","typeLabel":"string"},"last_modified_by":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.last_modified_by","typeLabel":"string"},"revision":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.revision","typeLabel":"string"},"category":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.category","typeLabel":"string"},"content_status":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.content_status","typeLabel":"string"},"identifier":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.identifier","typeLabel":"string"},"version":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.version","typeLabel":"string"},"company":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.company","typeLabel":"string"},"manager":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.manager","typeLabel":"string"},"template":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.template","typeLabel":"string"},"presentation_format":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.presentation_format","typeLabel":"string"},"editing_time_minutes":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.properties.editing_time_minutes","typeLabel":"integer"},"copyright":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.properties.copyright","typeLabel":"string"},"created_at":{"type":"string","description":"ISO 8601 timestamp when the source provides one.","uniqueKey":"oneOf.0.extensions.document_metadata.properties.created_at","typeLabel":"string"},"modified_at":{"type":"string","description":"ISO 8601 timestamp when the source provides one.","uniqueKey":"oneOf.0.extensions.document_metadata.properties.modified_at","typeLabel":"string"}},"additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.extensions.document_metadata.properties","typeLabel":"object"},"structure":{"type":"object","description":"Deterministic structure derived from the source document format.","properties":{"page_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.page_count","typeLabel":"integer"},"page_labels":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.structure.page_labels.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.extensions.document_metadata.structure.page_labels","typeLabel":"string[]"},"page_sizes":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.page_sizes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.extensions.document_metadata.structure.page_sizes","typeLabel":"object[]"},"outline_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.outline_count","typeLabel":"integer"},"attachment_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.attachment_count","typeLabel":"integer"},"annotation_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.annotation_count","typeLabel":"integer"},"annotation_types":{"type":"object","additionalProperties":{"type":"integer","uniqueKey":"oneOf.0.extensions.document_metadata.structure.annotation_types.additionalProperties","typeLabel":"integer"},"uniqueKey":"oneOf.0.extensions.document_metadata.structure.annotation_types","typeLabel":"object"},"form_field_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.form_field_count","typeLabel":"integer"},"sheet_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.sheet_count","typeLabel":"integer"},"sheet_names":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.structure.sheet_names.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.extensions.document_metadata.structure.sheet_names","typeLabel":"string[]"},"sheet_visibility":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.structure.sheet_visibility.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.extensions.document_metadata.structure.sheet_visibility","typeLabel":"object"},"active_sheet":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.structure.active_sheet","typeLabel":"string"},"slide_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.slide_count","typeLabel":"integer"},"note_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.note_count","typeLabel":"integer"},"hidden_slide_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.hidden_slide_count","typeLabel":"integer"},"multimedia_clip_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.multimedia_clip_count","typeLabel":"integer"},"word_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.word_count","typeLabel":"integer"},"character_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.character_count","typeLabel":"integer"},"character_count_with_spaces":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.character_count_with_spaces","typeLabel":"integer"},"line_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.line_count","typeLabel":"integer"},"paragraph_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.paragraph_count","typeLabel":"integer"},"paragraph_count_derived":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.paragraph_count_derived","typeLabel":"integer"},"table_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.table_count","typeLabel":"integer"},"section_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.section_count","typeLabel":"integer"},"embedded_image_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.embedded_image_count","typeLabel":"integer"},"width_px":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.width_px","typeLabel":"integer"},"height_px":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.height_px","typeLabel":"integer"},"frame_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.frame_count","typeLabel":"integer"},"row_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.row_count","typeLabel":"integer"},"max_column_count":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.extensions.document_metadata.structure.max_column_count","typeLabel":"integer"}},"additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.extensions.document_metadata.structure","typeLabel":"object"},"warnings":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.extensions.document_metadata.warnings.items.[INDEX]","typeLabel":"string"},"description":"Non-fatal metadata parsing warnings.","isRequired":true,"uniqueKey":"oneOf.0.extensions.document_metadata.warnings","typeLabel":"string[]"},"custom":{"type":"object","description":"Custom properties declared by the source document.","additionalProperties":true,"uniqueKey":"oneOf.0.extensions.document_metadata.custom","typeLabel":"object"},"format_specific":{"type":"object","description":"Native values that do not map into normalized fields.","additionalProperties":true,"uniqueKey":"oneOf.0.extensions.document_metadata.format_specific","typeLabel":"object"}},"uniqueKey":"oneOf.0.extensions.document_metadata","typeLabel":"object"},"chunking":{"type":"object","description":"Chunk results by strategy. Present when `extensions.chunking` was provided in the request.","properties":{"semantic":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.extensions.chunking.semantic.items.[INDEX]","typeLabel":"string"},"description":"Semantically-segmented chunks.","uniqueKey":"oneOf.0.extensions.chunking.semantic","typeLabel":"string[]"},"header":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.extensions.chunking.header.items.[INDEX]","typeLabel":"string"},"description":"Chunks split by document headers/headings.","uniqueKey":"oneOf.0.extensions.chunking.header","typeLabel":"string[]"},"page":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.extensions.chunking.page.items.[INDEX]","typeLabel":"string"},"description":"One chunk per page.","uniqueKey":"oneOf.0.extensions.chunking.page","typeLabel":"string[]"},"recursive":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.extensions.chunking.recursive.items.[INDEX]","typeLabel":"string"},"description":"Recursively-split chunks respecting size limits.","uniqueKey":"oneOf.0.extensions.chunking.recursive","typeLabel":"string[]"}},"uniqueKey":"oneOf.0.extensions.chunking","typeLabel":"object"},"footnoteReferences":{"type":"array","x-fern-property-name":"footnote_references","description":"List of detected footnotes with their in-text references. Present when `extensions.footnoteReferences` was enabled. Each item links a footnote to the body-text blocks that reference it (`referenceTextIds`, block level) and to every located marker occurrence (`references`, one entry per marker, with the marker's own bounding box when the PDF text layer or word boxes pinned it). Several footnotes can share one `footnoteTextId` when the extractor returned them as a single block; `symbol` plus `footnoteTextId` is the unique key.","items":{"type":"object","properties":{"symbol":{"type":"string","description":"The footnote marker as written in the footnote text (e.g. \"*\", \"†\", \"⁴\", \"(1)\").","uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].symbol","typeLabel":"string"},"footnoteTextId":{"type":"string","description":"The bounding-box text ID (e.g. \"txt-15\") of the block holding the footnote explanation.","uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].footnoteTextId","typeLabel":"string"},"footnotePageNumber":{"type":"integer","minimum":1,"description":"1-indexed page of the footnote text.","uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].footnotePageNumber","typeLabel":"integer"},"footnoteText":{"type":"string","description":"The footnote's own text with its leading marker removed — the portion of `footnoteTextId`'s content belonging to this footnote.","uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].footnoteText","typeLabel":"string"},"referenceTextIds":{"type":"array","description":"Bounding-box text IDs of body-text blocks that contain a reference to this footnote marker (table cells are reported in `references` only).","items":{"type":"string","uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].referenceTextIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].referenceTextIds","typeLabel":"string[]"},"references":{"type":"array","description":"One entry per located marker occurrence, in reading order.","items":{"type":"object","properties":{"textId":{"type":"string","description":"Bounding-box text ID of the citing block. Absent for table cells (see `tableId`).","uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references.items.[INDEX].textId","typeLabel":"string"},"tableId":{"type":"string","description":"`table_info.id` of the table when the marker sits in a cell; `row` and `column` locate the cell.","uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references.items.[INDEX].tableId","typeLabel":"string"},"row":{"type":"integer","uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references.items.[INDEX].row","typeLabel":"integer"},"column":{"type":"integer","uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references.items.[INDEX].column","typeLabel":"integer"},"pageNumber":{"type":"integer","minimum":1,"uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references.items.[INDEX].pageNumber","typeLabel":"integer"},"markerBoundingBox":{"oneOf":[{"type":"array","description":"Polygon of the marker glyph in the same normalized page coordinates as `bounding_box` (native text layer: the glyph; word boxes: the word carrying it). `null` when only the text content located the reference.","items":{"type":"number","uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references.items.[INDEX].markerBoundingBox.oneOf.0.items.[INDEX]","typeLabel":"number"},"uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references.items.[INDEX].markerBoundingBox.oneOf.0","typeLabel":"number[]"},{"type":"null","description":"Polygon of the marker glyph in the same normalized page coordinates as `bounding_box` (native text layer: the glyph; word boxes: the word carrying it). `null` when only the text content located the reference.","items":{"type":"number"},"uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references.items.[INDEX].markerBoundingBox.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references.items.[INDEX].markerBoundingBox","typeLabel":"number[] | null"},"source":{"type":"string","enum":["native","words","text"],"description":"Which layer located this occurrence — the PDF text layer, extractor word boxes, or the block text alone.","uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references.items.[INDEX].source","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX].references","typeLabel":"object[]"}},"uniqueKey":"oneOf.0.extensions.footnoteReferences.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.extensions.footnoteReferences","typeLabel":"object[]"},"altOutputs":{"type":"object","x-fern-property-name":"alt_outputs","description":"Alternate output formats. Each key corresponds to an enabled alt output.","properties":{"wlbb":{"type":"object","description":"Word-level bounding box data. Present when `extensions.altOutputs.wlbb` was enabled and input is a PDF.","properties":{"words":{"type":"array","description":"List of detected words with their positions.","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the word (e.g. \"w-1\", \"w-2\", …).","uniqueKey":"oneOf.0.extensions.altOutputs.wlbb.words.items.[INDEX].id","typeLabel":"string"},"text":{"type":"string","description":"The recognised word text.","uniqueKey":"oneOf.0.extensions.altOutputs.wlbb.words.items.[INDEX].text","typeLabel":"string"},"page_number":{"type":"integer","minimum":1,"description":"1-indexed page number in the original document.","uniqueKey":"oneOf.0.extensions.altOutputs.wlbb.words.items.[INDEX].page_number","typeLabel":"integer"},"bounding_box":{"type":"array","description":"Flat 4-corner polygon: [x1,y1, x2,y2, x3,y3, x4,y4]. All coordinates normalised to 0–1 range.","items":{"type":"number","uniqueKey":"oneOf.0.extensions.altOutputs.wlbb.words.items.[INDEX].bounding_box.items.[INDEX]","typeLabel":"number"},"minItems":8,"maxItems":8,"uniqueKey":"oneOf.0.extensions.altOutputs.wlbb.words.items.[INDEX].bounding_box","typeLabel":"number[]"},"average_word_confidence":{"type":"number","description":"Recognition confidence score (0–1).","uniqueKey":"oneOf.0.extensions.altOutputs.wlbb.words.items.[INDEX].average_word_confidence","typeLabel":"number"}},"uniqueKey":"oneOf.0.extensions.altOutputs.wlbb.words.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.extensions.altOutputs.wlbb.words","typeLabel":"object[]"},"error":{"type":"string","description":"Error message if word-level extraction failed.","uniqueKey":"oneOf.0.extensions.altOutputs.wlbb.error","typeLabel":"string"}},"uniqueKey":"oneOf.0.extensions.altOutputs.wlbb","typeLabel":"object"},"html":{"type":"string","description":"HTML representation of the document. Present when `extensions.altOutputs.returnHtml` was enabled.","uniqueKey":"oneOf.0.extensions.altOutputs.html","typeLabel":"string"},"xml":{"oneOf":[{"type":"string","deprecated":true,"description":"**Deprecated** — Never populated: XML output was withdrawn.","uniqueKey":"oneOf.0.extensions.altOutputs.xml.oneOf.0","typeLabel":"string"},{"type":"null","deprecated":true,"description":"**Deprecated** — Never populated: XML output was withdrawn.","uniqueKey":"oneOf.0.extensions.altOutputs.xml.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.extensions.altOutputs.xml","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.extensions.altOutputs","typeLabel":"object"}},"uniqueKey":"oneOf.0.extensions","typeLabel":"object"},"bounding_boxes":{"type":"object","description":"Positional bounding-box data for text, titles, headers, footers, images, and tables. `Images` carries chart/image visuals (with `image_url` when `figure_processing.show_images` is enabled), `Tables` the detected tables, and `Text`/`Title`/`Footer` the paragraph/title/footer regions. Additional keys (e.g. `markdown_with_ids`, `defined_names`) round-trip without being typed.","properties":{"Images":{"type":"array","items":{"type":"object","description":"Detected or embedded visual (chart or image) returned under `bounding_boxes.Images`. For PDFs/images, populated when figure detection is enabled. For spreadsheets, populated for embedded charts and images. `image_url` is set when `figure_processing.show_images` is enabled.","required":["id","visual_type"],"properties":{"id":{"type":"string","description":"Stable visual identifier (e.g. `excel_image_1_1`, `fig-3`). Use this to join with the `data-bb-image-id` attribute in the markdown output.","isRequired":true,"uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].id","typeLabel":"string"},"visual_type":{"type":"string","description":"Visual class. Drives whether `figure_processing.description` / `figure_processing.show_images` apply to this entry.","enum":["chart","image"],"isRequired":true,"uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].visual_type","typeLabel":"enum\u003cstring>"},"content":{"type":"string","description":"Short caption for the visual (e.g. `Chart: Revenue`). Populated by the spreadsheet parser; PDF figures may leave this empty when no caption is detected.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].content","typeLabel":"string"},"caption":{"oneOf":[{"type":"string","description":"The caption or title printed with the visual: the caption line detected next to it, or, for a picture placed inside a table cell, that cell's text. `null` when the document prints none. Present on PDF, image and rendered Office inputs.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].caption.oneOf.0","typeLabel":"string"},{"type":"null","description":"The caption or title printed with the visual: the caption line detected next to it, or, for a picture placed inside a table cell, that cell's text. `null` when the document prints none. Present on PDF, image and rendered Office inputs.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].caption.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].caption","typeLabel":"string | null"},"page_number":{"type":"integer","minimum":1,"description":"1-indexed page or sheet index.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].page_number","typeLabel":"integer"},"confidence":{"oneOf":[{"type":"number","description":"Always present. Visuals are not scored by the extractor, so this is `\"N/A\"` on the Azure-compatible profile and `null` on the ultra profile; a number when a provider reports one.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].confidence.oneOf.0","typeLabel":"number"},{"type":"string","description":"Always present. Visuals are not scored by the extractor, so this is `\"N/A\"` on the Azure-compatible profile and `null` on the ultra profile; a number when a provider reports one.","enum":["N/A"],"uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].confidence.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].confidence.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].confidence","typeLabel":"number | enum\u003cstring> | null"},"bounding_box":{"type":"array","items":{"type":"number","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].bounding_box.items.[INDEX]","typeLabel":"number"},"description":"Document coordinate polygon when available. Spreadsheet visuals typically use an empty array and rely on `excel_range` for positioning.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].bounding_box","typeLabel":"number[]"},"image_url":{"type":"string","description":"Pulse-hosted URL for the visual image bytes. Present when `figure_processing.show_images` was enabled for this visual_type. Spreadsheet visuals proxy through `GET /results/{jobId}/images/{filename}`; inline figure flows may use a data URI.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].image_url","typeLabel":"string"},"description":{"type":"string","description":"Generated visual description. Present when `figure_processing.description` was enabled for this visual_type.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].description","typeLabel":"string"},"classification":{"type":"object","description":"Visual classification metadata when classification was run. Includes confidence, model name, and any non-fatal classification error.","additionalProperties":true,"properties":{"confidence":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].classification.confidence","typeLabel":"number"},"model":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].classification.model","typeLabel":"string"},"error":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].classification.error","typeLabel":"string"}},"uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].classification","typeLabel":"object"},"sheet_name":{"type":"string","description":"Spreadsheet-only sheet name.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].sheet_name","typeLabel":"string"},"sheet_index":{"type":"integer","description":"Spreadsheet-only parsed sheet index after hidden-sheet filtering.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].sheet_index","typeLabel":"integer"},"workbook_sheet_index":{"type":"integer","description":"Spreadsheet-only original workbook sheet index.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].workbook_sheet_index","typeLabel":"integer"},"excel_range":{"type":"string","description":"Spreadsheet-only anchor or covered cell range for the visual.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].excel_range","typeLabel":"string"},"chart_type":{"type":"string","description":"Spreadsheet chart class name (e.g. `BarChart`, `LineChart`) when `visual_type` is `chart`.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].chart_type","typeLabel":"string"},"chart_title":{"type":"string","description":"Spreadsheet chart title when available.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].chart_title","typeLabel":"string"},"source_ranges":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].source_ranges.items.[INDEX]","typeLabel":"string"},"description":"Spreadsheet chart source ranges when available, e.g. `[\"Charts!$B$1:$B$3\"]`.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].source_ranges","typeLabel":"string[]"},"render_error":{"type":"string","description":"Optional non-fatal rendering error for spreadsheet visuals. When set, the visual entry is still returned but `image_url` may be omitted.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].render_error","typeLabel":"string"},"description_error":{"type":"string","description":"Optional non-fatal description-generation error.","uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX].description_error","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"oneOf.0.bounding_boxes.Images.items.[INDEX]","typeLabel":"object"},"description":"Detected or embedded visuals. `image_url` is populated when `figure_processing.show_images` was enabled and the entry's `visual_type` matched the requested target.","uniqueKey":"oneOf.0.bounding_boxes.Images","typeLabel":"object[]"},"Tables":{"type":"array","items":{"type":"object","description":"Detected table region returned under `bounding_boxes.Tables`. Carries a structured `table_info` block plus optional `cell_data`. Kept loose with `additionalProperties: true` to round-trip future fields the server may add (e.g. layout metadata).","properties":{"table_info":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.id","typeLabel":"string"},"dimensions":{"type":"array","items":{"type":"integer","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.dimensions.items.[INDEX]","typeLabel":"integer"},"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.dimensions","typeLabel":"integer[]"},"excel_range":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.excel_range","typeLabel":"string"},"sheet_name":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.sheet_name","typeLabel":"string"},"sheet_index":{"type":"integer","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.sheet_index","typeLabel":"integer"},"workbook_sheet_index":{"type":"integer","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.workbook_sheet_index","typeLabel":"integer"},"section_index":{"type":"integer","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.section_index","typeLabel":"integer"},"section_type":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.section_type","typeLabel":"string"},"section_name":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.section_name","typeLabel":"string"},"table_name":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.table_name","typeLabel":"string"},"layout_type":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.layout_type","typeLabel":"string"},"is_chart":{"type":"boolean","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.is_chart","typeLabel":"boolean"},"chart_type":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.chart_type","typeLabel":"string"},"chart_title":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.chart_title","typeLabel":"string"},"source_ranges":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.source_ranges.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.source_ranges","typeLabel":"string[]"},"location":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.location","typeLabel":"object"},"confidence":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Confidence that the table was extracted correctly (pulse-ultra-2: token probabilities blended with table structure checks and, with `word_level_bounding_boxes`, weighted OCR evidence). Mirrored as the entry's top-level `confidence`.","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.confidence.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Confidence that the table was extracted correctly (pulse-ultra-2: token probabilities blended with table structure checks and, with `word_level_bounding_boxes`, weighted OCR evidence). Mirrored as the entry's top-level `confidence`.","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info.confidence","typeLabel":"number | null"}},"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].table_info","typeLabel":"object"},"confidence":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Same value as `table_info.confidence`.","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].confidence.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Same value as `table_info.confidence`.","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].confidence","typeLabel":"number | null"},"cell_data":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"confidence":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Per-cell confidence (pulse-ultra-2): the cell's own token probabilities, blended with the OCR words matched to it when `word_level_bounding_boxes` is on; a cell the extractor could not score carries the table's value.","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.0.items.[INDEX].confidence.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Per-cell confidence (pulse-ultra-2): the cell's own token probabilities, blended with the OCR words matched to it when `word_level_bounding_boxes` is on; a cell the extractor could not score carries the table's value.","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.0.items.[INDEX].confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.0.items.[INDEX].confidence","typeLabel":"number | null"}},"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Table cell payload when available. An array of cell records when `spreadsheet.cellDataMode` is `inline` (the default); an `ExternalCellDataReference` when it is `external`. Chart-only sheets carry an empty object. Shape of the records varies by extraction path; SDK consumers should treat them as opaque.","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"Table cell payload when available. An array of cell records when `spreadsheet.cellDataMode` is `inline` (the default); an `ExternalCellDataReference` when it is `external`. Chart-only sheets carry an empty object. Shape of the records varies by extraction path; SDK consumers should treat them as opaque.","required":["is_url"],"properties":{"is_url":{"type":"boolean","description":"Always `true` for a reference.","isRequired":true,"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.1.is_url","typeLabel":"boolean"},"url":{"oneOf":[{"type":"string","format":"uri","description":"Authenticated Pulse result-proxy URL (`GET /results/{jobId}/cell-data/{filename}`). Null when artifact storage is disabled for the request.","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.1.url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Authenticated Pulse result-proxy URL (`GET /results/{jobId}/cell-data/{filename}`). Null when artifact storage is disabled for the request.","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.1.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.1.url","typeLabel":"string\u003curi> | null"},"format":{"type":"string","enum":["jsonl"],"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.1.format","typeLabel":"enum\u003cstring>"},"count":{"type":"integer","minimum":0,"description":"Number of cell records in the artifact.","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.1.count","typeLabel":"integer"},"filename":{"type":"string","uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.1.filename","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.1","typeLabel":"object"},{"type":"object","description":"Table cell payload when available. An array of cell records when `spreadsheet.cellDataMode` is `inline` (the default); an `ExternalCellDataReference` when it is `external`. Chart-only sheets carry an empty object. Shape of the records varies by extraction path; SDK consumers should treat them as opaque.","maxProperties":0,"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data.oneOf.2","typeLabel":"object"}],"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX].cell_data","typeLabel":"object[] · object · object"}},"additionalProperties":true,"uniqueKey":"oneOf.0.bounding_boxes.Tables.items.[INDEX]","typeLabel":"object"},"description":"Detected tables. Each entry carries a `table_info` block plus optional `cell_data`.","uniqueKey":"oneOf.0.bounding_boxes.Tables","typeLabel":"object[]"},"Text":{"type":"array","items":{"type":"object","description":"Common base shape used for `Text`, `Title`, and `Footer` bounding-box entries. Spreadsheet rows may carry additional sheet-scoped fields such as `excel_range` and `sheet_name`; forward-compatible extra properties are accepted.","properties":{"id":{"type":"string","description":"Stable bounding-box identifier (e.g. `txt-1`, `excel_title_0`). Used by extensions like `footnoteReferences` to cross-reference paragraphs.","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].id","typeLabel":"string"},"content":{"type":"string","description":"Plain-text content of the region.","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].content","typeLabel":"string"},"page_number":{"type":"integer","minimum":1,"description":"1-indexed page number. For spreadsheets this matches the parsed sheet index after hidden-sheet filtering.","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].page_number","typeLabel":"integer"},"confidence":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Extractor confidence that the region's text is right. On pulse-ultra-2 it is the model's own token probabilities over the element, weighted by OCR word evidence when `word_level_bounding_boxes` is on. `null` when the extractor produced no score (an element of one or two tokens).","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].confidence.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Extractor confidence that the region's text is right. On pulse-ultra-2 it is the model's own token probabilities over the element, weighted by OCR word evidence when `word_level_bounding_boxes` is on. `null` when the extractor produced no score (an element of one or two tokens).","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].confidence","typeLabel":"number | null"},"reading_order":{"type":"integer","minimum":0,"description":"Document-wide reading-order index assigned by the extractor (pulse-ultra-2). Grouping by category loses the order the page was read in; sort the union of `Text`, `Title`, `Header`, `Footer`, `caption`, `List Items`, `Formulas`, `Tables` (`table_info.reading_order`) and `Images` by this value to reconstruct the document flow.","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].reading_order","typeLabel":"integer"},"bounding_box":{"type":"array","items":{"type":"number","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].bounding_box.items.[INDEX]","typeLabel":"number"},"description":"Document coordinate polygon when available. Spreadsheet visuals may use an empty array and `excel_range` instead.","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].bounding_box","typeLabel":"number[]"},"excel_range":{"type":"string","description":"Spreadsheet-only anchor or covered cell range.","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].excel_range","typeLabel":"string"},"sheet_name":{"type":"string","description":"Spreadsheet-only sheet name.","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].sheet_name","typeLabel":"string"},"sheet_index":{"type":"integer","description":"Spreadsheet-only parsed sheet index after hidden-sheet filtering.","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].sheet_index","typeLabel":"integer"},"workbook_sheet_index":{"type":"integer","description":"Spreadsheet-only original workbook sheet index.","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].workbook_sheet_index","typeLabel":"integer"},"selected":{"type":"boolean","description":"Selection state for a form control or marked-choice region when `detectSelections` was enabled and the detector could determine it.","uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX].selected","typeLabel":"boolean"}},"additionalProperties":true,"uniqueKey":"oneOf.0.bounding_boxes.Text.items.[INDEX]","typeLabel":"object"},"description":"Body-text paragraphs and detected text regions. For spreadsheets, includes free-form text outside table regions (titles, captions, instructions).","uniqueKey":"oneOf.0.bounding_boxes.Text","typeLabel":"object[]"},"Title":{"type":"array","items":{"type":"object","description":"Common base shape used for `Text`, `Title`, and `Footer` bounding-box entries. Spreadsheet rows may carry additional sheet-scoped fields such as `excel_range` and `sheet_name`; forward-compatible extra properties are accepted.","properties":{"id":{"type":"string","description":"Stable bounding-box identifier (e.g. `txt-1`, `excel_title_0`). Used by extensions like `footnoteReferences` to cross-reference paragraphs.","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].id","typeLabel":"string"},"content":{"type":"string","description":"Plain-text content of the region.","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].content","typeLabel":"string"},"page_number":{"type":"integer","minimum":1,"description":"1-indexed page number. For spreadsheets this matches the parsed sheet index after hidden-sheet filtering.","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].page_number","typeLabel":"integer"},"confidence":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Extractor confidence that the region's text is right. On pulse-ultra-2 it is the model's own token probabilities over the element, weighted by OCR word evidence when `word_level_bounding_boxes` is on. `null` when the extractor produced no score (an element of one or two tokens).","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].confidence.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Extractor confidence that the region's text is right. On pulse-ultra-2 it is the model's own token probabilities over the element, weighted by OCR word evidence when `word_level_bounding_boxes` is on. `null` when the extractor produced no score (an element of one or two tokens).","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].confidence","typeLabel":"number | null"},"reading_order":{"type":"integer","minimum":0,"description":"Document-wide reading-order index assigned by the extractor (pulse-ultra-2). Grouping by category loses the order the page was read in; sort the union of `Text`, `Title`, `Header`, `Footer`, `caption`, `List Items`, `Formulas`, `Tables` (`table_info.reading_order`) and `Images` by this value to reconstruct the document flow.","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].reading_order","typeLabel":"integer"},"bounding_box":{"type":"array","items":{"type":"number","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].bounding_box.items.[INDEX]","typeLabel":"number"},"description":"Document coordinate polygon when available. Spreadsheet visuals may use an empty array and `excel_range` instead.","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].bounding_box","typeLabel":"number[]"},"excel_range":{"type":"string","description":"Spreadsheet-only anchor or covered cell range.","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].excel_range","typeLabel":"string"},"sheet_name":{"type":"string","description":"Spreadsheet-only sheet name.","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].sheet_name","typeLabel":"string"},"sheet_index":{"type":"integer","description":"Spreadsheet-only parsed sheet index after hidden-sheet filtering.","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].sheet_index","typeLabel":"integer"},"workbook_sheet_index":{"type":"integer","description":"Spreadsheet-only original workbook sheet index.","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].workbook_sheet_index","typeLabel":"integer"},"selected":{"type":"boolean","description":"Selection state for a form control or marked-choice region when `detectSelections` was enabled and the detector could determine it.","uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX].selected","typeLabel":"boolean"}},"additionalProperties":true,"uniqueKey":"oneOf.0.bounding_boxes.Title.items.[INDEX]","typeLabel":"object"},"description":"Detected title regions. Spreadsheets emit one `Sheet: \u003cname>` title per processed sheet.","uniqueKey":"oneOf.0.bounding_boxes.Title","typeLabel":"object[]"},"Footer":{"type":"array","items":{"type":"object","description":"Common base shape used for `Text`, `Title`, and `Footer` bounding-box entries. Spreadsheet rows may carry additional sheet-scoped fields such as `excel_range` and `sheet_name`; forward-compatible extra properties are accepted.","properties":{"id":{"type":"string","description":"Stable bounding-box identifier (e.g. `txt-1`, `excel_title_0`). Used by extensions like `footnoteReferences` to cross-reference paragraphs.","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].id","typeLabel":"string"},"content":{"type":"string","description":"Plain-text content of the region.","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].content","typeLabel":"string"},"page_number":{"type":"integer","minimum":1,"description":"1-indexed page number. For spreadsheets this matches the parsed sheet index after hidden-sheet filtering.","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].page_number","typeLabel":"integer"},"confidence":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Extractor confidence that the region's text is right. On pulse-ultra-2 it is the model's own token probabilities over the element, weighted by OCR word evidence when `word_level_bounding_boxes` is on. `null` when the extractor produced no score (an element of one or two tokens).","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].confidence.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Extractor confidence that the region's text is right. On pulse-ultra-2 it is the model's own token probabilities over the element, weighted by OCR word evidence when `word_level_bounding_boxes` is on. `null` when the extractor produced no score (an element of one or two tokens).","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].confidence","typeLabel":"number | null"},"reading_order":{"type":"integer","minimum":0,"description":"Document-wide reading-order index assigned by the extractor (pulse-ultra-2). Grouping by category loses the order the page was read in; sort the union of `Text`, `Title`, `Header`, `Footer`, `caption`, `List Items`, `Formulas`, `Tables` (`table_info.reading_order`) and `Images` by this value to reconstruct the document flow.","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].reading_order","typeLabel":"integer"},"bounding_box":{"type":"array","items":{"type":"number","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].bounding_box.items.[INDEX]","typeLabel":"number"},"description":"Document coordinate polygon when available. Spreadsheet visuals may use an empty array and `excel_range` instead.","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].bounding_box","typeLabel":"number[]"},"excel_range":{"type":"string","description":"Spreadsheet-only anchor or covered cell range.","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].excel_range","typeLabel":"string"},"sheet_name":{"type":"string","description":"Spreadsheet-only sheet name.","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].sheet_name","typeLabel":"string"},"sheet_index":{"type":"integer","description":"Spreadsheet-only parsed sheet index after hidden-sheet filtering.","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].sheet_index","typeLabel":"integer"},"workbook_sheet_index":{"type":"integer","description":"Spreadsheet-only original workbook sheet index.","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].workbook_sheet_index","typeLabel":"integer"},"selected":{"type":"boolean","description":"Selection state for a form control or marked-choice region when `detectSelections` was enabled and the detector could determine it.","uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX].selected","typeLabel":"boolean"}},"additionalProperties":true,"uniqueKey":"oneOf.0.bounding_boxes.Footer.items.[INDEX]","typeLabel":"object"},"description":"Detected footer regions (e.g. spreadsheet \"Totals\" rows, PDF page footers).","uniqueKey":"oneOf.0.bounding_boxes.Footer","typeLabel":"object[]"},"markdown_with_ids":{"type":"string","description":"Markdown variant with stable `data-bb-*-id` attributes in figure / table / text tags. Lets clients join rendered HTML back to bounding-box entries by id.","uniqueKey":"oneOf.0.bounding_boxes.markdown_with_ids","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"oneOf.0.bounding_boxes","typeLabel":"object"},"extraction_id":{"type":"string","format":"uuid","description":"Persisted extraction ID. Present when storage is enabled (default). Use this ID with `/split` and `/schema` endpoints.","uniqueKey":"oneOf.0.extraction_id","typeLabel":"string\u003cuuid>"},"extraction_url":{"type":"string","description":"URL to view the extraction on the Pulse platform. Present when storage is enabled.","uniqueKey":"oneOf.0.extraction_url","typeLabel":"string"},"page_count":{"type":"integer","minimum":1,"description":"Number of pages processed.","uniqueKey":"oneOf.0.page_count","typeLabel":"integer"},"failed_pages":{"type":"array","description":"Large documents only: the pages that could not be extracted, each `{page, error}`; `[]` when every page was extracted. The job still completes, and `page_count` stays the document's page count.","items":{"type":"object","properties":{"page":{"type":"integer","minimum":1,"description":"The 1-indexed page that could not be extracted.","uniqueKey":"oneOf.0.failed_pages.items.[INDEX].page","typeLabel":"integer"},"error":{"type":"string","description":"Why the page could not be extracted.","uniqueKey":"oneOf.0.failed_pages.items.[INDEX].error","typeLabel":"string"}},"uniqueKey":"oneOf.0.failed_pages.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.failed_pages","typeLabel":"object[]"},"pages_succeeded":{"type":"integer","minimum":0,"description":"Large documents only: pages extracted (and billed).","uniqueKey":"oneOf.0.pages_succeeded","typeLabel":"integer"},"pages_failed":{"type":"integer","minimum":0,"description":"Large documents only: pages that could not be extracted; 0 when none.","uniqueKey":"oneOf.0.pages_failed","typeLabel":"integer"},"plan_info":{"type":"object","description":"Billing tier and cumulative usage information. Includes `total_credits_used` (primary billing metric) and `pages_used` (legacy compatibility).","properties":{"tier":{"type":"string","description":"Billing tier, e.g. `\"trial\"`, `\"growth\"`, `\"pulse_ultra_2\"`.","uniqueKey":"oneOf.0.plan_info.tier","typeLabel":"string"},"total_credits_used":{"type":"number","format":"float","description":"Total credits consumed by the organization to date, including this request. The primary billing metric going forward.","uniqueKey":"oneOf.0.plan_info.total_credits_used","typeLabel":"number\u003cfloat>"},"pages_used":{"type":"integer","minimum":0,"description":"Total pages processed by the organization to date, including this request. Kept for backward compatibility with clients that haven't migrated to `total_credits_used`.","uniqueKey":"oneOf.0.plan_info.pages_used","typeLabel":"integer"},"note":{"type":"string","description":"Optional human-readable note about billing state for this response (e.g. trial credits remaining). Omitted when no note applies.","uniqueKey":"oneOf.0.plan_info.note","typeLabel":"string"}},"uniqueKey":"oneOf.0.plan_info","typeLabel":"object"},"warnings":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.warnings.items.[INDEX]","typeLabel":"string"},"description":"Non-fatal warnings generated during extraction. Includes deprecation notices when legacy input parameters are used, as well as processing warnings (e.g. word-level bounding box limitations).","uniqueKey":"oneOf.0.warnings","typeLabel":"string[]"},"credits_used":{"oneOf":[{"type":"number","format":"float","description":"Number of credits consumed by this request. Only present when the organization has the credit billing system enabled.","uniqueKey":"oneOf.0.credits_used.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"Number of credits consumed by this request. Only present when the organization has the credit billing system enabled.","uniqueKey":"oneOf.0.credits_used.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.credits_used","typeLabel":"number\u003cfloat> | null"},"html":{"type":"string","deprecated":true,"description":"**Deprecated** — Use `extensions.altOutputs.html` instead. HTML representation of the extracted content. Present when the legacy `returnHtml` input was used.","uniqueKey":"oneOf.0.html","typeLabel":"string"},"chunks":{"type":"object","deprecated":true,"description":"**Deprecated** — Use `extensions.chunking` instead. Document content split into chunks. Present when the legacy `chunking` input was used.","properties":{"semantic":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.chunks.semantic.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.chunks.semantic","typeLabel":"string[]"},"header":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.chunks.header.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.chunks.header","typeLabel":"string[]"},"page":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.chunks.page.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.chunks.page","typeLabel":"string[]"},"recursive":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.chunks.recursive.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.chunks.recursive","typeLabel":"string[]"}},"uniqueKey":"oneOf.0.chunks","typeLabel":"object"},"structured_output":{"type":"object","description":"**Deprecated** — Only present when the deprecated `structuredOutput` input parameter was used. Use the `/schema` endpoint after extraction instead.","deprecated":true,"properties":{"values":{"type":"object","description":"Extracted values matching the provided schema.","additionalProperties":true,"uniqueKey":"oneOf.0.structured_output.values","typeLabel":"object"},"citations":{"type":"object","description":"Citation references linking extracted values to source locations.","additionalProperties":true,"uniqueKey":"oneOf.0.structured_output.citations","typeLabel":"object"}},"uniqueKey":"oneOf.0.structured_output","typeLabel":"object"},"input_schema":{"type":"object","deprecated":true,"description":"**Deprecated** — Echo of the schema that was applied. Only present when the deprecated `structuredOutput` input parameter was used.","additionalProperties":true,"uniqueKey":"oneOf.0.input_schema","typeLabel":"object"},"schema_error":{"type":"string","deprecated":true,"description":"**Deprecated** — Error message if schema processing failed via the deprecated `structuredOutput` input parameter.","uniqueKey":"oneOf.0.schema_error","typeLabel":"string"},"content":{"type":"string","deprecated":true,"description":"**Deprecated** — Alias for `markdown`. Included for backward compatibility with older SDK versions. Prefer `markdown`.","uniqueKey":"oneOf.0.content","typeLabel":"string"},"job_id":{"type":"string","deprecated":true,"description":"**Deprecated** — Identifier assigned to the extraction job. Retained for backward compatibility.","uniqueKey":"oneOf.0.job_id","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"deprecated":true,"description":"**Deprecated** — Additional metadata supplied by the backend. Retained for backward compatibility.","uniqueKey":"oneOf.0.metadata","typeLabel":"object"}},"additionalProperties":true,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Returned instead of the full extraction result for large results, including documents with 70 or more pages and spreadsheet extractions. The `url` field is a single-use download link; fetch it once to retrieve the complete `ExtractResultCore` payload. Subsequent requests to the same URL return 410 Gone.","required":["is_url","url"],"properties":{"is_url":{"type":"boolean","description":"Always `true` for large document responses.","enum":[true],"isRequired":true,"uniqueKey":"oneOf.1.is_url","typeLabel":"enum\u003cboolean>"},"url":{"type":"string","description":"Single-use URL to download the full extraction result. After one successful download the resource is deleted and further requests return 410 Gone.","isRequired":true,"uniqueKey":"oneOf.1.url","typeLabel":"string"},"extraction_id":{"type":"string","format":"uuid","description":"Extraction identifier (when storage is enabled).","uniqueKey":"oneOf.1.extraction_id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"markdown":"\u003cstring>","extensions":{"document_metadata":{"file":{"name":"\u003cstring>","extension":"\u003cstring>","media_type":"\u003cstring>","size_bytes":1,"sha256":"\u003cstring>"},"properties":{"title":"\u003cstring>","authors":["\u003cstring>"],"subject":"\u003cstring>","description":"\u003cstring>","keywords":["\u003cstring>"],"language":"\u003cstring>","application":"\u003cstring>","application_version":"\u003cstring>","producer":"\u003cstring>","last_modified_by":"\u003cstring>","revision":"\u003cstring>","category":"\u003cstring>","content_status":"\u003cstring>","identifier":"\u003cstring>","version":"\u003cstring>","company":"\u003cstring>","manager":"\u003cstring>","template":"\u003cstring>","presentation_format":"\u003cstring>","editing_time_minutes":1,"copyright":"\u003cstring>","created_at":"\u003cstring>","modified_at":"\u003cstring>"},"structure":{"page_count":1,"page_labels":["\u003cstring>"],"page_sizes":[{}],"outline_count":1,"attachment_count":1,"annotation_count":1,"annotation_types":{},"form_field_count":1,"sheet_count":1,"sheet_names":["\u003cstring>"],"sheet_visibility":{},"active_sheet":"\u003cstring>","slide_count":1,"note_count":1,"hidden_slide_count":1,"multimedia_clip_count":1,"word_count":1,"character_count":1,"character_count_with_spaces":1,"line_count":1,"paragraph_count":1,"paragraph_count_derived":1,"table_count":1,"section_count":1,"embedded_image_count":1,"width_px":1,"height_px":1,"frame_count":1,"row_count":1,"max_column_count":1},"warnings":["\u003cstring>"],"custom":{},"format_specific":{}},"chunking":{"semantic":["\u003cstring>"],"header":["\u003cstring>"],"page":["\u003cstring>"],"recursive":["\u003cstring>"]},"footnoteReferences":[{"symbol":"\u003cstring>","footnoteTextId":"\u003cstring>","footnotePageNumber":2,"footnoteText":"\u003cstring>","referenceTextIds":["\u003cstring>"],"references":[{"textId":"\u003cstring>","tableId":"\u003cstring>","row":123,"column":123,"pageNumber":2,"markerBoundingBox":[123],"source":"native"}]}],"altOutputs":{"wlbb":{"words":[{"id":"\u003cstring>","text":"\u003cstring>","page_number":2,"bounding_box":[123],"average_word_confidence":123}],"error":"\u003cstring>"},"html":"\u003cstring>","xml":"\u003cstring>"}},"bounding_boxes":{"Images":[{"id":"\u003cstring>","visual_type":"chart","content":"\u003cstring>","caption":"\u003cstring>","page_number":2,"confidence":123,"bounding_box":[123],"image_url":"\u003cstring>","description":"\u003cstring>","classification":{"confidence":0.5,"model":"\u003cstring>","error":"\u003cstring>"},"sheet_name":"\u003cstring>","sheet_index":123,"workbook_sheet_index":123,"excel_range":"\u003cstring>","chart_type":"\u003cstring>","chart_title":"\u003cstring>","source_ranges":["\u003cstring>"],"render_error":"\u003cstring>","description_error":"\u003cstring>"}],"Tables":[{"table_info":{"id":"\u003cstring>","dimensions":[123],"excel_range":"\u003cstring>","sheet_name":"\u003cstring>","sheet_index":123,"workbook_sheet_index":123,"section_index":123,"section_type":"\u003cstring>","section_name":"\u003cstring>","table_name":"\u003cstring>","layout_type":"\u003cstring>","is_chart":true,"chart_type":"\u003cstring>","chart_title":"\u003cstring>","source_ranges":["\u003cstring>"],"location":{},"confidence":0.5},"confidence":0.5,"cell_data":[{"confidence":0.5}]}],"Text":[{"id":"\u003cstring>","content":"\u003cstring>","page_number":2,"confidence":0.5,"reading_order":1,"bounding_box":[123],"excel_range":"\u003cstring>","sheet_name":"\u003cstring>","sheet_index":123,"workbook_sheet_index":123,"selected":true}],"Title":[{"id":"\u003cstring>","content":"\u003cstring>","page_number":2,"confidence":0.5,"reading_order":1,"bounding_box":[123],"excel_range":"\u003cstring>","sheet_name":"\u003cstring>","sheet_index":123,"workbook_sheet_index":123,"selected":true}],"Footer":[{"id":"\u003cstring>","content":"\u003cstring>","page_number":2,"confidence":0.5,"reading_order":1,"bounding_box":[123],"excel_range":"\u003cstring>","sheet_name":"\u003cstring>","sheet_index":123,"workbook_sheet_index":123,"selected":true}],"markdown_with_ids":"\u003cstring>"},"extraction_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","extraction_url":"\u003cstring>","page_count":2,"failed_pages":[{"page":2,"error":"\u003cstring>"}],"pages_succeeded":1,"pages_failed":1,"plan_info":{"tier":"\u003cstring>","total_credits_used":123,"pages_used":1,"note":"\u003cstring>"},"warnings":["\u003cstring>"],"credits_used":123,"html":"\u003cstring>","chunks":{"semantic":["\u003cstring>"],"header":["\u003cstring>"],"page":["\u003cstring>"],"recursive":["\u003cstring>"]},"structured_output":{"values":{},"citations":{}},"input_schema":{},"schema_error":"\u003cstring>","content":"\u003cstring>","job_id":"\u003cstring>","metadata":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"eeadd8af-a443-4bbd-aa0f-d5e25fa92cf4":{"description":"Extraction job accepted (when async=true)","content":{"application/json":{"schema":{"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.","isRequired":true,"uniqueKey":"job_id","typeLabel":"string"},"status":{"type":"string","description":"Initial status reported by the server.","enum":["pending","processing","completed","failed","canceled"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable description of the accepted job.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"job_id":"\u003cstring>","status":"pending","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"ff49d208-b298-4a07-a349-79ecfd0637a9":{"description":"Invalid request parameters","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"1b32ab62-e488-4013-b982-067545c6de29":{"description":"Authentication failed or missing API key","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"6bba667f-0511-43b8-b0e3-5045c9339961":{"description":"Rate limit exceeded","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"ec120c04-768b-4710-bcf8-433d43c5b9f3":{"description":"Multi-page TIFF processing is temporarily unavailable; retry. If organization retention policy is unavailable, processing has not started; retry the same request with its existing credentials 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":{"type":"object","description":"A machine-readable request failure.","additionalProperties":false,"required":["error"],"properties":{"error":{"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.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"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.","uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3d136d9b-6b58-4a17-9f2d-f27756a950c2":{"ApiKey":{"type":"apiKey","in":"header","name":"x-api-key","x-fern-header":{"name":"apiKey","env":"PULSE_API_KEY"},"scopes":[],"schemeName":"ApiKey"}}},"servers":{"e1ef7834-5f16-4759-9585-bf90a3a29520":{"url":"https://api.runpulse.com","description":"Default Pulse API base URL"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","x-fern-header":{"name":"apiKey","env":"PULSE_API_KEY"},"scopes":[],"schemeName":"ApiKey"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"x-api-key"}],"title":"ApiKey"}]},"originalFileLocation":"api-reference/openapi.yml"},"subdomain":"pulseai","siteName":"Pulse API","title":"Extract File - Pulse API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v2":{"href":"/v2/introduction","matchLevel":4},"v1":{"href":"/api-reference/endpoint/extract","matchLevel":1},"v1 (old)":{"href":"/v1/api-reference/endpoint/extract","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-14T00:40:22.795Z","originalFileLocation":"v1/api-reference/endpoint/extract.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The primary endpoint for the Pulse API. Parses uploaded documents or remote file URLs and returns rich markdown content with optional structured data extraction based on user-provided schemas and extraction options. Set async: true to return immediately with a job_id for polling via GET /job/{jobId}. Otherwise processes synchronously. For large TIFFs with Pulse Ultra 2, submit a file_url ending in .tif or .tiff with async: true. Pulse downloads and processes the image in bounded tiles after accepting the job. Results retain the original TIFF page numbers and coordinates; internal tiles do not increase the billed page count. With Pulse Ultra 2, multi-page TIFF uploads also preserve every frame. Page ranges select original frames; billing counts the selected frames. To process many files at once, see Batch Extract or the Batch Processing guide.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Pulse API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pulseai/EMicLlWnJwlz5Lxs/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pulseai/EMicLlWnJwlz5Lxs/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pulseai/EMicLlWnJwlz5Lxs/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pulseai/EMicLlWnJwlz5Lxs/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pulseai/EMicLlWnJwlz5Lxs/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pulseai/EMicLlWnJwlz5Lxs/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pulseai/EMicLlWnJwlz5Lxs/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pulseai/EMicLlWnJwlz5Lxs/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pulseai/EMicLlWnJwlz5Lxs/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Extract File - Pulse API\">\u003cmeta data-mint-head property=\"og:description\" content=\"The primary endpoint for the Pulse API. Parses uploaded documents or remote file URLs and returns rich markdown content with optional structured data extraction based on user-provided schemas and extraction options. Set async: true to return immediately with a job_id for polling via GET /job/{jobId}. Otherwise processes synchronously. For large TIFFs with Pulse Ultra 2, submit a file_url ending in .tif or .tiff with async: true. Pulse downloads and processes the image in bounded tiles after accepting the job. Results retain the original TIFF page numbers and coordinates; internal tiles do not increase the billed page count. With Pulse Ultra 2, multi-page TIFF uploads also preserve every frame. Page ranges select original frames; billing counts the selected frames. To process many files at once, see Batch Extract or the Batch Processing guide.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Pulse API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.runpulse.com/v1/api-reference/endpoint/extract\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pulseai.mintlify.site/_mintlify/api/og/v2?division=Pipeline+Steps\u0026amp;title=Extract+File\u0026amp;description=The+primary+endpoint+for+the+Pulse+API.+Parses+uploaded+documents+or+remote%0Afile+URLs+and+returns+rich+markdown+content+with+optional+structured+data%0Aextraction\u0026amp;theme=6dd969aac606de8f928cd444\u0026amp;signature=f6e33f60b4646be1746f40cd280b4d5e738b16bfe2d83a6c3f248337ba21f569\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Extract File - Pulse API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The primary endpoint for the Pulse API. Parses uploaded documents or remote file URLs and returns rich markdown content with optional structured data extraction based on user-provided schemas and extraction options. Set async: true to return immediately with a job_id for polling via GET /job/{jobId}. Otherwise processes synchronously. For large TIFFs with Pulse Ultra 2, submit a file_url ending in .tif or .tiff with async: true. Pulse downloads and processes the image in bounded tiles after accepting the job. Results retain the original TIFF page numbers and coordinates; internal tiles do not increase the billed page count. With Pulse Ultra 2, multi-page TIFF uploads also preserve every frame. Page ranges select original frames; billing counts the selected frames. To process many files at once, see Batch Extract or the Batch Processing guide.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pulseai.mintlify.site/_mintlify/api/og/v2?division=Pipeline+Steps\u0026amp;title=Extract+File\u0026amp;description=The+primary+endpoint+for+the+Pulse+API.+Parses+uploaded+documents+or+remote%0Afile+URLs+and+returns+rich+markdown+content+with+optional+structured+data%0Aextraction\u0026amp;theme=6dd969aac606de8f928cd444\u0026amp;signature=f6e33f60b4646be1746f40cd280b4d5e738b16bfe2d83a6c3f248337ba21f569\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pulseai/EMicLlWnJwlz5Lxs/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Pulse API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3573f6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.runpulse.com/v1/api-reference/endpoint/extract\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v1/api-reference/endpoint/extract.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.runpulse.com/#organization\",\"name\":\"Pulse API\",\"url\":\"https://docs.runpulse.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pulseai/OJ897TEZf8bV6lk8/logo-icon.svg?fit=max\u0026auto=format\u0026n=OJ897TEZf8bV6lk8\u0026q=85\u0026s=1062873c6d0f5dd9971e379f2210c1cb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.runpulse.com#website\",\"name\":\"Pulse API\",\"url\":\"https://docs.runpulse.com\",\"publisher\":{\"@id\":\"https://docs.runpulse.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.runpulse.com/v1/api-reference/endpoint/extract#webpage\",\"url\":\"https://docs.runpulse.com/v1/api-reference/endpoint/extract\",\"name\":\"Extract File\",\"description\":\"The primary endpoint for the Pulse API. Parses uploaded documents or remote file URLs and returns rich markdown content with optional structured data extraction based on user-provided schemas and extraction options. Set async: true to return immediately with a job_id for polling via GET /job/{jobId}. Otherwise processes synchronously. For large TIFFs with Pulse Ultra 2, submit a file_url ending in .tif or .tiff with async: true. Pulse downloads and processes the image in bounded tiles after accepting the job. Results retain the original TIFF page numbers and coordinates; internal tiles do not increase the billed page count. With Pulse Ultra 2, multi-page TIFF uploads also preserve every frame. Page ranges select original frames; billing counts the selected frames. To process many files at once, see Batch Extract or the Batch Processing guide.\",\"dateModified\":\"2026-11-14T00:40:22.795Z\",\"isPartOf\":{\"@id\":\"https://docs.runpulse.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.runpulse.com/v1/api-reference/endpoint/extract#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.runpulse.com/v1/api-reference/endpoint/extract#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Pipeline Steps\",\"item\":\"https://docs.runpulse.com/v1/api-reference/endpoint/pipeline-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Extract File\",\"item\":\"https://docs.runpulse.com/v1/api-reference/endpoint/extract\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.runpulse.com/v1/api-reference/endpoint/extract#apireference\",\"headline\":\"Extract File\",\"name\":\"Extract File\",\"description\":\"The primary endpoint for the Pulse API. Parses uploaded documents or remote file URLs and returns rich markdown content with optional structured data extraction based on user-provided schemas and extraction options. Set async: true to return immediately with a job_id for polling via GET /job/{jobId}. Otherwise processes synchronously. For large TIFFs with Pulse Ultra 2, submit a file_url ending in .tif or .tiff with async: true. Pulse downloads and processes the image in bounded tiles after accepting the job. Results retain the original TIFF page numbers and coordinates; internal tiles do not increase the billed page count. With Pulse Ultra 2, multi-page TIFF uploads also preserve every frame. Page ranges select original frames; billing counts the selected frames. To process many files at once, see Batch Extract or the Batch Processing guide.\",\"url\":\"https://docs.runpulse.com/v1/api-reference/endpoint/extract\",\"mainEntityOfPage\":{\"@id\":\"https://docs.runpulse.com/v1/api-reference/endpoint/extract#webpage\"},\"dateModified\":\"2026-11-14T00:40:22.795Z\",\"publisher\":{\"@id\":\"https://docs.runpulse.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.runpulse.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Pulse API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Pulse API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v1/api-reference/endpoint/extract.md","siteName":"Pulse API","nav":{"global":null,"versions":[{"version":"v2","default":true,"pages":[{"title":"v2","href":"/v2/introduction"}]},{"version":"v1","pages":[{"title":"v1","href":"/api-reference/endpoint/extract"}]},{"version":"v1 (old)","tag":"Old","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/v1/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"Overview","href":"/v1/api-reference/introduction"},{"title":"SDKs","href":"/v1/api-reference/sdks"},{"title":"Async Processing","href":"/v1/api-reference/async-processing"},{"title":"Structured Output Guidelines","href":"/v1/api-reference/structured-output-guidelines"},{"title":"Bounding Boxes","href":"/v1/api-reference/bounding-boxes"},{"title":"Supported File Types","href":"/v1/api-reference/supported-file-types"},{"title":"Working with Large Documents","href":"/v1/api-reference/large-documents"}]},{"group":"Pipeline Steps","pages":[{"title":"Pipeline Overview","href":"/v1/api-reference/endpoint/pipeline-overview"},{"title":"Classify Document","openapi":"api-reference/openapi.yml POST /classify","description":"Lightweight routing step that runs **before** `/extract`. Given a raw document\n(file upload or `file_url`) and a set of caller-defined classifications,\nit returns which classification the document belongs to — plus that classification's\n`pipeline_id`, so you can send the document to the right pipeline next.\n\nBy default, it evaluates the first five pages. For PDFs and images,\nbilling is based on the effective `page_range`. For Office and HTML\nfiles, billing applies to every page.\n\nBilled at **0.5 credits per page** — half the `/extract` rate.\n\nAccepted document types are identical to `/extract`, including the same\nsize limits and URL validation.\n\nSet `async: true` to return immediately with a job_id for polling via\nGET /job/{jobId}. Otherwise processes synchronously.","href":"/v1/api-reference/endpoint/classify"},{"title":"Extract File","openapi":"api-reference/openapi.yml POST /extract","href":"/v1/api-reference/endpoint/extract"},{"title":"Schema Extraction","openapi":"api-reference/openapi.yml POST /schema","description":"Apply schema extraction to a previously saved extraction. The mode is\ninferred from the input:\n\n**Single mode** — Provide `extraction_id` + `schema_config` (or\n`schema_config_id`) to apply one schema to the entire document.\n\n**Multi-extraction mode** — Provide a batch extract ID as `extraction_id`\n(auto-detected) or an explicit `extraction_ids` list. The content from all\nextractions is combined and the schema is applied to the composite. Citations\nuse `extraction_id-bb_id` format to disambiguate across source documents.\n\n**Split mode** — Provide `split_id` + `split_schema_config` to apply\ndifferent schemas to different page groups from a prior `/split` call.\nEach topic can have its own schema, prompt, and effort setting.\n\nAn explicit root `properties` must contain at least one field; an empty object\nis refused with HTTP 400 before processing.\n\nCreates a versioned schema record that can be retrieved later.\nSet `async: true` to return immediately with a job_id for polling.\n\nSchema retention covers the job result and its saved schema files. When first-fetch deletion\nis enabled, a synchronous response or completed job poll that returns the full result inline\nconsumes it. A response containing a result URL preserves the output until its first download\nthrough `GET /results/{jobId}`. This policy uses API download URLs even when the org normally\nuses presigned storage URLs. Failed-job data is cleaned after the first failed poll when this\npolicy is enabled. The source extraction and other schema versions keep their own retention.\n\nTo apply schemas across many extractions or splits at once, see\n[Batch Schema](api:POST/batch/schema) or the\n[Batch Processing guide](/batch).","href":"/v1/api-reference/endpoint/schema"},{"title":"Tables","openapi":"api-reference/openapi.yml POST /tables","href":"/v1/api-reference/endpoint/tables"},{"title":"Charts","openapi":"api-reference/openapi.yml POST /charts","href":"/v1/api-reference/endpoint/charts"},{"title":"Split Document","openapi":"api-reference/openapi.yml POST /split","href":"/v1/api-reference/endpoint/split"}]},{"group":"Batch \u0026 Pipelines","pages":[{"title":"Batch Processing","href":"/v1/api-reference/endpoint/batch-overview"}]},{"group":"Forms","pages":[{"title":"Detect Form Fields","openapi":"api-reference/openapi.yml POST /form/detect","href":"/v1/api-reference/endpoint/form-detect"},{"title":"Fill Form","openapi":"api-reference/openapi.yml POST /form/fill","href":"/v1/api-reference/endpoint/form-fill"},{"title":"Clear Form","openapi":"api-reference/openapi.yml POST /form/clear","href":"/v1/api-reference/endpoint/form-clear"}]},{"group":"Jobs, Results \u0026 Webhooks","pages":[{"title":"Poll Job","openapi":"api-reference/openapi.yml GET /job/{jobId}","href":"/v1/api-reference/endpoint/poll"},{"title":"Cancel Job","openapi":"api-reference/openapi.yml DELETE /job/{jobId}","href":"/v1/api-reference/endpoint/delete-job"},{"title":"Download Large Result","openapi":"api-reference/openapi.yml GET /results/{jobId}","href":"/v1/api-reference/endpoint/large-results"},{"title":"Get Result Image","openapi":"api-reference/openapi.yml GET /results/{jobId}/images/{filename}","href":"/v1/api-reference/endpoint/results-image"},{"title":"Download Result PDF","openapi":"api-reference/openapi.yml GET /results/{jobId}/pdf","href":"/v1/api-reference/endpoint/results-pdf"},{"title":"Configure Webhooks","openapi":"api-reference/openapi.yml POST /webhook","href":"/v1/api-reference/endpoint/webhook"}]},{"group":"Account \u0026 Usage","pages":[{"title":"Get Usage","openapi":"api-reference/openapi.yml GET /usage","href":"/v1/api-reference/endpoint/usage"}]},{"group":"Legacy Support","pages":[{"title":"Migrate from /extract_async to /extract","href":"/v1/legacy/migrate-extract-async"},{"title":"Migrate from structured_output to /schema","href":"/v1/legacy/migrate-structured-output"},{"title":"Extract File Async (Deprecated)","openapi":"api-reference/openapi.yml POST /extract_async","href":"/v1/api-reference/endpoint/extract_async"},{"title":"Cancel Job (Deprecated)","openapi":"api-reference/openapi.yml POST /cancel/{job_id}","href":"/v1/api-reference/endpoint/cancel"},{"title":"Retrieve URL (Deprecated)","openapi":"api-reference/openapi.yml POST /convert","href":"/v1/api-reference/endpoint/convert"},{"title":"Split Schema (Deprecated)","href":"/v1/api-reference/endpoint/split-schema"}]}]},{"tab":"Platform Reference","pages":[{"title":"Platform Reference","href":"/v1/platform-reference/introduction"}]},{"tab":"Cookbooks","pages":[{"title":"Cookbooks","href":"/v1/cookbooks/overview"}]}]}]},"basePath":"","title":"Extract File - Pulse API","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-C4eRUFHa.js","dist-DzZqOeCq.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-C6Z1vAfX.js","snippetPresets-Bjd6OXRM.js","utils-QL6OhUyF.js","style-to-object-BY3JEAdk.js","utils-Dsq-HLeF.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CEYfmkoV.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CHgPjMM8.js","_Uint8Array-IXRJ_ueo.js","isObject-FP1Yky1u.js","ApiExamples-pq4ns9YA.js","usePlaygroundInputsStore-D-gnigmo.js","shallow-DIfWGPrf.js","isEqual-DDFuixlH.js","CodeSnippets-8g5rilZj.js","CodeSnippet-C_J7pouP.js","use-playground-group-access-bkOyfPao.js","Page-B_smDgrp.js","api-description-markdown-DtcP2u3s.js","DynamicMarkdown-DOefW1_8.js","SectionHeading-Cg4lfWZw.js","MethodPill-BnqygvYm.js","getPastedJson-BGXYEZ3P.js","Check2Icon-BBeO3TOS.js","axios-CsQoIw0U.js","Markdown-D5IqLG6A.js","AssistantPageLink-_S2h4i6W.js"]}