import requests
url = "https://platform.reducto.ai/extract"
payload = {
"schema": "<unknown>",
"document_url": "<string>",
"options": {
"ocr_mode": "standard",
"extraction_mode": "ocr",
"chunking": {
"chunk_mode": "variable",
"chunk_overlap": 0
},
"table_summary": { "enabled": False },
"figure_summary": {
"enabled": False,
"prompt": "<string>",
"override": False,
"advanced_chart_agent": False
},
"filter_blocks": [],
"force_url_result": False
},
"advanced_options": {
"ocr_system": "highres",
"table_output_format": "html",
"merge_tables": False,
"include_formula_information": False,
"include_color_information": False,
"include_dropdown_information": False,
"continue_hierarchy": True,
"keep_line_breaks": False,
"page_range": {},
"force_file_extension": "<string>",
"large_table_chunking": {
"enabled": True,
"size": 50
},
"spreadsheet_table_clustering": "default",
"max_cell_count": 2,
"add_page_markers": False,
"remove_text_formatting": False,
"return_ocr_data": False,
"document_password": "<string>",
"filter_line_numbers": False,
"read_comments": False,
"persist_results": False,
"exclude_hidden_sheets": False,
"exclude_hidden_rows_cols": False,
"enable_change_tracking": False,
"enable_highlight_detection": False,
"ignore_watermarks": False
},
"experimental_options": {
"enrich": {
"enabled": False,
"mode": "standard"
},
"layout_enrichment": False,
"enable_checkboxes": False,
"enable_equations": False,
"rotate_pages": True,
"rotate_figures": False,
"enable_scripts": False,
"return_figure_images": False,
"return_table_images": False,
"return_page_images": False,
"layout_model": "default",
"embed_text_metadata_pdf": False,
"embed_pdf_metadata_dpi": 100,
"detect_signatures": False,
"danger_filter_wide_boxes": False,
"user_specified_timeout_seconds": 123
},
"system_prompt": "Be precise and thorough.",
"deep_extract": False,
"force_url_result": False,
"generate_citations": False,
"array_extract": {
"enabled": False,
"mode": "legacy",
"pages_per_segment": 10
},
"use_chunking": False,
"include_images": False,
"spreadsheet_agent": False,
"experimental_table_citations": True,
"priority": True,
"citations_options": {
"numerical_confidence": False,
"parent_block": "full"
},
"agent_extract": { "enabled": False }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
schema: '<unknown>',
document_url: '<string>',
options: {
ocr_mode: 'standard',
extraction_mode: 'ocr',
chunking: {chunk_mode: 'variable', chunk_overlap: 0},
table_summary: {enabled: false},
figure_summary: {
enabled: false,
prompt: '<string>',
override: false,
advanced_chart_agent: false
},
filter_blocks: [],
force_url_result: false
},
advanced_options: {
ocr_system: 'highres',
table_output_format: 'html',
merge_tables: false,
include_formula_information: false,
include_color_information: false,
include_dropdown_information: false,
continue_hierarchy: true,
keep_line_breaks: false,
page_range: {},
force_file_extension: '<string>',
large_table_chunking: {enabled: true, size: 50},
spreadsheet_table_clustering: 'default',
max_cell_count: 2,
add_page_markers: false,
remove_text_formatting: false,
return_ocr_data: false,
document_password: '<string>',
filter_line_numbers: false,
read_comments: false,
persist_results: false,
exclude_hidden_sheets: false,
exclude_hidden_rows_cols: false,
enable_change_tracking: false,
enable_highlight_detection: false,
ignore_watermarks: false
},
experimental_options: {
enrich: {enabled: false, mode: 'standard'},
layout_enrichment: false,
enable_checkboxes: false,
enable_equations: false,
rotate_pages: true,
rotate_figures: false,
enable_scripts: false,
return_figure_images: false,
return_table_images: false,
return_page_images: false,
layout_model: 'default',
embed_text_metadata_pdf: false,
embed_pdf_metadata_dpi: 100,
detect_signatures: false,
danger_filter_wide_boxes: false,
user_specified_timeout_seconds: 123
},
system_prompt: 'Be precise and thorough.',
deep_extract: false,
force_url_result: false,
generate_citations: false,
array_extract: {enabled: false, mode: 'legacy', pages_per_segment: 10},
use_chunking: false,
include_images: false,
spreadsheet_agent: false,
experimental_table_citations: true,
priority: true,
citations_options: {numerical_confidence: false, parent_block: 'full'},
agent_extract: {enabled: false}
})
};
fetch('https://platform.reducto.ai/extract', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.reducto.ai/extract"
payload := strings.NewReader("{\n \"schema\": \"<unknown>\",\n \"document_url\": \"<string>\",\n \"options\": {\n \"ocr_mode\": \"standard\",\n \"extraction_mode\": \"ocr\",\n \"chunking\": {\n \"chunk_mode\": \"variable\",\n \"chunk_overlap\": 0\n },\n \"table_summary\": {\n \"enabled\": false\n },\n \"figure_summary\": {\n \"enabled\": false,\n \"prompt\": \"<string>\",\n \"override\": false,\n \"advanced_chart_agent\": false\n },\n \"filter_blocks\": [],\n \"force_url_result\": false\n },\n \"advanced_options\": {\n \"ocr_system\": \"highres\",\n \"table_output_format\": \"html\",\n \"merge_tables\": false,\n \"include_formula_information\": false,\n \"include_color_information\": false,\n \"include_dropdown_information\": false,\n \"continue_hierarchy\": true,\n \"keep_line_breaks\": false,\n \"page_range\": {},\n \"force_file_extension\": \"<string>\",\n \"large_table_chunking\": {\n \"enabled\": true,\n \"size\": 50\n },\n \"spreadsheet_table_clustering\": \"default\",\n \"max_cell_count\": 2,\n \"add_page_markers\": false,\n \"remove_text_formatting\": false,\n \"return_ocr_data\": false,\n \"document_password\": \"<string>\",\n \"filter_line_numbers\": false,\n \"read_comments\": false,\n \"persist_results\": false,\n \"exclude_hidden_sheets\": false,\n \"exclude_hidden_rows_cols\": false,\n \"enable_change_tracking\": false,\n \"enable_highlight_detection\": false,\n \"ignore_watermarks\": false\n },\n \"experimental_options\": {\n \"enrich\": {\n \"enabled\": false,\n \"mode\": \"standard\"\n },\n \"layout_enrichment\": false,\n \"enable_checkboxes\": false,\n \"enable_equations\": false,\n \"rotate_pages\": true,\n \"rotate_figures\": false,\n \"enable_scripts\": false,\n \"return_figure_images\": false,\n \"return_table_images\": false,\n \"return_page_images\": false,\n \"layout_model\": \"default\",\n \"embed_text_metadata_pdf\": false,\n \"embed_pdf_metadata_dpi\": 100,\n \"detect_signatures\": false,\n \"danger_filter_wide_boxes\": false,\n \"user_specified_timeout_seconds\": 123\n },\n \"system_prompt\": \"Be precise and thorough.\",\n \"deep_extract\": false,\n \"force_url_result\": false,\n \"generate_citations\": false,\n \"array_extract\": {\n \"enabled\": false,\n \"mode\": \"legacy\",\n \"pages_per_segment\": 10\n },\n \"use_chunking\": false,\n \"include_images\": false,\n \"spreadsheet_agent\": false,\n \"experimental_table_citations\": true,\n \"priority\": true,\n \"citations_options\": {\n \"numerical_confidence\": false,\n \"parent_block\": \"full\"\n },\n \"agent_extract\": {\n \"enabled\": false\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"usage": {
"num_pages": 123,
"num_fields": 123,
"credits": 123,
"extract_mode": "super_agent",
"usage_breakdown": {
"extract_model": "Extract",
"tier": "Default",
"extract_pages": 0,
"extract_fields": 0,
"ocr_pages": 0,
"charts": 0,
"prompted_blocks": 0
}
},
"result": [
"<unknown>"
],
"citations": [
"<unknown>"
],
"response_type": "extract",
"job_id": "<string>",
"duration": 123,
"studio_link": "<string>",
"response_confidence": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Extract
import requests
url = "https://platform.reducto.ai/extract"
payload = {
"schema": "<unknown>",
"document_url": "<string>",
"options": {
"ocr_mode": "standard",
"extraction_mode": "ocr",
"chunking": {
"chunk_mode": "variable",
"chunk_overlap": 0
},
"table_summary": { "enabled": False },
"figure_summary": {
"enabled": False,
"prompt": "<string>",
"override": False,
"advanced_chart_agent": False
},
"filter_blocks": [],
"force_url_result": False
},
"advanced_options": {
"ocr_system": "highres",
"table_output_format": "html",
"merge_tables": False,
"include_formula_information": False,
"include_color_information": False,
"include_dropdown_information": False,
"continue_hierarchy": True,
"keep_line_breaks": False,
"page_range": {},
"force_file_extension": "<string>",
"large_table_chunking": {
"enabled": True,
"size": 50
},
"spreadsheet_table_clustering": "default",
"max_cell_count": 2,
"add_page_markers": False,
"remove_text_formatting": False,
"return_ocr_data": False,
"document_password": "<string>",
"filter_line_numbers": False,
"read_comments": False,
"persist_results": False,
"exclude_hidden_sheets": False,
"exclude_hidden_rows_cols": False,
"enable_change_tracking": False,
"enable_highlight_detection": False,
"ignore_watermarks": False
},
"experimental_options": {
"enrich": {
"enabled": False,
"mode": "standard"
},
"layout_enrichment": False,
"enable_checkboxes": False,
"enable_equations": False,
"rotate_pages": True,
"rotate_figures": False,
"enable_scripts": False,
"return_figure_images": False,
"return_table_images": False,
"return_page_images": False,
"layout_model": "default",
"embed_text_metadata_pdf": False,
"embed_pdf_metadata_dpi": 100,
"detect_signatures": False,
"danger_filter_wide_boxes": False,
"user_specified_timeout_seconds": 123
},
"system_prompt": "Be precise and thorough.",
"deep_extract": False,
"force_url_result": False,
"generate_citations": False,
"array_extract": {
"enabled": False,
"mode": "legacy",
"pages_per_segment": 10
},
"use_chunking": False,
"include_images": False,
"spreadsheet_agent": False,
"experimental_table_citations": True,
"priority": True,
"citations_options": {
"numerical_confidence": False,
"parent_block": "full"
},
"agent_extract": { "enabled": False }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
schema: '<unknown>',
document_url: '<string>',
options: {
ocr_mode: 'standard',
extraction_mode: 'ocr',
chunking: {chunk_mode: 'variable', chunk_overlap: 0},
table_summary: {enabled: false},
figure_summary: {
enabled: false,
prompt: '<string>',
override: false,
advanced_chart_agent: false
},
filter_blocks: [],
force_url_result: false
},
advanced_options: {
ocr_system: 'highres',
table_output_format: 'html',
merge_tables: false,
include_formula_information: false,
include_color_information: false,
include_dropdown_information: false,
continue_hierarchy: true,
keep_line_breaks: false,
page_range: {},
force_file_extension: '<string>',
large_table_chunking: {enabled: true, size: 50},
spreadsheet_table_clustering: 'default',
max_cell_count: 2,
add_page_markers: false,
remove_text_formatting: false,
return_ocr_data: false,
document_password: '<string>',
filter_line_numbers: false,
read_comments: false,
persist_results: false,
exclude_hidden_sheets: false,
exclude_hidden_rows_cols: false,
enable_change_tracking: false,
enable_highlight_detection: false,
ignore_watermarks: false
},
experimental_options: {
enrich: {enabled: false, mode: 'standard'},
layout_enrichment: false,
enable_checkboxes: false,
enable_equations: false,
rotate_pages: true,
rotate_figures: false,
enable_scripts: false,
return_figure_images: false,
return_table_images: false,
return_page_images: false,
layout_model: 'default',
embed_text_metadata_pdf: false,
embed_pdf_metadata_dpi: 100,
detect_signatures: false,
danger_filter_wide_boxes: false,
user_specified_timeout_seconds: 123
},
system_prompt: 'Be precise and thorough.',
deep_extract: false,
force_url_result: false,
generate_citations: false,
array_extract: {enabled: false, mode: 'legacy', pages_per_segment: 10},
use_chunking: false,
include_images: false,
spreadsheet_agent: false,
experimental_table_citations: true,
priority: true,
citations_options: {numerical_confidence: false, parent_block: 'full'},
agent_extract: {enabled: false}
})
};
fetch('https://platform.reducto.ai/extract', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.reducto.ai/extract"
payload := strings.NewReader("{\n \"schema\": \"<unknown>\",\n \"document_url\": \"<string>\",\n \"options\": {\n \"ocr_mode\": \"standard\",\n \"extraction_mode\": \"ocr\",\n \"chunking\": {\n \"chunk_mode\": \"variable\",\n \"chunk_overlap\": 0\n },\n \"table_summary\": {\n \"enabled\": false\n },\n \"figure_summary\": {\n \"enabled\": false,\n \"prompt\": \"<string>\",\n \"override\": false,\n \"advanced_chart_agent\": false\n },\n \"filter_blocks\": [],\n \"force_url_result\": false\n },\n \"advanced_options\": {\n \"ocr_system\": \"highres\",\n \"table_output_format\": \"html\",\n \"merge_tables\": false,\n \"include_formula_information\": false,\n \"include_color_information\": false,\n \"include_dropdown_information\": false,\n \"continue_hierarchy\": true,\n \"keep_line_breaks\": false,\n \"page_range\": {},\n \"force_file_extension\": \"<string>\",\n \"large_table_chunking\": {\n \"enabled\": true,\n \"size\": 50\n },\n \"spreadsheet_table_clustering\": \"default\",\n \"max_cell_count\": 2,\n \"add_page_markers\": false,\n \"remove_text_formatting\": false,\n \"return_ocr_data\": false,\n \"document_password\": \"<string>\",\n \"filter_line_numbers\": false,\n \"read_comments\": false,\n \"persist_results\": false,\n \"exclude_hidden_sheets\": false,\n \"exclude_hidden_rows_cols\": false,\n \"enable_change_tracking\": false,\n \"enable_highlight_detection\": false,\n \"ignore_watermarks\": false\n },\n \"experimental_options\": {\n \"enrich\": {\n \"enabled\": false,\n \"mode\": \"standard\"\n },\n \"layout_enrichment\": false,\n \"enable_checkboxes\": false,\n \"enable_equations\": false,\n \"rotate_pages\": true,\n \"rotate_figures\": false,\n \"enable_scripts\": false,\n \"return_figure_images\": false,\n \"return_table_images\": false,\n \"return_page_images\": false,\n \"layout_model\": \"default\",\n \"embed_text_metadata_pdf\": false,\n \"embed_pdf_metadata_dpi\": 100,\n \"detect_signatures\": false,\n \"danger_filter_wide_boxes\": false,\n \"user_specified_timeout_seconds\": 123\n },\n \"system_prompt\": \"Be precise and thorough.\",\n \"deep_extract\": false,\n \"force_url_result\": false,\n \"generate_citations\": false,\n \"array_extract\": {\n \"enabled\": false,\n \"mode\": \"legacy\",\n \"pages_per_segment\": 10\n },\n \"use_chunking\": false,\n \"include_images\": false,\n \"spreadsheet_agent\": false,\n \"experimental_table_citations\": true,\n \"priority\": true,\n \"citations_options\": {\n \"numerical_confidence\": false,\n \"parent_block\": \"full\"\n },\n \"agent_extract\": {\n \"enabled\": false\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"usage": {
"num_pages": 123,
"num_fields": 123,
"credits": 123,
"extract_mode": "super_agent",
"usage_breakdown": {
"extract_model": "Extract",
"tier": "Default",
"extract_pages": 0,
"extract_fields": 0,
"ocr_pages": 0,
"charts": 0,
"prompted_blocks": 0
}
},
"result": [
"<unknown>"
],
"citations": [
"<unknown>"
],
"response_type": "extract",
"job_id": "<string>",
"duration": 123,
"studio_link": "<string>",
"response_confidence": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The JSON schema to use for extraction.
The URL of the document to be processed. You can provide one of the following:
- A publicly available URL
- A presigned S3 URL
- A reducto:// prefixed URL obtained from the /upload endpoint after directly uploading a document
- A job_id (jobid://) or a list of job_ids (jobid://) obtained from a previous /parse endpoint
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
A system prompt to use for the extraction. This is a general prompt that is applied to the entire document before any other prompts.
If True, use Deep Extract, an agentic extraction mode that iteratively refines its output to achieve near-perfect accuracy. Best for complex documents where accuracy is critical.
Force the endpoint result to be returned in URL form.
If citations should be generated for the extracted content.
Deprecated: prefer deep_extract, which supersedes array extraction for complex and long (array-heavy) extractions via an agentic loop (at higher cost and latency). The configuration options for array extract.
Show child attributes
Show child attributes
If chunking should be used for the extraction. Defaults to False.
If images should be passed directly for extractions. Can only be enabled for documents with less than 10 pages. Defaults to False.
If spreadsheet agent should be used for extraction.
If table citations should be generated for the extracted content.
Workers poll the priority queue ahead of the standard queue, so priority jobs start sooner when there is queued work; sync jobs are prioritized above async jobs by default.
The configuration options for citations.
Show child attributes
Show child attributes
The configuration options for agent extract
Show child attributes
Show child attributes
Response
Successful Response
- ExtractResponse
- V3ExtractResponse
Show child attributes
Show child attributes
The extracted response in your provided schema. This is a list of dictionaries. If disable_chunking is True (default), then it will be a list of length one. If force_url_result is True, this is returned as a URL result.
The citations corresponding to the extracted response. If force_url_result is True and citations are present, this is returned as a URL result.
"extract"The duration of the extract request in seconds.
The link to the studio pipeline for the document.
Optional deep extract confidence metadata containing document-level confidence plus a mirrored leaf-level confidence tree.
Was this page helpful?