Nutrient Document Web Services API
nutrient_document_web_services_apiProcess, convert, OCR, redact, sign, and analyze documents with Nutrient Document Web Services.
Acciones disponibles (13)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Analyze Build Request (Deprecated)NUTRIENT_DOCUMENT_WEB_SERVICES_API_ANALYZE_BUILDAcciónDeprecated compatibility tool for the original ANALYZE_BUILD contract. Use ANALYZE_BUILD_COST for typed Build instructions.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_ANALYZE_BUILDAcciónDeprecated compatibility tool for the original ANALYZE_BUILD contract. Use ANALYZE_BUILD_COST for typed Build instructions.
Parámetros de entrada
partsobject[]ObligatorioLegacy Build parts passed through without renaming nested fields.
outputobjectLegacy Build output settings passed through without renaming nested fields.
actionsobject[]Legacy Build actions passed through without renaming nested fields.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Analyze Build CostNUTRIENT_DOCUMENT_WEB_SERVICES_API_ANALYZE_BUILD_COSTAcciónEstimate the credits and Processor features required by Build API instructions without executing the document job or consuming credits.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_ANALYZE_BUILD_COSTAcciónEstimate the credits and Processor features required by Build API instructions without executing the document job or consuming credits.
Parámetros de entrada
partsarrayObligatorioBuild parts using remote files, HTML, new pages, or Document Engine documents. Use snake_case fields such as page_count; they are converted for Nutrient. Add content_type to non-PDF file parts for accurate conversion costs.
outputanyOutput object whose type is pdf, pdfa, pdfua, image, json-content, docx, xlsx, pptx, html, or markdown. Add format-specific fields such as conformance for PDF/A or format/pages/width/height/dpi for images.
actionsarrayOrdered action objects whose type is applyInstantJson, applyRedactions, applyXfdf, createRedactions, flatten, ocr, rotate, or watermark. Include the fields required by that action type.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Build DocumentNUTRIENT_DOCUMENT_WEB_SERVICES_API_BUILD_DOCUMENTAcciónSynchronously create one document from remote files, remote HTML, new pages, and composable safe actions, returning its filename, media type, and Base64 content up to 4 MB. Use this for multi-part or multi-step workflows; applied redaction and JSON-content output are not supported. This consumes Processor credits; run ANALYZE_BUILD_COST and check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_BUILD_DOCUMENTAcciónSynchronously create one document from remote files, remote HTML, new pages, and composable safe actions, returning its filename, media type, and Base64 content up to 4 MB. Use this for multi-part or multi-step workflows; applied redaction and JSON-content output are not supported. This consumes Processor credits; run ANALYZE_BUILD_COST and check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
Parámetros de entrada
partsarrayObligatorioBuild parts using remote files, HTML, new pages, or Document Engine documents. Use snake_case fields such as page_count; they are converted for Nutrient.
outputanyFile output object whose type is pdf, pdfa, pdfua, image, docx, xlsx, pptx, html, or markdown. Add format-specific fields such as conformance for PDF/A, format/pages/width/height/dpi for images, or layout for HTML.
actionsarrayOrdered action objects whose type is applyInstantJson, applyXfdf, flatten, ocr, rotate, watermark, or createRedactions. Include that action type's documented fields; applyRedactions and unknown action types are rejected.
filenamestringFallback filename for the downloaded result. A filename supplied by Nutrient is preferred so its format-specific extension is preserved.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Convert Markdown to PDFNUTRIENT_DOCUMENT_WEB_SERVICES_API_CONVERT_MARKDOWN_TO_PDFAcciónConvert CommonMark or GitHub-Flavored Markdown text into a PDF using optional built-in styling, custom CSS, page layout, and syntax highlighting settings. Returns the filename, media type, and Base64 content up to 4 MB. This consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_CONVERT_MARKDOWN_TO_PDFAcciónConvert CommonMark or GitHub-Flavored Markdown text into a PDF using optional built-in styling, custom CSS, page layout, and syntax highlighting settings. Returns the filename, media type, and Base64 content up to 4 MB. This consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
Parámetros de entrada
cssstringCSS appended after the selected template stylesheet.
layoutobjectOptional generated-page size, orientation, and margins.
filenamestringFilename for the downloadable PDF result.
markdownstringObligatorioMarkdown source to convert, up to Nutrient's 5 MB limit.
templatestringenumBuilt-in HTML and CSS template. Custom HTML templates require the multipart API variant and are not accepted by this JSON action.
built-in:defaultbuilt-in:minimalbuilt-in:corporatebuilt-in:elegantbuilt-in:executivebuilt-in:nordicbuilt-in:nordic-reportbuilt-in:technicalbuilt-in:elegant-presentationbuilt-in:nordic-executivebuilt-in:nordic-presentationmarkdown_optionsobjectOptional Markdown rendering and syntax-highlighting settings.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create JWT TokenNUTRIENT_DOCUMENT_WEB_SERVICES_API_CREATE_JWT_TOKENAcciónCreate a short-lived restricted Nutrient bearer token. This compatibility tool returns secret credential material; revoke it with REVOKE_JWT_TOKEN when it is no longer needed. Prefer the connected API key for normal server-side document processing.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_CREATE_JWT_TOKENAcciónCreate a short-lived restricted Nutrient bearer token. This compatibility tool returns secret credential material; revoke it with REVOKE_JWT_TOKEN when it is no longer needed. Prefer the connected API key for normal server-side document processing.
Parámetros de entrada
allowed_originsstring[]Browser origins allowed to use the token. Requests using an origin-restricted token must send a matching Origin header.
expiration_timeintegerToken lifetime in seconds. Nutrient defaults to 3600 (1 hour) and enforces its own maximum server-side.
allowed_operationsstring[]Operations the generated token may access. Omit to allow every operation available to generated JWTs.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create PDF from Web PageNUTRIENT_DOCUMENT_WEB_SERVICES_API_CREATE_PDF_FROM_WEB_PAGEAcciónRender an HTML web page at a public URL, with optional page layout settings, into a PDF. Returns the filename, media type, and Base64 content up to 4 MB. This consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_CREATE_PDF_FROM_WEB_PAGEAcciónRender an HTML web page at a public URL, with optional page layout settings, into a PDF. Returns the filename, media type, and Base64 content up to 4 MB. This consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
Parámetros de entrada
urlstringObligatorioPublicly reachable URL of the HTML page to render.
layoutobjectOptional layout for the generated PDF pages.
filenamestringFilename for the downloadable PDF result.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Account InformationNUTRIENT_DOCUMENT_WEB_SERVICES_API_GET_ACCOUNT_INFOAcciónReturn the connected Nutrient account's subscription type, status, and estimated remaining credits.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_GET_ACCOUNT_INFOAcciónReturn the connected Nutrient account's subscription type, status, and estimated remaining credits.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Processor UsageNUTRIENT_DOCUMENT_WEB_SERVICES_API_GET_PROCESSOR_USAGEAcciónReturn the connected account's Processor subscription status and credit usage counters.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_GET_PROCESSOR_USAGEAcciónReturn the connected account's Processor subscription status and credit usage counters.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Make PDF AccessibleNUTRIENT_DOCUMENT_WEB_SERVICES_API_MAKE_PDF_ACCESSIBLEAcciónAuto-tag a PDF at a remote URL for PDF/UA screen-reader accessibility and return the result's filename, media type, and Base64 content up to 4 MB. This consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_MAKE_PDF_ACCESSIBLEAcciónAuto-tag a PDF at a remote URL for PDF/UA screen-reader accessibility and return the result's filename, media type, and Base64 content up to 4 MB. This consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
Parámetros de entrada
urlstringObligatorioPublicly reachable URL of the source PDF.
filenamestringFilename for the downloadable PDF/UA result.
passwordstringPassword for an encrypted source PDF, if required.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
OCR PDFNUTRIENT_DOCUMENT_WEB_SERVICES_API_OCR_PDFAcciónApply optical character recognition to a PDF at a remote URL and return a searchable PDF's filename, media type, and Base64 content up to 4 MB. This consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_OCR_PDFAcciónApply optical character recognition to a PDF at a remote URL and return a searchable PDF's filename, media type, and Base64 content up to 4 MB. This consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
Parámetros de entrada
urlstringObligatorioPublicly reachable URL of the source PDF.
filenamestringFilename for the downloadable searchable PDF.
languagesstring[]One or more OCR dictionaries from Nutrient's documented enum. Use a full name such as english or german, an ISO 639-2 code such as eng or deu, or a specialized dictionary such as chi_sim_vert or deu_frak.
skip_ocr_for_searchable_documentsbooleanSkip pages that already contain searchable text.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Revoke JWT TokenNUTRIENT_DOCUMENT_WEB_SERVICES_API_REVOKE_JWT_TOKENAcciónImmediately revoke a bearer token created by CREATE_JWT_TOKEN using its ID. Use this when a generated token is no longer needed or may be compromised.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_REVOKE_JWT_TOKENAcciónImmediately revoke a bearer token created by CREATE_JWT_TOKEN using its ID. Use this when a generated token is no longer needed or may be compromised.
Parámetros de entrada
token_idstringObligatorioID returned by CREATE_JWT_TOKEN for the token to revoke.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Stage PDF RedactionsNUTRIENT_DOCUMENT_WEB_SERVICES_API_STAGE_PDF_REDACTIONSAcciónFind matching content in a remote PDF and return a review PDF's filename, media type, and Base64 content up to 4 MB with unapplied redaction marks. This action cannot permanently apply redactions. It consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_STAGE_PDF_REDACTIONSAcciónFind matching content in a remote PDF and return a review PDF's filename, media type, and Base64 content up to 4 MB with unapplied redaction marks. This action cannot permanently apply redactions. It consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may be watermarked.
Parámetros de entrada
urlstringObligatorioPublicly reachable URL of the source PDF.
contentstringObligatorioText, regular expression, word-based phrase, or documented preset name required by the selected strategy.
filenamestringFilename for the downloadable staged-redaction PDF.
passwordstringPassword for an encrypted source PDF, if required.
strategystringObligatorioenumRule type used to locate content for redaction.
textregexpresetword_basedstrategy_optionsobjectOptional page range, case matching, and annotation matching settings.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Watermark PDFNUTRIENT_DOCUMENT_WEB_SERVICES_API_WATERMARK_PDFAcciónAdd a positioned text or image watermark to every page of a PDF at a public URL and return the copy's filename, media type, and Base64 content up to 4 MB. This consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may also include Nutrient's watermark.
NUTRIENT_DOCUMENT_WEB_SERVICES_API_WATERMARK_PDFAcciónAdd a positioned text or image watermark to every page of a PDF at a public URL and return the copy's filename, media type, and Base64 content up to 4 MB. This consumes Processor credits; check GET_PROCESSOR_USAGE first. Free-tier output may also include Nutrient's watermark.
Parámetros de entrada
urlstringObligatorioPublicly reachable URL of the source PDF.
fontobjectOptional font settings for the watermark text.
textstringText to place on every page.
imageobjectRemote image to place on every page.
widthanyWatermark width in points, percent, or explicit units.
heightanyWatermark height in points, percent, or explicit units.
opacitynumberWatermark opacity from 0 (fully transparent) to 1 (fully opaque).
filenamestringFilename for the downloadable watermarked PDF.
rotationnumberCounterclockwise rotation in degrees. Nutrient defaults to 0.
vertical_offsetanyOffset from the top edge in points, percent, or explicit units.
horizontal_offsetanyOffset from the left edge in points, percent, or explicit units.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not