Volver al catálogo

Nutrient Document Web Services API

nutrient_document_web_services_api

Process, convert, OCR, redact, sign, and analyze documents with Nutrient Document Web Services.

Acciones
13
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Deprecated compatibility tool for the original ANALYZE_BUILD contract. Use ANALYZE_BUILD_COST for typed Build instructions.

Parámetros de entrada

  • partsobject[]Obligatorio

    Legacy Build parts passed through without renaming nested fields.

  • outputobject

    Legacy Build output settings passed through without renaming nested fields.

  • actionsobject[]

    Legacy Build actions passed through without renaming nested fields.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Analyze Build CostNUTRIENT_DOCUMENT_WEB_SERVICES_API_ANALYZE_BUILD_COSTAcción

Estimate the credits and Processor features required by Build API instructions without executing the document job or consuming credits.

Parámetros de entrada

  • partsarrayObligatorio

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

  • outputany

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

  • actionsarray

    Ordered 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Build DocumentNUTRIENT_DOCUMENT_WEB_SERVICES_API_BUILD_DOCUMENTAcción

Synchronously 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

  • partsarrayObligatorio

    Build parts using remote files, HTML, new pages, or Document Engine documents. Use snake_case fields such as page_count; they are converted for Nutrient.

  • outputany

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

  • actionsarray

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

  • filenamestring

    Fallback filename for the downloaded result. A filename supplied by Nutrient is preferred so its format-specific extension is preserved.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Convert Markdown to PDFNUTRIENT_DOCUMENT_WEB_SERVICES_API_CONVERT_MARKDOWN_TO_PDFAcción

Convert 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

  • cssstring

    CSS appended after the selected template stylesheet.

  • layoutobject

    Optional generated-page size, orientation, and margins.

  • filenamestring

    Filename for the downloadable PDF result.

  • markdownstringObligatorio

    Markdown source to convert, up to Nutrient's 5 MB limit.

  • templatestringenum

    Built-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-presentation
  • markdown_optionsobject

    Optional Markdown rendering and syntax-highlighting settings.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create JWT TokenNUTRIENT_DOCUMENT_WEB_SERVICES_API_CREATE_JWT_TOKENAcción

Create 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_timeinteger

    Token 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create PDF from Web PageNUTRIENT_DOCUMENT_WEB_SERVICES_API_CREATE_PDF_FROM_WEB_PAGEAcción

Render 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

  • urlstringObligatorio

    Publicly reachable URL of the HTML page to render.

  • layoutobject

    Optional layout for the generated PDF pages.

  • filenamestring

    Filename for the downloadable PDF result.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Account InformationNUTRIENT_DOCUMENT_WEB_SERVICES_API_GET_ACCOUNT_INFOAcción

Return the connected Nutrient account's subscription type, status, and estimated remaining credits.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Processor UsageNUTRIENT_DOCUMENT_WEB_SERVICES_API_GET_PROCESSOR_USAGEAcción

Return the connected account's Processor subscription status and credit usage counters.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Make PDF AccessibleNUTRIENT_DOCUMENT_WEB_SERVICES_API_MAKE_PDF_ACCESSIBLEAcción

Auto-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

  • urlstringObligatorio

    Publicly reachable URL of the source PDF.

  • filenamestring

    Filename for the downloadable PDF/UA result.

  • passwordstring

    Password for an encrypted source PDF, if required.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

OCR PDFNUTRIENT_DOCUMENT_WEB_SERVICES_API_OCR_PDFAcción

Apply 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

  • urlstringObligatorio

    Publicly reachable URL of the source PDF.

  • filenamestring

    Filename 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_documentsboolean

    Skip pages that already contain searchable text.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Revoke JWT TokenNUTRIENT_DOCUMENT_WEB_SERVICES_API_REVOKE_JWT_TOKENAcción

Immediately 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_idstringObligatorio

    ID returned by CREATE_JWT_TOKEN for the token to revoke.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Stage PDF RedactionsNUTRIENT_DOCUMENT_WEB_SERVICES_API_STAGE_PDF_REDACTIONSAcción

Find 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

  • urlstringObligatorio

    Publicly reachable URL of the source PDF.

  • contentstringObligatorio

    Text, regular expression, word-based phrase, or documented preset name required by the selected strategy.

  • filenamestring

    Filename for the downloadable staged-redaction PDF.

  • passwordstring

    Password for an encrypted source PDF, if required.

  • strategystringObligatorioenum

    Rule type used to locate content for redaction.

    textregexpresetword_based
  • strategy_optionsobject

    Optional page range, case matching, and annotation matching settings.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Watermark PDFNUTRIENT_DOCUMENT_WEB_SERVICES_API_WATERMARK_PDFAcción

Add 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

  • urlstringObligatorio

    Publicly reachable URL of the source PDF.

  • fontobject

    Optional font settings for the watermark text.

  • textstring

    Text to place on every page.

  • imageobject

    Remote image to place on every page.

  • widthany

    Watermark width in points, percent, or explicit units.

  • heightany

    Watermark height in points, percent, or explicit units.

  • opacitynumber

    Watermark opacity from 0 (fully transparent) to 1 (fully opaque).

  • filenamestring

    Filename for the downloadable watermarked PDF.

  • rotationnumber

    Counterclockwise rotation in degrees. Nutrient defaults to 0.

  • vertical_offsetany

    Offset from the top edge in points, percent, or explicit units.

  • horizontal_offsetany

    Offset from the left edge in points, percent, or explicit units.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not