using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/databases/{databaseId}/records/{recordId}/pdf-template");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
request.AddJsonBody("{\n \"fieldId\": \"<field-id>\",\n \"templateId\": \"<template-id>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/databases/{databaseId}/records/{recordId}/pdf-template");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
request.AddJsonBody("{\n \"fieldId\": \"<field-id>\",\n \"templateId\": \"<template-id>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
Genera un archivo PDF con una plantilla creada previamente desde la plataforma.Si es tu primera integración, sigue primero la guía completa. Para llamar este endpoint necesitas:
POST /databases/{databaseId}/records/{recordId}/pdf-template
Parámetros de ruta
Parámetro
Descripción
databaseId
ID del tablero.
recordId
ID del registro cuyos valores se insertan en la plantilla.
Body
Campo
Tipo
Requerido
Descripción
fieldId
string
Sí
id del campo con "type": "pdf_template".
templateId
string
Sí
id de un elemento en pdfTemplateConfig.templates.
values
object
No
Claves que sustituyen o complementan los valores del registro únicamente para este PDF.
Consulta Listar plantillas PDF para conocer los IDs y runtimeFields que acepta la plantilla. También puedes enviar la key de un campo compatible del tablero para sustituir su valor.
No envíes el diseño de la plantilla. La API usa la versión guardada en la plataforma.
Sustituye {databaseId}, {recordId}, <field-id> y <template-id> por los valores de tu tablero.Si la plantilla no tiene runtimeFields, puedes omitir values:
El body es el archivo PDF. Encabezados relevantes:
Encabezado
Valor
Content-Type
application/pdf
Content-Disposition
attachment; filename="<nombre>.pdf"
Cache-Control
no-store
Los valores enviados no se guardan en el registro. Si una clave también existe en el tablero, el valor del body tiene precedencia solamente durante esta generación.
Recibir el archivo con JavaScript
La respuesta no contiene JSON. Lee el body como bytes:
Revisa el mensaje y corrige la plantilla en el tablero.
429
La API key superó 30 generaciones por minuto.
Espera los segundos indicados en Retry-After.
500
No fue posible generar el PDF.
Reintenta; si continúa, contacta soporte.
Los errores incluyen un código estable:
{ "code": "PDF_RUNTIME_VALUES_INVALID", "message": "values contains a key not used by this template: \"comentaro\""}
Antes de leer el body como PDF, comprueba siempre response.ok o el código HTTP. Las respuestas de error son JSON.
Authorizations
x-ib-api-key
string
header
required
API key de Insurance Boosters.
Path Parameters
databaseId
string
required
ID del tablero.
recordId
string
required
ID del registro.
Body
application/json
fieldId
string
required
Valor fieldId devuelto por GET /databases/{databaseId}/pdf-templates.
Minimum string length: 1
templateId
string
required
Valor templateId devuelto por GET /databases/{databaseId}/pdf-templates.
Minimum string length: 1
values
object
Valores opcionales indexados por key. Incluye aquí los
runtimeFields de la plantilla. Si envías la key de una columna
del tablero, sustituye su valor únicamente para este PDF.
using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/databases/{databaseId}/records/{recordId}/pdf-template");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
request.AddJsonBody("{\n \"fieldId\": \"<field-id>\",\n \"templateId\": \"<template-id>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/databases/{databaseId}/records/{recordId}/pdf-template");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
request.AddJsonBody("{\n \"fieldId\": \"<field-id>\",\n \"templateId\": \"<template-id>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Insurance Boosters API","description":"Documentación de la API de Insurance Boosters para integradores externos.","colors":{"primary":"#6746C2","light":"#6746C2","dark":"#8B6FE8"},"logo":{"light":"https://mintcdn.com/insurance-boosters/Xcjz70lXRQ2GedqW/assets/logo.png?fit=max\u0026auto=format\u0026n=Xcjz70lXRQ2GedqW\u0026q=85\u0026s=55567c3a57de1462828afcff190e9ac9","dark":"https://mintcdn.com/insurance-boosters/Xcjz70lXRQ2GedqW/assets/logo-dark.png?fit=max\u0026auto=format\u0026n=Xcjz70lXRQ2GedqW\u0026q=85\u0026s=2d6582fb0f5f441b10f827d6e36a9e73","href":"https://developers.insuranceboosters.com"},"favicon":"https://mintcdn.com/insurance-boosters/Xcjz70lXRQ2GedqW/assets/logo.png?fit=max\u0026auto=format\u0026n=Xcjz70lXRQ2GedqW\u0026q=85\u0026s=55567c3a57de1462828afcff190e9ac9","api":{"openapi":"openapi/whatsapp-v1.json","playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required","languages":["curl","python","javascript","typescript","node","java","csharp","dotnet","go","ruby","php","kotlin","rust","swift","powershell"],"prefill":true,"autogenerate":true},"mdx":{"auth":{"method":"key","name":"x-ib-api-key"},"server":"https://api.insuranceboosters.com/api/v1"}},"appearance":{"default":"light","strict":false},"background":{"decoration":"gradient","color":{"light":"#F8F6FF","dark":"#1A1425"}},"navbar":{"links":[{"href":"https://insuranceboosters.com","label":"Sitio web"}],"primary":{"type":"button","label":"Soporte","href":"mailto:soporte@insuranceboosters.com"}},"footer":{"socials":{"website":"https://insuranceboosters.com"}},"seo":{"metatags":{"og:site_name":"Insurance Boosters API","og:locale":"es_MX"},"indexing":"all"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor","mcp","vscode","devin-mcp","aistudio","grok"],"display":"header"},"variables":{"api-base-url":"https://api.insuranceboosters.com/api/v1"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"insurance-boosters","hasAudioNarration":false,"actualSubdomain":"insurance-boosters","customDomains":["developers.insuranceboosters.com"],"gitSource":{"type":"github","owner":"autoclupp","repo":"insurance-boosters-app","deployBranch":"main","contentDirectory":"docs/brands/insurance-boosters","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aff061497e1b315b98b792f","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Referencia API","count":101},{"language":"default","tag":"Automatizaciones","count":38},{"language":"default","tag":"Tableros","count":25},{"language":"default","tag":"Agentes IA","count":18},{"language":"default","tag":"WhatsApp","count":13},{"language":"default","tag":"Agentes personalizados","count":11},{"language":"default","tag":"Pasos","count":11},{"language":"default","tag":"Registros","count":10},{"language":"default","tag":"Plantillas","count":10},{"language":"default","tag":"Triggers","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"alex@insuranceboosters.com"}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"tableros/generar-pdf-registro","slug":"/tableros/generar-pdf-registro","pageMetadata":{"title":"Generar PDF de un registro","description":"Renderiza una plantilla pdf_template existente contra un registro del tablero.","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records/{recordId}/pdf-template","keywords":["pdf","generar","pdf_template","descargar"],"href":"/tableros/generar-pdf-registro"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Renderiza una plantilla pdf_template existente contra un registro del tablero.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Genera un archivo PDF con una plantilla creada previamente desde la plataforma.`}),`\n`,_jsxs(_components.p,{children:[`Si es tu primera integración, sigue primero la `,_jsx(_components.a,{href:`/tableros/generar-pdf`,children:`guía completa`}),`. Para llamar este endpoint necesitas:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Una `,_jsx(_components.a,{href:`/autenticacion`,children:`API key`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`El ID del tablero (`,_jsx(_components.code,{children:`databaseId`}),`).`]}),`\n`,_jsxs(_components.li,{children:[`El ID del registro (`,_jsx(_components.code,{children:`recordId`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`fieldId`}),` y `,_jsx(_components.code,{children:`templateId`}),`, obtenidos con `,_jsx(_components.a,{href:`/tableros/listar-plantillas-pdf`,children:`Listar plantillas PDF`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST /databases/{databaseId}/records/{recordId}/pdf-template`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`parámetros-de-ruta`,children:`Parámetros de ruta`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parámetro`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`databaseId`})}),_jsx(_components.td,{children:`ID del tablero.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`recordId`})}),_jsx(_components.td,{children:`ID del registro cuyos valores se insertan en la plantilla.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Requerido`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fieldId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Sí`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`id`}),` del campo con `,_jsx(_components.code,{children:`\"type\": \"pdf_template\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`templateId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Sí`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`id`}),` de un elemento en `,_jsx(_components.code,{children:`pdfTemplateConfig.templates`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`values`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Claves que sustituyen o complementan los valores del registro únicamente para este PDF.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Consulta `,_jsx(_components.a,{href:`/tableros/listar-plantillas-pdf`,children:`Listar plantillas PDF`}),` para conocer los IDs y `,_jsx(_components.code,{children:`runtimeFields`}),` que acepta la plantilla. También puedes enviar la `,_jsx(_components.code,{children:`key`}),` de un campo compatible del tablero para sustituir su valor.`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`No envíes el diseño de la plantilla. La API usa la versión guardada en la plataforma.`})}),`\n`,_jsx(Heading,{level:`2`,id:`ejemplo-descargar-el-pdf`,children:`Ejemplo: descargar el PDF`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.insuranceboosters.com/api/v1/databases/{databaseId}/records/{recordId}/pdf-template\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-ib-api-key: TU_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fieldId\": \"\u003cfield-id>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"templateId\": \"\u003ctemplate-id>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"values\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"observaciones\": \"Texto capturado al generar\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` documento.pdf`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Sustituye `,_jsx(_components.code,{children:`{databaseId}`}),`, `,_jsx(_components.code,{children:`{recordId}`}),`, `,_jsx(_components.code,{children:`\u003cfield-id>`}),` y `,_jsx(_components.code,{children:`\u003ctemplate-id>`}),` por los valores de tu tablero.`]}),`\n`,_jsxs(_components.p,{children:[`Si la plantilla no tiene `,_jsx(_components.code,{children:`runtimeFields`}),`, puedes omitir `,_jsx(_components.code,{children:`values`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fieldId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cfield-id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"templateId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003ctemplate-id>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Heading,{level:`2`,id:`respuesta-exitosa-200`,children:[`Respuesta exitosa (`,_jsx(_components.code,{children:`200`}),`)`]}),`\n`,_jsx(_components.p,{children:`El body es el archivo PDF. Encabezados relevantes:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Encabezado`}),_jsx(_components.th,{children:`Valor`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Content-Type`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/pdf`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Content-Disposition`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`attachment; filename=\"\u003cnombre>.pdf\"`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Cache-Control`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`no-store`})})]})]})]}),`\n`,_jsx(_components.p,{children:`Los valores enviados no se guardan en el registro. Si una clave también existe en el tablero, el valor del body tiene precedencia solamente durante esta generación.`}),`\n`,_jsx(Heading,{level:`2`,id:`recibir-el-archivo-con-javascript`,children:`Recibir el archivo con JavaScript`}),`\n`,_jsx(_components.p,{children:`La respuesta no contiene JSON. Lee el body como bytes:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`39`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`39`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`writeFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:fs/promises\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` apiUrl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`IB_API_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.insuranceboosters.com/api/v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`IB_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` databaseId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cdatabase-id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` recordId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003crecord-id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` fieldId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cfield-id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` templateId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003ctemplate-id>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Falta la variable IB_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiUrl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/databases/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`databaseId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/records/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`recordId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/pdf-template`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-ib-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fieldId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` templateId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` values:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` observaciones:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Texto capturado al generar\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` pdf`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Buffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`arrayBuffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` writeFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"documento.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pdf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Sustituye los cuatro IDs. Guarda la API key en `,_jsx(_components.code,{children:`IB_API_KEY`}),`; no la incluyas directamente en el código fuente.`]}),`\n`,_jsx(Heading,{level:`2`,id:`límites`,children:`Límites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Máximo 50 propiedades dentro de `,_jsx(_components.code,{children:`values`}),`.`]}),`\n`,_jsx(_components.li,{children:`Máximo 10,000 caracteres por string.`}),`\n`,_jsxs(_components.li,{children:[`Valores permitidos: string, número, booleano o `,_jsx(_components.code,{children:`null`}),`.`]}),`\n`,_jsx(_components.li,{children:`Máximo 30 generaciones por minuto por API key.`}),`\n`,_jsx(_components.li,{children:`La renderización puede tardar hasta 58 segundos.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`El límite de 30 se comparte entre todos los tableros y plantillas usados por la misma API key. Al superarlo, la API responde `,_jsx(_components.code,{children:`429`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errores-frecuentes`,children:`Errores frecuentes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`Qué significa`}),_jsx(_components.th,{children:`Qué hacer`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`Faltan IDs o `,_jsx(_components.code,{children:`values`}),` contiene una clave, tipo o tamaño no permitido.`]}),_jsx(_components.td,{children:`Consulta el catálogo y corrige los valores enviados.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`API key inválida o faltante.`}),_jsxs(_components.td,{children:[`Verifica `,_jsx(_components.code,{children:`x-ib-api-key`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Tu integración no puede acceder al registro.`}),_jsx(_components.td,{children:`Confirma el acceso al tablero y al registro.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`El tablero, registro, campo o plantilla no existe.`}),_jsxs(_components.td,{children:[`Confirma los IDs con `,_jsx(_components.a,{href:`/tableros/listar-plantillas-pdf`,children:`Listar plantillas PDF`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`La plantilla no se pudo renderizar.`}),_jsx(_components.td,{children:`Revisa el mensaje y corrige la plantilla en el tablero.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`La API key superó 30 generaciones por minuto.`}),_jsxs(_components.td,{children:[`Espera los segundos indicados en `,_jsx(_components.code,{children:`Retry-After`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`No fue posible generar el PDF.`}),_jsx(_components.td,{children:`Reintenta; si continúa, contacta soporte.`})]})]})]}),`\n`,_jsx(_components.p,{children:`Los errores incluyen un código estable:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PDF_RUNTIME_VALUES_INVALID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"values contains a key not used by this template: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`comentaro`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Antes de leer el body como PDF, comprueba siempre `,_jsx(_components.code,{children:`response.ok`}),` o el código HTTP. Las respuestas de error son JSON.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Generar PDF de un registro","description":"Renderiza una plantilla pdf_template existente contra un registro del tablero.","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records/{recordId}/pdf-template","keywords":["pdf","generar","pdf_template","descargar"],"href":"/tableros/generar-pdf-registro"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Endpoint","slug":"endpoint","depth":2,"children":[]},{"title":"Parámetros de ruta","slug":"parámetros-de-ruta","depth":2,"children":[]},{"title":"Body","slug":"body","depth":2,"children":[]},{"title":"Ejemplo: descargar el PDF","slug":"ejemplo-descargar-el-pdf","depth":2,"children":[]},{"title":"Respuesta exitosa (200)","slug":"respuesta-exitosa-200","depth":2,"children":[]},{"title":"Recibir el archivo con JavaScript","slug":"recibir-el-archivo-con-javascript","depth":2,"children":[]},{"title":"Límites","slug":"límites","depth":2,"children":[]},{"title":"Errores frecuentes","slug":"errores-frecuentes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"generateDatabaseRecordPdf","summary":"Generar PDF de un registro","tags":["PDF"],"description":"Renderiza una plantilla pdf_template existente contra un registro del tablero.","requestBody":"7db31bbb-44cd-4ad7-9a6f-4ed410f717b4","responses":{"200":"55d0b7bc-d0cc-4ab4-8500-bc1fec2da185","400":"1662f68b-ed7b-4749-8cfa-ab0ce3b0b147","401":"570d9684-a71b-4387-bb52-6d3dde17a697","403":"2985d461-260e-408e-88d9-8e28a3ddf2d8","404":"79419044-92bc-4c1d-9c7b-48c5d69a7362","422":"68700d54-e2e6-46f5-b5cc-40a1b382888f","429":"e63f6e4d-fc06-4719-8536-b34fb31de692","500":"ff905736-3bc1-4814-9539-e30971143ab1"},"method":"post","type":"path","servers":["99d21c25-b618-4663-ace5-61e409800714"],"security":["078a71ca-f9a1-4362-b566-f9a98091c50e"],"path":"/databases/{databaseId}/records/{recordId}/pdf-template","baseUrlOptions":["https://api.insuranceboosters.com/api/v1"],"title":"Generar PDF de un registro","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","typescript","node","java","csharp","dotnet","go","ruby","php","kotlin","rust","swift","powershell"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.fieldId":"\u003cfield-id>","body.templateId":"\u003ctemplate-id>","body.values.observaciones.oneOf.0":"Texto capturado al generar"}]},"dependencies":{"parameters":{"a2986757-848a-4178-baa8-dc8755e0576d":{"name":"databaseId","in":"path","required":true,"description":"ID del tablero.","schema":{"type":"string","isRequired":true,"description":"ID del tablero.","uniqueKey":"","typeLabel":"string"}},"150c5d83-f216-4914-ac14-c20cd8f2e9e6":{"name":"recordId","in":"path","required":true,"description":"ID del registro.","schema":{"type":"string","isRequired":true,"description":"ID del registro.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["fieldId","templateId"],"properties":{"fieldId":{"type":"string","minLength":1,"description":"Valor `fieldId` devuelto por `GET /databases/{databaseId}/pdf-templates`.","isRequired":true,"uniqueKey":"fieldId","typeLabel":"string"},"templateId":{"type":"string","minLength":1,"description":"Valor `templateId` devuelto por `GET /databases/{databaseId}/pdf-templates`.","isRequired":true,"uniqueKey":"templateId","typeLabel":"string"},"values":{"type":"object","maxProperties":50,"additionalProperties":{"oneOf":[{"type":"string","maxLength":10000,"uniqueKey":"values.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"values.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"values.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"values.additionalProperties.oneOf.3","typeLabel":"null"}],"uniqueKey":"values.additionalProperties","typeLabel":"string | number | boolean | null"},"description":"Valores opcionales indexados por `key`. Incluye aquí los\n`runtimeFields` de la plantilla. Si envías la `key` de una columna\ndel tablero, sustituye su valor únicamente para este PDF.\n","uniqueKey":"values","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"fieldId":"\u003cfield-id>","templateId":"\u003ctemplate-id>","values":{"observaciones":"Texto capturado al generar"}},"examples":{"Example":{"title":"Example","value":{"fieldId":"\u003cfield-id>","templateId":"\u003ctemplate-id>","values":{"observaciones":"Texto capturado al generar"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"55d0b7bc-d0cc-4ab4-8500-bc1fec2da185":{"description":"Documento PDF generado.","headers":{"Content-Disposition":{"description":"Nombre de archivo configurado por la plantilla.","schema":{"type":"string","example":"attachment; filename=\"poliza-POL-1001.pdf\""}},"Cache-Control":{"description":"El documento no debe almacenarse en caché.","schema":{"type":"string","example":"no-store"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"},"1662f68b-ed7b-4749-8cfa-ab0ce3b0b147":{"description":"Solicitud inválida.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>","error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"570d9684-a71b-4387-bb52-6d3dde17a697":{"description":"API key inválida o faltante.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>","error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"2985d461-260e-408e-88d9-8e28a3ddf2d8":{"description":"La integración no tiene acceso al recurso.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>","error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"79419044-92bc-4c1d-9c7b-48c5d69a7362":{"description":"Recurso no encontrado.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>","error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"68700d54-e2e6-46f5-b5cc-40a1b382888f":{"description":"La plantilla no se pudo renderizar.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>","error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"e63f6e4d-fc06-4719-8536-b34fb31de692":{"description":"Se excedió el límite de generación de PDF.","headers":{"Retry-After":{"description":"Segundos antes de reintentar.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>","error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"ff905736-3bc1-4814-9539-e30971143ab1":{"description":"Error del servicio.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>","error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"078a71ca-f9a1-4362-b566-f9a98091c50e":{"IbApiKey":{"type":"apiKey","in":"header","name":"x-ib-api-key","description":"API key de Insurance Boosters.","scopes":[]}}},"servers":{"99d21c25-b618-4663-ace5-61e409800714":{"url":"https://api.insuranceboosters.com/api/v1","description":"Producción"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-ib-api-key","description":"API key de Insurance Boosters.","scopes":[]},"schema":{"title":"x-ib-api-key","type":"string","description":"API key de Insurance Boosters.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"IbApiKey","name":"x-ib-api-key"}],"title":"IbApiKey"}]},"originalFileLocation":"openapi/tableros-v1.yaml"},"subdomain":"insurance-boosters","siteName":"Insurance Boosters API","title":"Generar PDF de un registro - Insurance Boosters API","contextualStarterQuestions":[{"_id":"6af61199c6759c64b0cf3957","deploymentId":"6a546a253fa2eb468be6e093","questionText":"How do I override field values?","status":"active","generatedBy":"contextual","path":"tableros/generar-pdf-registro","createdAt":"2026-11-12T19:20:57.551Z","updatedAt":"2026-11-12T19:20:57.551Z","__v":0},{"_id":"6af61199c6759c64b0cf3955","deploymentId":"6a546a253fa2eb468be6e093","questionText":"How do I generate a PDF?","status":"active","generatedBy":"contextual","path":"tableros/generar-pdf-registro","createdAt":"2026-11-12T19:20:57.551Z","updatedAt":"2026-11-12T19:20:57.551Z","__v":0},{"_id":"6af61199c6759c64b0cf3956","deploymentId":"6a546a253fa2eb468be6e093","questionText":"What parameters are required?","status":"active","generatedBy":"contextual","path":"tableros/generar-pdf-registro","createdAt":"2026-11-12T19:20:57.551Z","updatedAt":"2026-11-12T19:20:57.551Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T19:20:49.636Z","originalFileLocation":"tableros/generar-pdf-registro.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Renderiza una plantilla pdf_template existente contra un registro del tablero.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Insurance Boosters API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Generar PDF de un registro - Insurance Boosters API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Renderiza una plantilla pdf_template existente contra un registro del tablero.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Insurance Boosters API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.insuranceboosters.com/tableros/generar-pdf-registro\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://insurance-boosters.mintlify.site/_mintlify/api/og/v2?division=PDF\u0026amp;title=Generar+PDF+de+un+registro\u0026amp;description=Renderiza+una+plantilla+pdf_template+existente+contra+un+registro+del+tablero.\u0026amp;theme=fd26171829582214a7d44de3\u0026amp;signature=a754351e71be892c2b41998671478ab0b004f811d6aa20c862a543670df39afc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Generar PDF de un registro - Insurance Boosters API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Renderiza una plantilla pdf_template existente contra un registro del tablero.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://insurance-boosters.mintlify.site/_mintlify/api/og/v2?division=PDF\u0026amp;title=Generar+PDF+de+un+registro\u0026amp;description=Renderiza+una+plantilla+pdf_template+existente+contra+un+registro+del+tablero.\u0026amp;theme=fd26171829582214a7d44de3\u0026amp;signature=a754351e71be892c2b41998671478ab0b004f811d6aa20c862a543670df39afc\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/insurance-boosters/XD2CD8bAEI5GqRPn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Insurance Boosters API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6746C2\">\u003cmeta data-mint-head name=\"og:locale\" content=\"es_MX\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.insuranceboosters.com/tableros/generar-pdf-registro\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tableros/generar-pdf-registro.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.insuranceboosters.com/#organization\",\"name\":\"Insurance Boosters API\",\"url\":\"https://developers.insuranceboosters.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/insurance-boosters/Xcjz70lXRQ2GedqW/assets/logo.png?fit=max\u0026auto=format\u0026n=Xcjz70lXRQ2GedqW\u0026q=85\u0026s=55567c3a57de1462828afcff190e9ac9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.insuranceboosters.com#website\",\"name\":\"Insurance Boosters API\",\"url\":\"https://developers.insuranceboosters.com\",\"publisher\":{\"@id\":\"https://developers.insuranceboosters.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.insuranceboosters.com/tableros/generar-pdf-registro#webpage\",\"url\":\"https://developers.insuranceboosters.com/tableros/generar-pdf-registro\",\"name\":\"Generar PDF de un registro\",\"description\":\"Renderiza una plantilla pdf_template existente contra un registro del tablero.\",\"dateModified\":\"2026-11-12T19:20:49.636Z\",\"isPartOf\":{\"@id\":\"https://developers.insuranceboosters.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.insuranceboosters.com/tableros/generar-pdf-registro#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.insuranceboosters.com/tableros/generar-pdf-registro#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tableros\",\"item\":\"https://developers.insuranceboosters.com/tableros/introduccion\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PDF\",\"item\":\"https://developers.insuranceboosters.com/tableros/generar-pdf\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Generar PDF de un registro\",\"item\":\"https://developers.insuranceboosters.com/tableros/generar-pdf-registro\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.insuranceboosters.com/tableros/generar-pdf-registro#apireference\",\"headline\":\"Generar PDF de un registro\",\"name\":\"Generar PDF de un registro\",\"description\":\"Renderiza una plantilla pdf_template existente contra un registro del tablero.\",\"url\":\"https://developers.insuranceboosters.com/tableros/generar-pdf-registro\",\"mainEntityOfPage\":{\"@id\":\"https://developers.insuranceboosters.com/tableros/generar-pdf-registro#webpage\"},\"dateModified\":\"2026-11-12T19:20:49.636Z\",\"keywords\":\"pdf, generar, pdf_template, descargar\",\"publisher\":{\"@id\":\"https://developers.insuranceboosters.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.insuranceboosters.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Insurance Boosters API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Insurance Boosters API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/tableros/generar-pdf-registro.md","siteName":"Insurance Boosters API","nav":{"global":null,"tabs":[{"tab":"Inicio","icon":"house","pages":[{"title":"Inicio","href":""}]},{"tab":"Referencia API","icon":"square-terminal","groups":[{"group":"WhatsApp","icon":"message-circle","root":{"title":"WhatsApp","icon":"message-circle","href":"/whatsapp/introduccion"},"directory":"accordion","pages":[{"group":"Plantillas","icon":"message-square-text","root":{"title":"Plantillas","icon":"message-square-text","href":"/whatsapp/plantillas"},"pages":[{"title":"Listar plantillas","openapi":"openapi/whatsapp-v1.json GET /whatsapp/{phoneNumberId}/templates","href":"/whatsapp/listar-plantillas"},{"title":"Enviar plantilla","openapi":"openapi/whatsapp-v1.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla"},{"group":"Ejemplos","icon":"list-tree","root":{"title":"Tipos de plantilla","href":"/whatsapp/tipos-de-plantilla"},"pages":[{"title":"Sin variables","openapi":"openapi/examples/sin-variables.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/sin-variables"},{"title":"Variables posicionales","openapi":"openapi/examples/variables-posicionales.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/variables-posicionales"},{"title":"Variables con nombre","openapi":"openapi/examples/variables-con-nombre.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/variables-con-nombre"},{"title":"Header con imagen","openapi":"openapi/examples/header-imagen.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/header-imagen"},{"title":"Header con PDF","openapi":"openapi/examples/header-pdf.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/header-pdf"},{"title":"Header con video","openapi":"openapi/examples/header-video.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/header-video"},{"title":"Botones dinámicos","openapi":"openapi/examples/botones-dinamicos.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/botones-dinamicos"},{"title":"Plantilla con WhatsApp Flow","openapi":"openapi/whatsapp-v1.json POST /whatsapp/{phoneNumberId}/template","href":"/whatsapp/enviar-plantilla/flow"}]}]},{"group":"Mensajes con archivo","icon":"paperclip","root":{"title":"Mensajes con archivo y texto","icon":"paperclip","href":"/whatsapp/mensajes-con-archivo"},"pages":[{"title":"Enviar documento con texto","openapi":"openapi/whatsapp-v1.json POST /whatsapp/{phoneNumberId}/document","href":"/whatsapp/enviar-documento"},{"title":"Enviar imagen con texto","openapi":"openapi/whatsapp-v1.json POST /whatsapp/{phoneNumberId}/image","href":"/whatsapp/enviar-imagen"},{"title":"Enviar video con texto","openapi":"openapi/whatsapp-v1.json POST /whatsapp/{phoneNumberId}/video","href":"/whatsapp/enviar-video"}]}]},{"group":"Contactos","icon":"contact","root":{"title":"Contactos","icon":"contact","href":"/contactos/introduccion"},"directory":"accordion","pages":[{"title":"Obtener esquema de contactos","openapi":"openapi/contactos-v1.yaml GET /tenants/{tenantId}/schemas/contact","href":"/contactos/obtener-schema"},{"title":"Crear contacto","openapi":"openapi/contactos-v1.yaml POST /contacts","href":"/contactos/crear-contacto"},{"title":"Listar contactos","openapi":"openapi/contactos-v1.yaml GET /contacts","href":"/contactos/listar-contactos"},{"title":"Buscar contactos","openapi":"openapi/contactos-v1.yaml POST /contacts/search","href":"/contactos/buscar-contactos"},{"title":"Consultar contacto","openapi":"openapi/contactos-v1.yaml GET /contacts/{contactId}","href":"/contactos/consultar-contacto"},{"title":"Actualizar contacto","openapi":"openapi/contactos-v1.yaml PATCH /contacts/{contactId}","href":"/contactos/actualizar-contacto"},{"title":"Eliminar contacto","openapi":"openapi/contactos-v1.yaml DELETE /contacts/{contactId}","href":"/contactos/eliminar-contacto"}]},{"group":"Agentes IA","icon":"bot","root":{"title":"Agentes IA","icon":"bot","href":"/agentes/introduccion"},"directory":"card","pages":[{"group":"Agentes personalizados","icon":"bot","root":{"title":"Agentes personalizados","icon":"bot","href":"/agentes/personalizados"},"directory":"accordion","pages":[{"title":"Editar agente personalizado","openapi":"openapi/agentes-v1.yaml PUT /agents/{agentId}","href":"/agentes/editar-agente"},{"title":"Usar artifacts con OpenAI Agents","openapi":"openapi/agentes-v1.yaml POST /agents/{agentId}/artifacts","href":"/agentes/usar-artifacts"},{"title":"Ejecutar agente personalizado","openapi":"openapi/agentes-v1.yaml POST /agents/{agentId}/execute","href":"/agentes/ejecutar-agente"},{"group":"Herramientas","icon":"wrench","root":{"title":"Herramientas","icon":"wrench","href":"/agentes/herramientas/introduccion"},"directory":"accordion","pages":[{"title":"Tipos de herramienta","href":"/agentes/herramientas/tipos-de-herramienta"},{"title":"Listar herramientas","openapi":"openapi/herramientas-agentes-v1.yaml GET /tools","href":"/agentes/herramientas/listar-herramientas"},{"title":"Crear herramienta","openapi":"openapi/herramientas-agentes-v1.yaml POST /tools","href":"/agentes/herramientas/crear-herramienta"},{"title":"Consultar herramienta","openapi":"openapi/herramientas-agentes-v1.yaml GET /tools/{toolId}","href":"/agentes/herramientas/consultar-herramienta"},{"title":"Actualizar herramienta","openapi":"openapi/herramientas-agentes-v1.yaml PUT /tools/{toolId}","href":"/agentes/herramientas/actualizar-herramienta"},{"title":"Consultar uso de herramienta","openapi":"openapi/herramientas-agentes-v1.yaml GET /tools/{toolId}/usage","href":"/agentes/herramientas/consultar-uso"},{"title":"Probar código","openapi":"openapi/herramientas-agentes-v1.yaml POST /tools/test-run-code","href":"/agentes/herramientas/probar-codigo"},{"title":"Eliminar herramienta","openapi":"openapi/herramientas-agentes-v1.yaml DELETE /tools/{toolId}","href":"/agentes/herramientas/eliminar-herramienta"}]}]},{"group":"Agentes preconfigurados","icon":"sparkles","root":{"title":"Agentes preconfigurados","icon":"sparkles","href":"/agentes/preconfigurados"},"directory":"card","pages":[{"group":"Seguros","icon":"shield","root":{"title":"Agentes preconfigurados para Seguros","sidebarTitle":"Seguros","icon":"shield","href":"/agentes/industrias/seguros"},"directory":"card","pages":[{"title":"Agente de IA: Emisión RC Profesional en GNP","sidebarTitle":"GNP: Emisión RC Profesional","icon":"shield-check","href":"/automatizaciones/paso-gnp-emision-rc-profesional"},{"title":"Agente de IA: Cotización GMM en GNP","sidebarTitle":"GNP: cotización GMM","icon":"heart-pulse","href":"/automatizaciones/paso-gnp-cotizacion-gmm"},{"title":"Agente de IA: Reporte de pólizas y recibos pendientes en GNP","sidebarTitle":"GNP: pólizas y recibos pendientes","icon":"file-search","href":"/automatizaciones/paso-gnp-recibos-vencidos"},{"title":"Agente de IA: Reporte de pólizas y recibos pendientes en Quálitas","sidebarTitle":"Quálitas: reporte pendiente","icon":"file-down","tag":"Nuevo","href":"/automatizaciones/paso-qualitas-cobranza-pendiente"},{"title":"Agente de IA: PDFs de recibos pendientes en GNP","sidebarTitle":"GNP: PDFs de recibos","icon":"file-down","href":"/automatizaciones/paso-gnp-documentos-recibos"},{"title":"Agente de IA: Cotización GMM en HDI","sidebarTitle":"HDI: cotización GMM","icon":"heart-pulse","href":"/automatizaciones/paso-hdi-cotizacion-gmm"},{"title":"Agente de IA: Cotización GMM en MAPFRE","sidebarTitle":"MAPFRE: cotización GMM","icon":"heart-pulse","href":"/automatizaciones/paso-mapfre-cotizacion-gmm"}]}]}]},{"group":"Automatizaciones","icon":"workflow","root":{"title":"Automatizaciones","icon":"workflow","href":"/automatizaciones/introduccion"},"directory":"accordion","pages":[{"group":"Definición","icon":"file-pen","root":{"title":"Definición","icon":"file-pen","href":"/automatizaciones/definicion"},"pages":[{"title":"Listar automatizaciones","openapi":"openapi/automatizaciones-v1.yaml GET /workflows","href":"/automatizaciones/listar-automatizaciones"},{"title":"Crear automatización","openapi":"openapi/automatizaciones-v1.yaml POST /workflows","href":"/automatizaciones/crear-automatizacion"},{"title":"Consultar automatización","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}","href":"/automatizaciones/consultar-automatizacion"},{"title":"Actualizar automatización","openapi":"openapi/automatizaciones-v1.yaml PUT /workflows/{workflowId}","href":"/automatizaciones/actualizar-automatizacion"},{"title":"Eliminar automatización","openapi":"openapi/automatizaciones-v1.yaml DELETE /workflows/{workflowId}","href":"/automatizaciones/eliminar-automatizacion"}]},{"group":"Publicación","icon":"badge-check","root":{"title":"Publicación","icon":"badge-check","href":"/automatizaciones/publicacion"},"pages":[{"title":"Publicar automatización","openapi":"openapi/automatizaciones-v1.yaml POST /workflows/{workflowId}/publish","href":"/automatizaciones/publicar-automatizacion"},{"title":"Activar automatización","openapi":"openapi/automatizaciones-v1.yaml POST /workflows/{workflowId}/activate","href":"/automatizaciones/activar-automatizacion"},{"title":"Desactivar automatización","openapi":"openapi/automatizaciones-v1.yaml POST /workflows/{workflowId}/deactivate","href":"/automatizaciones/desactivar-automatizacion"}]},{"group":"Versiones","icon":"git-branch","root":{"title":"Versiones","icon":"git-branch","href":"/automatizaciones/versiones"},"pages":[{"title":"Listar versiones","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/versions","href":"/automatizaciones/listar-versiones"},{"title":"Consultar versión","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/versions/{versionId}","href":"/automatizaciones/consultar-version"}]},{"group":"Disparos","icon":"zap","root":{"title":"Disparos","icon":"zap","href":"/automatizaciones/disparos"},"pages":[{"title":"Disparar webhook","openapi":"openapi/automatizaciones-v1.yaml POST /webhooks/{workflowId}/{secret}","href":"/automatizaciones/disparar-webhook"},{"title":"Ejecutar ahora (cron)","openapi":"openapi/automatizaciones-v1.yaml POST /workflows/{workflowId}/trigger-now","href":"/automatizaciones/ejecutar-ahora"},{"title":"Trigger de correo Gmail","icon":"https://mintlify.s3.us-west-1.amazonaws.com/insurance-boosters/assets/gmail.png","href":"/automatizaciones/trigger-gmail"},{"title":"Trigger de respuesta rápida de WhatsApp","icon":"message-circle-reply","href":"/automatizaciones/trigger-whatsapp-quick-reply"}]},{"group":"Triggers","icon":"radio-tower","root":{"title":"Triggers","icon":"radio-tower","href":"/automatizaciones/triggers"},"pages":[{"title":"Webhook","icon":"webhook","href":"/automatizaciones/triggers/webhook"},{"title":"Programación","icon":"clock","href":"/automatizaciones/triggers/programacion"},{"title":"Registro creado","icon":"database","href":"/automatizaciones/triggers/registro-creado"},{"title":"Registro actualizado","icon":"database-zap","href":"/automatizaciones/triggers/registro-actualizado"},{"title":"Contacto creado","icon":"contact-round","href":"/automatizaciones/triggers/contacto-creado"},{"title":"Contacto actualizado","icon":"contact-round-cog","href":"/automatizaciones/triggers/contacto-actualizado"},{"title":"Data Endpoint de WhatsApp Flow","icon":"message-circle-code","href":"/automatizaciones/triggers/data-endpoint-whatsapp-flow"},{"title":"Respuesta de WhatsApp Flow","icon":"message-circle","href":"/automatizaciones/triggers/respuesta-whatsapp-flow"},{"title":"Reintentos e idempotencia","icon":"refresh-cw","href":"/automatizaciones/triggers/reintentos-idempotencia"}]},{"group":"Ejecuciones","icon":"history","root":{"title":"Ejecuciones","icon":"history","href":"/automatizaciones/ejecuciones"},"pages":[{"title":"Listar ejecuciones","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/runs","href":"/automatizaciones/listar-ejecuciones"},{"title":"Consultar ejecución","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/runs/{runId}","href":"/automatizaciones/consultar-ejecucion"},{"title":"Listar pasos de una ejecución","sidebarTitle":"Pasos de la ejecución","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/runs/{runId}/steps","href":"/automatizaciones/listar-pasos-ejecucion"},{"title":"Diagnosticar un paso de navegador","sidebarTitle":"Diagnóstico de navegador","openapi":"openapi/automatizaciones-v1.yaml GET /workflows/{workflowId}/runs/{runId}/steps/{stepId}/diagnostics","icon":"stethoscope","href":"/automatizaciones/diagnosticar-paso-navegador"}]},{"group":"Pasos","icon":"blocks","root":{"title":"Tipos de paso","icon":"blocks","href":"/automatizaciones/tipos-de-paso"},"pages":[{"title":"Variables y contexto","icon":"braces","href":"/automatizaciones/variables-y-contexto"},{"title":"Archivos entre pasos","icon":"files","href":"/automatizaciones/archivos-entre-pasos"},{"title":"Enviar correo con Gmail","icon":"https://mintlify.s3.us-west-1.amazonaws.com/insurance-boosters/assets/gmail.png","href":"/automatizaciones/paso-gmail"},{"title":"Llamadas con mensaje","icon":"phone-call","href":"/automatizaciones/paso-llamadas-con-mensaje"},{"title":"Paso Agente IA: investigar la web","icon":"globe","href":"/automatizaciones/paso-navegador"},{"title":"Paso Agente IA: completar tarea web","icon":"mouse-pointer-click","href":"/automatizaciones/paso-tarea-navegador"},{"title":"Paso Agente IA: automatizar portal","icon":"bot","href":"/automatizaciones/paso-agente-guion"},{"title":"Paso Criterio IA","icon":"https://mintlify.s3.us-west-1.amazonaws.com/insurance-boosters/assets/typesafe-mark.svg","href":"/automatizaciones/paso-decision"},{"title":"Paso JavaScript","icon":"code","href":"/automatizaciones/paso-javascript"},{"title":"Paso HTTP","icon":"globe","href":"/automatizaciones/paso-http"},{"title":"Paso Esperar","icon":"clock","href":"/automatizaciones/paso-esperar"}]}]},{"group":"Tableros","icon":"table-2","root":{"title":"Tableros","icon":"table-2","href":"/tableros/introduccion"},"directory":"accordion","pages":[{"group":"Administración","icon":"layout-dashboard","root":{"title":"Gestión de tableros","icon":"layout-dashboard","href":"/tableros/gestion"},"pages":[{"title":"Listar tableros","openapi":"openapi/tableros-v1.yaml GET /databases","href":"/tableros/listar-tableros"},{"title":"Crear tablero","openapi":"openapi/tableros-v1.yaml POST /databases","href":"/tableros/crear-tablero"},{"title":"Consultar tablero","openapi":"openapi/tableros-v1.yaml GET /databases/{databaseId}","href":"/tableros/consultar-tablero"},{"title":"Actualizar tablero","openapi":"openapi/tableros-v1.yaml PATCH /databases/{databaseId}","href":"/tableros/actualizar-tablero"}]},{"group":"Campos","icon":"columns-3","root":{"title":"Campos","icon":"columns-3","href":"/tableros/campos"},"pages":[{"title":"Crear campo","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/fields","href":"/tableros/crear-campo"},{"title":"Tipos y configuración de campos","icon":"list-tree","href":"/tableros/tipos-de-campo"},{"title":"Actualizar campo","openapi":"openapi/tableros-v1.yaml PATCH /databases/{databaseId}/fields/{fieldId}","href":"/tableros/actualizar-campo"},{"title":"Reordenar campos","openapi":"openapi/tableros-v1.yaml PUT /databases/{databaseId}/fields/reorder","href":"/tableros/reordenar-campos"},{"title":"Vincular relación bidireccional","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/fields/{fieldId}/link","sidebarTitle":"Vincular relación","href":"/tableros/vincular-relacion"},{"title":"Desvincular relación bidireccional","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/fields/{fieldId}/unlink","sidebarTitle":"Desvincular relación","href":"/tableros/desvincular-relacion"},{"title":"Eliminar campo","openapi":"openapi/tableros-v1.yaml DELETE /databases/{databaseId}/fields/{fieldId}","href":"/tableros/eliminar-campo"}]},{"group":"Registros","icon":"rows-3","root":{"title":"Registros","icon":"rows-3","href":"/tableros/registros"},"pages":[{"title":"Valores por tipo de campo","icon":"braces","href":"/tableros/valores-por-tipo"},{"title":"Listar registros","openapi":"openapi/tableros-v1.yaml GET /databases/{databaseId}/records","href":"/tableros/listar-registros"},{"title":"Buscar registros","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records/search","href":"/tableros/buscar-registros"},{"title":"Crear registro","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records","href":"/tableros/crear-registro"},{"title":"Crear registros en lote","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records/bulk","sidebarTitle":"Crear en lote","href":"/tableros/crear-registros-lote"},{"title":"Consultar registro","openapi":"openapi/tableros-v1.yaml GET /databases/{databaseId}/records/{recordId}","href":"/tableros/consultar-registro"},{"title":"Actualizar registro","openapi":"openapi/tableros-v1.yaml PATCH /databases/{databaseId}/records/{recordId}","href":"/tableros/actualizar-registro"},{"title":"Actualizar relaciones de un registro","openapi":"openapi/tableros-v1.yaml PATCH /databases/{databaseId}/records/{recordId}/relation-links","sidebarTitle":"Actualizar relaciones","href":"/tableros/actualizar-relaciones-registro"},{"title":"Consultar historial de un registro","openapi":"openapi/tableros-v1.yaml GET /databases/{databaseId}/records/{recordId}/history","sidebarTitle":"Consultar historial","href":"/tableros/historial-registro"},{"title":"Eliminar registro","openapi":"openapi/tableros-v1.yaml DELETE /databases/{databaseId}/records/{recordId}","href":"/tableros/eliminar-registro"}]},{"group":"Archivos","icon":"paperclip","root":{"title":"Archivos","icon":"paperclip","href":"/tableros/archivos"},"pages":[{"title":"Subir archivo","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records/{recordId}/fields/{fieldKey}/files","href":"/tableros/subir-archivo"},{"title":"Desadjuntar archivo","openapi":"openapi/tableros-v1.yaml DELETE /databases/{databaseId}/records/{recordId}/fields/{fieldKey}/files/{fileId}","href":"/tableros/desadjuntar-archivo"}]},{"group":"PDF","icon":"file-text","root":{"title":"Generar PDF","icon":"file-text","href":"/tableros/generar-pdf"},"pages":[{"title":"Listar plantillas PDF","description":"Obtén los IDs y valores de runtime de las plantillas PDF de un tablero.","openapi":"openapi/tableros-v1.yaml GET /databases/{databaseId}/pdf-templates","href":"/tableros/listar-plantillas-pdf"},{"title":"Generar PDF de un registro","openapi":"openapi/tableros-v1.yaml POST /databases/{databaseId}/records/{recordId}/pdf-template","href":"/tableros/generar-pdf-registro"}]}]}]}]},"basePath":"","title":"Generar PDF de un registro - Insurance Boosters API","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CiUHMMOm.js","snippetPresets-BgfXU7Bw.js","utils-DWvOwgy_.js","style-to-object-BY3JEAdk.js","utils-BN7RXSMJ.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CFw8bq89.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CAwdfOU2.js","_Uint8Array-BJr8e-ZL.js","isObject-FP1Yky1u.js","Page-CVJ-f_k1.js","CodeSnippet-D_HwgQO_.js","DynamicMarkdown-CQM9Bhbv.js","SectionHeading-DpbrP8nQ.js","icon-BPCgijHy.js","ApiExamples-XX0UgMZK.js","usePlaygroundInputsStore-DXDFSa1V.js","shallow-CdX5aREi.js","isEqual-CoOaxexF.js","CodeSnippets-Cg2wpzWm.js","getApiPlaygroundDisplay-CmCoerhe.js","MethodPill-GQ8DuY0c.js","getPastedJson-Cb5mT31m.js","Check2Icon-a7bUI6e8.js","axios-CsQoIw0U.js","Markdown-CX2QY19L.js","AssistantPageLink-CY3bFglh.js","dist-Dl6_zDnT.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}