Volver al catálogo

Docamatic

docamatic

Docamatic generates, modifies, encrypts, and manages PDFs and images through a JSON REST API.

Acciones
8
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 (8)

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.

Create From TemplateDOCAMATIC_CREATE_FROM_TEMPLATEAcción

Generate a PDF or image from a documented built-in Docamatic template and template data.

Parámetros de entrada

  • dataobjectObligatorio

    Template-specific data object; all keys are optional. Official examples: conference_badge uses logo, qr, first_name, last_name, company, attendee_type, and color; shipping_label_4x3 uses logo, sender, recipient (with name, address1, address2, and address3), reference, weight, and barcode. Use only keys documented for the selected template.

  • fontstring

    Exact Google Font name, at most 150 characters.

  • namestring

    Output name shown in the Docamatic dashboard.

  • testboolean

    When true, create a sample-watermarked output without using a production credit. Each successful call still consumes one separate finite test credit; test credits are not unlimited.

  • unitstringenum

    Unit for width and height.

    pxincmmm
  • linesany

    Optional line-item data accepted as either an array or object, commonly used by Zapier-style payloads.

  • widthnumber

    Custom output width in unit; ignored when format is set or the template has a fixed size.

  • encodeboolean

    Return base64 instead of a URL when possible; outputs over 4 MB are returned as a URL.

  • formatstringenum

    Paper format; omit it when using custom width and height. Docamatic defaults to Letter when format and custom dimensions are all omitted; fixed-size templates ignore it.

    LetterLegalTabloidLedgerA0A1A2A3A4A5
  • heightnumber

    Custom output height in unit; ignored when format is set or the template has a fixed size.

  • qualitynumber

    Output quality from 1 through 3; higher values increase quality and file size.

  • templatestringObligatorioenum

    Built-in template identifier; use the template gallery to determine that template's data fields.

    invoice1packing_slip1returns_forminvoice5invoice4invoice3quotation2commercial_invoiceshipping_label_4x6barcode_labelqr_labelconference_badge+1
  • file_typestringenum

    Output file format.

    pdfpngjpgwebp
  • font_sizenumber

    Base font-size scalar from 0.5 through 1.4.

  • grayscaleboolean

    Generate the output in grayscale.

  • landscapeboolean

    Use landscape orientation.

  • font_colorstring

    Six-digit hexadecimal font color such as #000000.

  • page_numbersboolean

    Insert page numbers in the footer; applies only to PDF output.

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

Generate a PNG, JPG, or WebP image from HTML or a URL, optionally capturing a viewport, full page, or clipping region.

Parámetros de entrada

  • cssstring

    CSS text or a publicly accessible CSS URL to inject before generation.

  • authobject

    Optional basic HTTP credentials for the source URL; this is not the Docamatic API key.

  • clipobject

    Optional rectangular region to capture.

  • namestring

    Image name shown in the Docamatic dashboard.

  • testboolean

    When true, create a sample-watermarked image without using a production credit. Each successful call still consumes one separate finite test credit; test credits are not unlimited.

  • unitstringenum

    Unit for width and height.

    pxincmmm
  • delayinteger

    Delay in milliseconds before capture, from 100 through 9000.

  • mediastringenum

    CSS media rules to use while rendering.

    screenprint
  • widthnumber

    Viewport width measured in unit.

  • encodeboolean

    Return base64 instead of a URL when possible; outputs over 4 MB are returned as a URL.

  • heightnumber

    Viewport height measured in unit.

  • mobileboolean

    Honor the page's meta viewport tag to simulate a mobile device.

  • sourcestringObligatorio

    HTML content or a URL to render as an image.

  • qualitynumber

    Output quality from 1 through 3; higher values increase quality and file size.

  • file_typestringenum

    Output image format.

    pngjpgwebp
  • full_pageboolean

    Capture the full scrollable page instead of only the visible viewport.

  • grayscaleboolean

    Render the image in grayscale.

  • landscapeboolean

    Use landscape viewport orientation.

  • click_elementsstring[]

    Button or link targets to click before rendering, identified by CSS class or visible text.

  • accept_cookie_warningboolean

    Attempt to accept cookie-consent prompts before rendering.

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

Generate a PDF from HTML or a URL, with optional page, rendering, header, footer, and source-auth settings.

Parámetros de entrada

  • cssstring

    CSS text or a publicly accessible CSS URL to inject before generation.

  • authobject

    Optional basic HTTP credentials for the source URL; this is not the Docamatic API key.

  • namestring

    Document name shown in the Docamatic dashboard, at most 255 characters.

  • testboolean

    When true, create a sample-watermarked PDF without using a production credit. Each successful call still consumes one separate finite test credit; test credits are not unlimited.

  • unitstringenum

    Unit for width and height.

    pxincmmm
  • zoomnumber

    Webpage render scale from 0.1 through 2.

  • delayinteger

    Delay in milliseconds before capture, from 100 through 9000.

  • mediastringenum

    CSS media rules to use while rendering.

    screenprint
  • widthnumber

    Custom paper width in unit; ignored when format is set.

  • encodeboolean

    Return base64 instead of a URL when possible; outputs over 4 MB are returned as a URL.

  • formatstringenum

    Paper format; omit it when using custom width and height. Docamatic defaults to Letter when format and custom dimensions are all omitted.

    LetterLegalTabloidLedgerA0A1A2A3A4A5
  • heightnumber

    Custom paper height in unit; ignored when format is set.

  • sourcestringObligatorio

    HTML content or a URL to render as a PDF.

  • grayscaleboolean

    Render the PDF in grayscale.

  • landscapeboolean

    Use landscape page orientation.

  • margin_topnumber

    Top margin measured in margin_unit.

  • margin_leftnumber

    Left margin measured in margin_unit.

  • margin_unitstringenum

    Unit for all margin values.

    pxincmmm
  • page_rangesstring

    Pages to print, such as '1-5, 8, 11-13'; omit for all pages.

  • margin_rightnumber

    Right margin measured in margin_unit.

  • page_numbersboolean

    Insert page numbers in each footer; ignored when footer_template is set.

  • header_footerboolean

    Enable display of the header and footer.

  • margin_bottomnumber

    Bottom margin measured in margin_unit.

  • click_elementsstring[]

    Button or link targets to click before rendering, identified by CSS class or visible text.

  • footer_templatestring

    HTML print-footer template using the same dynamic classes as header_template.

  • header_templatestring

    HTML print-header template; classes date, title, url, pageNumber, and totalPages inject dynamic values.

  • disable_backgroundsboolean

    Suppress background graphics.

  • prefer_css_page_sizeboolean

    Give CSS @page size priority over width, height, and format.

  • accept_cookie_warningboolean

    Attempt to accept cookie-consent prompts before rendering.

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

Delete DocumentDOCAMATIC_DELETE_DOCUMENTAcción

Delete a generated document or image from Docamatic storage using its generation transaction ID. Repeating a deletion can still return success, so a successful response does not prove the file existed immediately before the call.

Parámetros de entrada

  • transaction_idstringObligatoriouuid

    Generation transaction UUID returned by a create, write, merge, or encrypt action.

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

Encrypt PDFDOCAMATIC_ENCRYPT_PDFAcción

Create an AES-128 or AES-256 password-protected copy of a PDF URL or base64 PDF; test mode always uses the provider password docamatic_sample.

Parámetros de entrada

  • namestring

    Encrypted-document name shown in the Docamatic dashboard.

  • testboolean

    When true, create a sample-watermarked PDF without using a production credit and force its password to docamatic_sample. Each successful call still consumes one separate finite test credit; test credits are not unlimited.

  • encodeboolean

    Return base64 instead of a URL when possible; outputs over 4 MB are returned as a URL.

  • sourcestringObligatorio

    PDF URL or base64-encoded PDF to encrypt.

  • passwordstringObligatorio

    Password for production output, at most 60 characters. When test is true, Docamatic ignores this value and forces docamatic_sample.

  • encryptionstringenum

    Encryption strength; AES-128 requires Acrobat 7 or later, and AES-256 requires Acrobat X or later.

    AES_128aes_128AES_256aes_256

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

Return production and finite test-credit usage for the connected account's current billing period.

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

Merge PDFsDOCAMATIC_MERGE_PDFSAcción

Create one PDF by merging 2 to 100 PDF URLs or base64-encoded PDFs in the supplied order.

Parámetros de entrada

  • namestring

    Merged-document name shown in the Docamatic dashboard.

  • testboolean

    When true, create a sample-watermarked PDF without using a production credit. Each successful call still consumes one separate finite test credit; test credits are not unlimited.

  • filesstring[]Obligatorio

    PDF URLs or base64-encoded PDFs in merge order; supply between 2 and 100 items.

  • encodeboolean

    Return base64 instead of a URL when possible; outputs over 4 MB are returned as a URL.

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

Write To PDFDOCAMATIC_WRITE_TO_PDFAcción

Create a new PDF by adding positioned text, cells, images, barcodes, or QR codes to an existing PDF URL or base64 PDF.

Parámetros de entrada

  • namestring

    Output name shown in the Docamatic dashboard.

  • testboolean

    When true, create a sample-watermarked PDF without using a production credit. Each successful call still consumes one separate finite test credit; test credits are not unlimited.

  • textobject[]

    Text items to add; include text_value in each item that should render.

  • cellsobject[]

    Cell items to add; height is required. Include text_value to render text, or border to draw a cell border.

  • encodeboolean

    Return base64 instead of a URL when possible; outputs over 4 MB are returned as a URL.

  • imagesobject[]

    Images to add; include image_url in each item intended to embed an image.

  • sourcestringObligatorio

    Public PDF URL or base64-encoded PDF to write onto. To visibly modify the PDF, also provide at least one non-empty text, cells, images, barcodes, or qr_codes array.

  • barcodesobject[]

    Barcodes to add; include barcode_value in each item intended to render a barcode.

  • encodingstringenum

    Text encoding used when writing.

    utf8windows-1252cp1252
  • qr_codesobject[]

    QR codes to add; include qr_code_value in each item intended to render a QR code.

  • page_numbersboolean

    Insert page numbers in each footer.

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