Docamatic
docamaticDocamatic generates, modifies, encrypts, and manages PDFs and images through a JSON REST API.
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ónGenerate a PDF or image from a documented built-in Docamatic template and template data.
DOCAMATIC_CREATE_FROM_TEMPLATEAcciónGenerate a PDF or image from a documented built-in Docamatic template and template data.
Parámetros de entrada
dataobjectObligatorioTemplate-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.
fontstringExact Google Font name, at most 150 characters.
namestringOutput name shown in the Docamatic dashboard.
testbooleanWhen 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.
unitstringenumUnit for width and height.
pxincmmmlinesanyOptional line-item data accepted as either an array or object, commonly used by Zapier-style payloads.
widthnumberCustom output width in unit; ignored when format is set or the template has a fixed size.
encodebooleanReturn base64 instead of a URL when possible; outputs over 4 MB are returned as a URL.
formatstringenumPaper 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.
LetterLegalTabloidLedgerA0A1A2A3A4A5heightnumberCustom output height in unit; ignored when format is set or the template has a fixed size.
qualitynumberOutput quality from 1 through 3; higher values increase quality and file size.
templatestringObligatorioenumBuilt-in template identifier; use the template gallery to determine that template's data fields.
invoice1packing_slip1returns_forminvoice5invoice4invoice3quotation2commercial_invoiceshipping_label_4x6barcode_labelqr_labelconference_badge+1file_typestringenumOutput file format.
pdfpngjpgwebpfont_sizenumberBase font-size scalar from 0.5 through 1.4.
grayscalebooleanGenerate the output in grayscale.
landscapebooleanUse landscape orientation.
font_colorstringSix-digit hexadecimal font color such as #000000.
page_numbersbooleanInsert page numbers in the footer; applies only to PDF output.
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 ImageDOCAMATIC_CREATE_IMAGEAcciónGenerate a PNG, JPG, or WebP image from HTML or a URL, optionally capturing a viewport, full page, or clipping region.
DOCAMATIC_CREATE_IMAGEAcciónGenerate a PNG, JPG, or WebP image from HTML or a URL, optionally capturing a viewport, full page, or clipping region.
Parámetros de entrada
cssstringCSS text or a publicly accessible CSS URL to inject before generation.
authobjectOptional basic HTTP credentials for the source URL; this is not the Docamatic API key.
clipobjectOptional rectangular region to capture.
namestringImage name shown in the Docamatic dashboard.
testbooleanWhen 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.
unitstringenumUnit for width and height.
pxincmmmdelayintegerDelay in milliseconds before capture, from 100 through 9000.
mediastringenumCSS media rules to use while rendering.
screenprintwidthnumberViewport width measured in unit.
encodebooleanReturn base64 instead of a URL when possible; outputs over 4 MB are returned as a URL.
heightnumberViewport height measured in unit.
mobilebooleanHonor the page's meta viewport tag to simulate a mobile device.
sourcestringObligatorioHTML content or a URL to render as an image.
qualitynumberOutput quality from 1 through 3; higher values increase quality and file size.
file_typestringenumOutput image format.
pngjpgwebpfull_pagebooleanCapture the full scrollable page instead of only the visible viewport.
grayscalebooleanRender the image in grayscale.
landscapebooleanUse landscape viewport orientation.
click_elementsstring[]Button or link targets to click before rendering, identified by CSS class or visible text.
accept_cookie_warningbooleanAttempt to accept cookie-consent prompts before rendering.
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 PDFDOCAMATIC_CREATE_PDFAcciónGenerate a PDF from HTML or a URL, with optional page, rendering, header, footer, and source-auth settings.
DOCAMATIC_CREATE_PDFAcciónGenerate a PDF from HTML or a URL, with optional page, rendering, header, footer, and source-auth settings.
Parámetros de entrada
cssstringCSS text or a publicly accessible CSS URL to inject before generation.
authobjectOptional basic HTTP credentials for the source URL; this is not the Docamatic API key.
namestringDocument name shown in the Docamatic dashboard, at most 255 characters.
testbooleanWhen 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.
unitstringenumUnit for width and height.
pxincmmmzoomnumberWebpage render scale from 0.1 through 2.
delayintegerDelay in milliseconds before capture, from 100 through 9000.
mediastringenumCSS media rules to use while rendering.
screenprintwidthnumberCustom paper width in unit; ignored when format is set.
encodebooleanReturn base64 instead of a URL when possible; outputs over 4 MB are returned as a URL.
formatstringenumPaper format; omit it when using custom width and height. Docamatic defaults to Letter when format and custom dimensions are all omitted.
LetterLegalTabloidLedgerA0A1A2A3A4A5heightnumberCustom paper height in unit; ignored when format is set.
sourcestringObligatorioHTML content or a URL to render as a PDF.
grayscalebooleanRender the PDF in grayscale.
landscapebooleanUse landscape page orientation.
margin_topnumberTop margin measured in margin_unit.
margin_leftnumberLeft margin measured in margin_unit.
margin_unitstringenumUnit for all margin values.
pxincmmmpage_rangesstringPages to print, such as '1-5, 8, 11-13'; omit for all pages.
margin_rightnumberRight margin measured in margin_unit.
page_numbersbooleanInsert page numbers in each footer; ignored when footer_template is set.
header_footerbooleanEnable display of the header and footer.
margin_bottomnumberBottom margin measured in margin_unit.
click_elementsstring[]Button or link targets to click before rendering, identified by CSS class or visible text.
footer_templatestringHTML print-footer template using the same dynamic classes as header_template.
header_templatestringHTML print-header template; classes date, title, url, pageNumber, and totalPages inject dynamic values.
disable_backgroundsbooleanSuppress background graphics.
prefer_css_page_sizebooleanGive CSS @page size priority over width, height, and format.
accept_cookie_warningbooleanAttempt to accept cookie-consent prompts before rendering.
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
Delete DocumentDOCAMATIC_DELETE_DOCUMENTAcciónDelete 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.
DOCAMATIC_DELETE_DOCUMENTAcciónDelete 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_idstringObligatoriouuidGeneration transaction UUID returned by a create, write, merge, or encrypt action.
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
Encrypt PDFDOCAMATIC_ENCRYPT_PDFAcciónCreate 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.
DOCAMATIC_ENCRYPT_PDFAcciónCreate 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
namestringEncrypted-document name shown in the Docamatic dashboard.
testbooleanWhen 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.
encodebooleanReturn base64 instead of a URL when possible; outputs over 4 MB are returned as a URL.
sourcestringObligatorioPDF URL or base64-encoded PDF to encrypt.
passwordstringObligatorioPassword for production output, at most 60 characters. When test is true, Docamatic ignores this value and forces docamatic_sample.
encryptionstringenumEncryption 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
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 CreditsDOCAMATIC_GET_CREDITSAcciónReturn production and finite test-credit usage for the connected account's current billing period.
DOCAMATIC_GET_CREDITSAcciónReturn 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
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
Merge PDFsDOCAMATIC_MERGE_PDFSAcciónCreate one PDF by merging 2 to 100 PDF URLs or base64-encoded PDFs in the supplied order.
DOCAMATIC_MERGE_PDFSAcciónCreate one PDF by merging 2 to 100 PDF URLs or base64-encoded PDFs in the supplied order.
Parámetros de entrada
namestringMerged-document name shown in the Docamatic dashboard.
testbooleanWhen 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[]ObligatorioPDF URLs or base64-encoded PDFs in merge order; supply between 2 and 100 items.
encodebooleanReturn base64 instead of a URL when possible; outputs over 4 MB are returned as a URL.
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
Write To PDFDOCAMATIC_WRITE_TO_PDFAcciónCreate a new PDF by adding positioned text, cells, images, barcodes, or QR codes to an existing PDF URL or base64 PDF.
DOCAMATIC_WRITE_TO_PDFAcciónCreate 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
namestringOutput name shown in the Docamatic dashboard.
testbooleanWhen 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.
encodebooleanReturn 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.
sourcestringObligatorioPublic 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.
encodingstringenumText encoding used when writing.
utf8windows-1252cp1252qr_codesobject[]QR codes to add; include qr_code_value in each item intended to render a QR code.
page_numbersbooleanInsert page numbers in each footer.
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