Generate a structured filename for a document based on a naming schema with placeholders (e.g. “invoice--”). The AI reads up to the first three PDF pages and uses an LLM to fill in the placeholder values. Cost: 6 credits per request.
Short-lived, Developer-API-audience token obtained by the trusted MCP service through token exchange (mcp_at_...). Raw MCP resource tokens are rejected.
Filename schema/pattern with placeholders. E.g. "invoice-{invoiceNr}-{dateCreated}" or "contract-{clientName}-{year}". The AI will extract values from the document and fill in the placeholders.
Structured job result data (e.g. OCR markdown/JSON, generated filename, PDF metadata, form fields). Available when the job produces a direct result instead of an output file.
Deprecated — use result instead. Additional metadata, duplicated from result for backward compatibility.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Autype","colors":{"primary":"#34D399","light":"#6EE7B7","dark":"#10B981"},"logo":{"light":"https://mintcdn.com/centerbit/Vuy9qmMC9X-BjUVr/logo/logo.png?fit=max\u0026auto=format\u0026n=Vuy9qmMC9X-BjUVr\u0026q=85\u0026s=f210d9e133e6d10d00a9385704d13979","dark":"https://mintcdn.com/centerbit/Vuy9qmMC9X-BjUVr/logo/logo.png?fit=max\u0026auto=format\u0026n=Vuy9qmMC9X-BjUVr\u0026q=85\u0026s=f210d9e133e6d10d00a9385704d13979","href":"/"},"favicon":"https://mintcdn.com/centerbit/Vuy9qmMC9X-BjUVr/favicon.ico?fit=max\u0026auto=format\u0026n=Vuy9qmMC9X-BjUVr\u0026q=85\u0026s=ebec142eff92a1bf2bd559068871fac4","api":{},"navbar":{"links":[{"href":"mailto:support@autype.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.autype.com"}},"footer":{},"icons":{"library":"lucide"},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"App","icon":"globe","href":"https://app.autype.com"},{"anchor":"API Status","icon":"activity","href":"https://status.autype.com/status/autype"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"centerbit","hasAudioNarration":false,"actualSubdomain":"centerbit","customDomains":["docs.autype.com"],"gitSource":{"type":"github","owner":"kesimo","repo":"autype","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6acd3f0424a33f7eee33954c","collectionId":"955619b3-f0bc-4668-830f-fe9a253e8373","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6acd3f0424a33f7eee33954c"},"entitlements":{},"buildId":"6acd3f0424a33f7eee33954c","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"Developer API","count":106},{"language":"default","tag":"Markup Reference","count":40},{"language":"default","tag":"Integrations","count":34},{"language":"default","tag":"Getting Started","count":32},{"language":"default","tag":"Application","count":21},{"language":"default","tag":"Document JSON Syntax","count":15},{"language":"default","tag":"Document Editor","count":15},{"language":"default","tag":"Tools PDF Actions","count":13},{"language":"default","tag":"Rendering","count":12},{"language":"default","tag":"MCP Server","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"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":"llms-txt-v2","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/developer-api/generate-document-filename","slug":"/api-reference/developer-api/generate-document-filename","pageMetadata":{"title":"Generate document filename","description":"Generate a structured filename for a document based on a naming schema with placeholders (e.g. \"invoice-{invoiceNr}-{dateCreated}\"). The AI reads up to the first three PDF pages and uses an LLM to fill in the placeholder values. Cost: 6 credits per request.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/lens/generate-filename","href":"/api-reference/developer-api/generate-document-filename","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Generate a structured filename for a document based on a naming schema with placeholders (e.g. “invoice-\", \"-\", \"”). The AI reads up to the first three PDF pages and uses an LLM to fill in the placeholder values. Cost: 6 credits per request.\"]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Generate document filename","description":"Generate a structured filename for a document based on a naming schema with placeholders (e.g. \"invoice-{invoiceNr}-{dateCreated}\"). The AI reads up to the first three PDF pages and uses an LLM to fill in the placeholder values. Cost: 6 credits per request.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/lens/generate-filename","href":"/api-reference/developer-api/generate-document-filename","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Generate a structured filename for a document based on a naming schema with placeholders (e.g. \"invoice-{invoiceNr}-{dateCreated}\"). The AI reads up to the first three PDF pages and uses an LLM to fill in the placeholder values. Cost: 6 credits per request.","operationId":"ToolsController_lensGenerateFilename_v1","parameters":[],"requestBody":"c4c21e29-38c6-4570-9915-8f847398b7da","responses":{"201":"2f49efde-90c1-4f7f-910d-9d5a5340d56f"},"security":["6d8f6a38-1172-4653-a3ad-e02b9530ab5a","365af7ee-a8a1-4644-a9e2-b6261ffaacf1"],"summary":"Generate document filename","tags":["developer-api"],"x-api-key-scopes":["manage:files"],"method":"post","type":"path","servers":["76ed8365-7553-4d2b-b2a9-2be71590c4fa"],"path":"/api/v1/dev/tools/lens/generate-filename","baseUrlOptions":["https://api.autype.com"],"title":"Generate document filename","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileId":{"type":"string","description":"File ID of the document (PDF, DOCX, ODT, or Markdown)","example":"550e8400-e29b-41d4-a716-446655440000","isRequired":true,"uniqueKey":"fileId","typeLabel":"string"},"filenameSchema":{"type":"string","description":"Filename schema/pattern with placeholders. E.g. \"invoice-{invoiceNr}-{dateCreated}\" or \"contract-{clientName}-{year}\". The AI will extract values from the document and fill in the placeholders.","example":"invoice-{invoiceNr}-{dateCreated}","isRequired":true,"uniqueKey":"filenameSchema","typeLabel":"string"},"webhook":{"type":"object","description":"Optional webhook configuration","properties":{"webhookUrl":{"type":"string","example":"https://example.com/webhook","description":"URL to receive a POST notification when the job completes or fails","uniqueKey":"webhook.webhookUrl","typeLabel":"string"},"webhookAuth":{"type":"object","description":"Optional authentication for the webhook request (custom header or Basic Auth)","properties":{"headerName":{"type":"string","example":"X-API-Key","description":"Custom header name","uniqueKey":"webhook.webhookAuth.headerName","typeLabel":"string"},"headerValue":{"type":"string","example":"my-secret-key","description":"Custom header value","uniqueKey":"webhook.webhookAuth.headerValue","typeLabel":"string"},"basicAuthUsername":{"type":"string","example":"user","description":"Username for Basic Auth","uniqueKey":"webhook.webhookAuth.basicAuthUsername","typeLabel":"string"},"basicAuthPassword":{"type":"string","example":"pass","description":"Password for Basic Auth","uniqueKey":"webhook.webhookAuth.basicAuthPassword","typeLabel":"string"}},"uniqueKey":"webhook.webhookAuth","typeLabel":"object"}},"uniqueKey":"webhook","typeLabel":"object"}},"required":["fileId","filenameSchema"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"fileId":"550e8400-e29b-41d4-a716-446655440000","filenameSchema":"invoice-{invoiceNr}-{dateCreated}","webhook":{"webhookUrl":"https://example.com/webhook","webhookAuth":{"headerName":"X-API-Key","headerValue":"my-secret-key","basicAuthUsername":"user","basicAuthPassword":"pass"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"2f49efde-90c1-4f7f-910d-9d5a5340d56f":{"description":"Filename generation job created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Job ID","example":"550e8400-e29b-41d4-a716-446655440000","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"action":{"type":"string","description":"Action that was performed","example":"pdf.merge","isRequired":true,"uniqueKey":"action","typeLabel":"string"},"status":{"type":"string","description":"Current job status","enum":["PENDING","PROCESSING","COMPLETED","FAILED"],"example":"PENDING","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"inputFileIds":{"description":"Input file IDs used for this job","example":["file-id-1"],"type":"array","items":{"type":"string","uniqueKey":"inputFileIds.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"inputFileIds","typeLabel":"string[]"},"outputFileId":{"oneOf":[{"type":"object","description":"Output file ID (available when COMPLETED)","example":null,"isRequired":true,"uniqueKey":"outputFileId.oneOf.0","typeLabel":"object"},{"type":"null","description":"Output file ID (available when COMPLETED)","example":null,"isRequired":true,"uniqueKey":"outputFileId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputFileId","typeLabel":"object | null"},"error":{"oneOf":[{"type":"object","description":"Error message (available when FAILED)","example":null,"isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","description":"Error message (available when FAILED)","example":null,"isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"object | null"},"createdAt":{"format":"date-time","type":"string","description":"Job creation timestamp","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"startedAt":{"oneOf":[{"type":"object","description":"Job start timestamp","isRequired":true,"uniqueKey":"startedAt.oneOf.0","typeLabel":"object"},{"type":"null","description":"Job start timestamp","isRequired":true,"uniqueKey":"startedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"startedAt","typeLabel":"object | null"},"completedAt":{"oneOf":[{"type":"object","description":"Job completion timestamp","isRequired":true,"uniqueKey":"completedAt.oneOf.0","typeLabel":"object"},{"type":"null","description":"Job completion timestamp","isRequired":true,"uniqueKey":"completedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"completedAt","typeLabel":"object | null"},"downloadUrl":{"type":"string","description":"Signed, time-limited browser download URL for the output file (available when COMPLETED). An API key may also be used on the same endpoint.","example":"https://api.autype.com/api/v1/dev/tools/files/output-file-id/download?token=signed-token","uniqueKey":"downloadUrl","typeLabel":"string"},"result":{"type":"object","description":"Structured job result data (e.g. OCR markdown/JSON, generated filename, PDF metadata, form fields). Available when the job produces a direct result instead of an output file.","uniqueKey":"result","typeLabel":"object"},"metadata":{"type":"object","description":"**Deprecated** — use `result` instead. Additional metadata, duplicated from result for backward compatibility.","deprecated":true,"uniqueKey":"metadata","typeLabel":"object"}},"required":["id","action","status","inputFileIds","outputFileId","error","createdAt","startedAt","completedAt"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"550e8400-e29b-41d4-a716-446655440000","action":"pdf.merge","status":"PENDING","inputFileIds":["file-id-1"],"outputFileId":null,"error":null,"createdAt":"2023-11-07T05:31:56Z","startedAt":{},"completedAt":{},"downloadUrl":"https://api.autype.com/api/v1/dev/tools/files/output-file-id/download?token=signed-token","result":{},"metadata":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"6d8f6a38-1172-4653-a3ad-e02b9530ab5a":{"mcp-oauth":{"scheme":"bearer","bearerFormat":"Autype Developer API OAuth token","type":"http","description":"Short-lived, Developer-API-audience token obtained by the trusted MCP service through token exchange (mcp_at_...). Raw MCP resource tokens are rejected.","scopes":[],"schemeName":"mcp-oauth"}},"365af7ee-a8a1-4644-a9e2-b6261ffaacf1":{"api-key":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API Key (starts with ak_...)","scopes":[],"schemeName":"api-key"}}},"servers":{"76ed8365-7553-4d2b-b2a9-2be71590c4fa":{"url":"https://api.autype.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"scheme":"bearer","bearerFormat":"Autype Developer API OAuth token","type":"http","description":"Short-lived, Developer-API-audience token obtained by the trusted MCP service through token exchange (mcp_at_...). Raw MCP resource tokens are rejected.","scopes":[],"schemeName":"mcp-oauth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Short-lived, Developer-API-audience token obtained by the trusted MCP service through token exchange (mcp_at_...). Raw MCP resource tokens are rejected.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"mcp-oauth","name":"Authorization"}],"title":"mcp-oauth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API Key (starts with ak_...)","scopes":[],"schemeName":"api-key"},"schema":{"title":"X-API-Key","type":"string","description":"API Key (starts with ak_...)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"api-key","name":"X-API-Key"}],"title":"api-key"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"centerbit","siteName":"Autype","title":"Generate document filename - Autype","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-12T20:12:09.286Z","originalFileLocation":"api-reference/developer-api/generate-document-filename.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=\"system\"}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=\"Generate a structured filename for a document based on a naming schema with placeholders (e.g. \u0026quot;invoice-{invoiceNr}-{dateCreated}\u0026quot;). The AI reads up to the first three PDF pages and uses an LLM to fill in the placeholder values. Cost: 6 credits per request.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Autype\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/centerbit/j9VHJIzX9OohavyI/_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/centerbit/j9VHJIzX9OohavyI/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/centerbit/j9VHJIzX9OohavyI/_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/centerbit/j9VHJIzX9OohavyI/_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/centerbit/j9VHJIzX9OohavyI/_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/centerbit/j9VHJIzX9OohavyI/_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/centerbit/j9VHJIzX9OohavyI/_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/centerbit/j9VHJIzX9OohavyI/_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/centerbit/j9VHJIzX9OohavyI/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Generate document filename - Autype\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate a structured filename for a document based on a naming schema with placeholders (e.g. \u0026quot;invoice-{invoiceNr}-{dateCreated}\u0026quot;). The AI reads up to the first three PDF pages and uses an LLM to fill in the placeholder values. Cost: 6 credits per request.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Autype\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.autype.com/api-reference/developer-api/generate-document-filename\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://centerbit.mintlify.app/_mintlify/api/og/v2?division=Lens+%28AI%29\u0026amp;title=Generate+document+filename\u0026amp;description=Generate+a+structured+filename+for+a+document+based+on+a+naming+schema+with+placeholders+%28e.g.+%22invoice-%7BinvoiceNr%7D-%7BdateCreated%7D%22%29.+The+AI+reads+up+to+the+firs\u0026amp;theme=f447828041bbaa0c3303d34e\u0026amp;signature=f6abf8244a8669d9758a526eaded5f498fbce1886b5e3367cb4ac491c4fdc89b\">\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=\"Generate document filename - Autype\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate a structured filename for a document based on a naming schema with placeholders (e.g. \u0026quot;invoice-{invoiceNr}-{dateCreated}\u0026quot;). The AI reads up to the first three PDF pages and uses an LLM to fill in the placeholder values. Cost: 6 credits per request.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://centerbit.mintlify.app/_mintlify/api/og/v2?division=Lens+%28AI%29\u0026amp;title=Generate+document+filename\u0026amp;description=Generate+a+structured+filename+for+a+document+based+on+a+naming+schema+with+placeholders+%28e.g.+%22invoice-%7BinvoiceNr%7D-%7BdateCreated%7D%22%29.+The+AI+reads+up+to+the+firs\u0026amp;theme=f447828041bbaa0c3303d34e\u0026amp;signature=f6abf8244a8669d9758a526eaded5f498fbce1886b5e3367cb4ac491c4fdc89b\">\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/centerbit/j9VHJIzX9OohavyI/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Autype\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#34D399\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.autype.com/api-reference/developer-api/generate-document-filename\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/developer-api/generate-document-filename.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.autype.com/#organization\",\"name\":\"Autype\",\"url\":\"https://docs.autype.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/centerbit/Vuy9qmMC9X-BjUVr/logo/logo.png?fit=max\u0026auto=format\u0026n=Vuy9qmMC9X-BjUVr\u0026q=85\u0026s=f210d9e133e6d10d00a9385704d13979\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.autype.com#website\",\"name\":\"Autype\",\"url\":\"https://docs.autype.com\",\"publisher\":{\"@id\":\"https://docs.autype.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.autype.com/api-reference/developer-api/generate-document-filename#webpage\",\"url\":\"https://docs.autype.com/api-reference/developer-api/generate-document-filename\",\"name\":\"Generate document filename\",\"description\":\"Generate a structured filename for a document based on a naming schema with placeholders (e.g. \\\"invoice-{invoiceNr}-{dateCreated}\\\"). The AI reads up to the first three PDF pages and uses an LLM to fill in the placeholder values. Cost: 6 credits per request.\",\"dateModified\":\"2026-10-12T20:12:09.286Z\",\"isPartOf\":{\"@id\":\"https://docs.autype.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.autype.com/api-reference/developer-api/generate-document-filename#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.autype.com/api-reference/developer-api/generate-document-filename#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lens (AI)\",\"item\":\"https://docs.autype.com/api-reference/developer-api/lens-ocr\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate document filename\",\"item\":\"https://docs.autype.com/api-reference/developer-api/generate-document-filename\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.autype.com/api-reference/developer-api/generate-document-filename#apireference\",\"headline\":\"Generate document filename\",\"name\":\"Generate document filename\",\"description\":\"Generate a structured filename for a document based on a naming schema with placeholders (e.g. \\\"invoice-{invoiceNr}-{dateCreated}\\\"). The AI reads up to the first three PDF pages and uses an LLM to fill in the placeholder values. Cost: 6 credits per request.\",\"url\":\"https://docs.autype.com/api-reference/developer-api/generate-document-filename\",\"mainEntityOfPage\":{\"@id\":\"https://docs.autype.com/api-reference/developer-api/generate-document-filename#webpage\"},\"dateModified\":\"2026-10-12T20:12:09.286Z\",\"publisher\":{\"@id\":\"https://docs.autype.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.autype.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Autype\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Autype","nav":{"global":{"anchors":[{"anchor":"App","icon":"globe","href":"https://app.autype.com"},{"anchor":"API Status","icon":"activity","href":"https://status.autype.com/status/autype"}]},"tabs":[{"tab":"Getting Started","pages":[{"title":"Getting Started","href":"/getting-started"}]},{"tab":"Markup Reference","pages":[{"title":"Markup Reference","href":"/markup-reference/overview"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/automation/overview"}]},{"tab":"Developer API","groups":[{"group":"Overview","pages":[{"title":"Developer API","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Get credential context","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/api-key/info","href":"/api-reference/developer-api/get-credential-context"},{"title":"Identify the connected workspace profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/profile","href":"/api-reference/developer-api/identify-the-connected-workspace-profile"},{"title":"Webhooks \u0026 Job Status","href":"/api-reference/webhooks"},{"title":"Rate Limits \u0026 Quotas","href":"/api-reference/rate-limits"}]},{"group":"Document JSON Syntax","pages":[{"title":"Document JSON Overview","href":"/api-reference/json-syntax/overview"},{"title":"Variables","href":"/api-reference/json-syntax/variables"},{"title":"Abbreviations","href":"/api-reference/json-syntax/abbreviations"},{"title":"Citations","href":"/api-reference/json-syntax/citations"},{"title":"Footnotes","href":"/api-reference/json-syntax/footnotes"},{"title":"Defaults","href":"/api-reference/json-syntax/defaults"},{"title":"Document Styling","href":"/api-reference/json-syntax/document-styling"},{"group":"Sections \u0026 Elements","pages":[{"title":"Layout","href":"/api-reference/json-syntax/sections/layout"},{"title":"Text Elements","href":"/api-reference/json-syntax/sections/text-elements"},{"title":"Tables","href":"/api-reference/json-syntax/sections/tables"},{"title":"Form Fields","sidebarTitle":"Form Fields","href":"/api-reference/json-syntax/sections/form-fields"},{"title":"Lists","href":"/api-reference/json-syntax/sections/lists"},{"title":"Block Quotes","href":"/api-reference/json-syntax/sections/blockquotes"},{"title":"Media \u0026 Code","href":"/api-reference/json-syntax/sections/media"},{"title":"Indices","href":"/api-reference/json-syntax/sections/indices"}]}]},{"group":"Tools Guides","pages":[{"title":"DOCX/ODT Placeholder Replacement","href":"/api-reference/tools/placeholder-replacement"},{"title":"DOCX roundtrip","href":"/api-reference/tools/docx-roundtrip"},{"title":"HTML to PDF","href":"/api-reference/tools/html-to-pdf"},{"title":"PDF Form Fields \u0026 Fill Form","href":"/api-reference/tools/pdf-forms"},{"title":"Autype Lens","href":"/api-reference/tools/lens"}]},{"group":"Document Import","pages":[{"title":"Convert an uploaded DOCX to validated Autype Document JSON","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/import/docx","href":"/api-reference/developer-api/convert-an-uploaded-docx-to-validated-autype-document-json"},{"title":"Convert a previously uploaded toolkit DOCX to Autype JSON","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/import/docx/file","href":"/api-reference/developer-api/convert-a-previously-uploaded-toolkit-docx-to-autype-json"}]},{"group":"Images","pages":[{"title":"Upload a temporary image","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/images/upload","href":"/api-reference/developer-api/upload-a-temporary-image"},{"title":"List temporary images","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/images","href":"/api-reference/developer-api/list-temporary-images"},{"title":"Delete a temporary image","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/dev/images/{imageId}","href":"/api-reference/developer-api/delete-a-temporary-image"}]},{"group":"Rendering","pages":[{"title":"Render a document from JSON (temporary)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/render","href":"/api-reference/developer-api/render-a-document-from-json-temporary"},{"title":"Render a document from Extended Markdown (temporary)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/render/markdown","href":"/api-reference/developer-api/render-a-document-from-extended-markdown-temporary"},{"title":"Render a document from JSON as page images (temporary)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/render/images","href":"/api-reference/developer-api/render-a-document-from-json-as-page-images-temporary"},{"title":"Render a document from Extended Markdown as page images (temporary)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/render/markdown/images","href":"/api-reference/developer-api/render-a-document-from-extended-markdown-as-page-images-temporary"},{"title":"Validate a document JSON","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/render/validate","href":"/api-reference/developer-api/validate-a-document-json"},{"title":"Validate Extended Markdown content","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/render/validate/markdown","href":"/api-reference/developer-api/validate-extended-markdown-content"},{"title":"Check JSON document export readiness","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/render/readiness","href":"/api-reference/developer-api/check-json-document-export-readiness"},{"title":"Check Extended Markdown export readiness","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/render/readiness/markdown","href":"/api-reference/developer-api/check-extended-markdown-export-readiness"},{"title":"Render a persistent document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/render/document/{documentId}","href":"/api-reference/developer-api/render-a-persistent-document"},{"title":"Get render job status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/render/{jobId}","href":"/api-reference/developer-api/get-render-job-status"},{"title":"Download render output file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/render/{jobId}/download","href":"/api-reference/developer-api/download-render-output-file"},{"title":"List render jobs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/render","href":"/api-reference/developer-api/list-render-jobs"}]},{"group":"Bulk Rendering","pages":[{"title":"Get document variables","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/documents/{documentId}/variables","href":"/api-reference/developer-api/get-document-variables"},{"title":"Create bulk render job from JSON","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/bulk-render","href":"/api-reference/developer-api/create-bulk-render-job-from-json"},{"title":"Create bulk render job from file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/bulk-render/file","href":"/api-reference/developer-api/create-bulk-render-job-from-file"},{"title":"Get bulk render job status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/bulk-render/{bulkJobId}","href":"/api-reference/developer-api/get-bulk-render-job-status"},{"title":"Download bulk render output ZIP","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/bulk-render/{bulkJobId}/download","href":"/api-reference/developer-api/download-bulk-render-output-zip"}]},{"group":"Projects \u0026 Documents","pages":[{"title":"List projects","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/projects","href":"/api-reference/developer-api/list-projects"},{"title":"Create project","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/projects","href":"/api-reference/developer-api/create-project"},{"title":"List documents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/documents","href":"/api-reference/developer-api/list-documents"},{"title":"Create document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/documents","href":"/api-reference/developer-api/create-document"},{"title":"Create document from Extended Markdown","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/documents/markdown","href":"/api-reference/developer-api/create-document-from-extended-markdown"},{"title":"Get document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/documents/{documentId}","href":"/api-reference/developer-api/get-document"},{"title":"Get document as Extended Markdown","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/documents/{documentId}/markdown","href":"/api-reference/developer-api/get-document-as-extended-markdown"},{"title":"Update document from Extended Markdown","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/dev/documents/{documentId}/markdown","href":"/api-reference/developer-api/update-document-from-extended-markdown"}]},{"group":"Templates","pages":[{"title":"List compact template summaries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/templates","href":"/api-reference/developer-api/list-compact-template-summaries"},{"title":"List templates as Extended Markdown (legacy)","deprecated":true,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/templates/markdown","href":"/api-reference/developer-api/list-templates-as-extended-markdown-legacy"},{"title":"Get one template as Extended Markdown","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/templates/{templateId}/markdown","href":"/api-reference/developer-api/get-one-template-as-extended-markdown"}]},{"group":"Styles","pages":[{"title":"List reusable workspace and system styles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/styles","href":"/api-reference/developer-api/list-reusable-workspace-and-system-styles"},{"title":"Create an organization style preset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/styles","href":"/api-reference/developer-api/create-an-organization-style-preset"},{"title":"Get a style preset by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/styles/{styleId}","href":"/api-reference/developer-api/get-a-style-preset-by-id"},{"title":"Update an organization style preset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/dev/styles/{styleId}","href":"/api-reference/developer-api/update-an-organization-style-preset"},{"title":"Delete an organization style preset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/dev/styles/{styleId}","href":"/api-reference/developer-api/delete-an-organization-style-preset"}]},{"group":"Reusable Blocks","pages":[{"title":"List organization reusable blocks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/reusable-blocks","href":"/api-reference/developer-api/list-organization-reusable-blocks"},{"title":"Create an organization reusable block","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/reusable-blocks","href":"/api-reference/developer-api/create-an-organization-reusable-block"},{"title":"Get a reusable block with versions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/reusable-blocks/{blockId}","href":"/api-reference/developer-api/get-a-reusable-block-with-versions"},{"title":"Update an organization reusable block","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/dev/reusable-blocks/{blockId}","href":"/api-reference/developer-api/update-an-organization-reusable-block"},{"title":"Delete an organization reusable block","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/dev/reusable-blocks/{blockId}","href":"/api-reference/developer-api/delete-an-organization-reusable-block"},{"title":"Build insert payload for snapshot/reference insertion","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/reusable-blocks/{blockId}/insert","href":"/api-reference/developer-api/build-insert-payload-for-snapshotreference-insertion"}]},{"group":"Records","pages":[{"title":"List saved records for a document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/documents/{documentId}/records","href":"/api-reference/developer-api/list-saved-records-for-a-document"},{"title":"Inspect document variables before creating or updating a saved record","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/documents/{documentId}/records/prepare","href":"/api-reference/developer-api/inspect-document-variables-before-creating-or-updating-a-saved-record"},{"title":"Create a saved record for a document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/documents/{documentId}/records","href":"/api-reference/developer-api/create-a-saved-record-for-a-document"},{"title":"Get a saved record","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/records/{recordId}","href":"/api-reference/developer-api/get-a-saved-record"},{"title":"Update a saved record","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/dev/records/{recordId}","href":"/api-reference/developer-api/update-a-saved-record"},{"title":"Archive a saved record","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/dev/records/{recordId}","href":"/api-reference/developer-api/archive-a-saved-record"},{"title":"Render/export a saved record","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/records/{recordId}/render","href":"/api-reference/developer-api/renderexport-a-saved-record"}]},{"group":"Tools File Management","pages":[{"title":"Upload a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/files/upload","href":"/api-reference/developer-api/upload-a-file"},{"title":"List files","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/tools/files","href":"/api-reference/developer-api/list-files"},{"title":"Get file details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/tools/files/{fileId}","href":"/api-reference/developer-api/get-file-details"},{"title":"Download a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/tools/files/{fileId}/download","href":"/api-reference/developer-api/download-a-file"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v1/dev/tools/files/{fileId}","href":"/api-reference/developer-api/delete-a-file"}]},{"group":"Tools PDF Actions","pages":[{"title":"Merge PDFs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/merge","href":"/api-reference/developer-api/merge-pdfs"},{"title":"Split PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/split","href":"/api-reference/developer-api/split-pdf"},{"title":"Rotate PDF pages","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/rotate","href":"/api-reference/developer-api/rotate-pdf-pages"},{"title":"Keep or remove PDF pages","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/pages","href":"/api-reference/developer-api/keep-or-remove-pdf-pages"},{"title":"Add PDF watermark","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/watermark","href":"/api-reference/developer-api/add-pdf-watermark"},{"title":"Get PDF metadata","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/metadata","href":"/api-reference/developer-api/get-pdf-metadata"},{"title":"Protect PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/protect","href":"/api-reference/developer-api/protect-pdf"},{"title":"Unlock PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/unlock","href":"/api-reference/developer-api/unlock-pdf"},{"title":"Compress PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/compress","href":"/api-reference/developer-api/compress-pdf"},{"title":"PDF to image","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/toimage","href":"/api-reference/developer-api/pdf-to-image"},{"title":"Get PDF form fields","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/form-fields","href":"/api-reference/developer-api/get-pdf-form-fields"},{"title":"Fill PDF form fields","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/fill-form","href":"/api-reference/developer-api/fill-pdf-form-fields"},{"title":"Flatten PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/pdf/flatten","href":"/api-reference/developer-api/flatten-pdf"}]},{"group":"Tools Document Actions","pages":[{"title":"Convert DOCX to PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/convert/docx-to-pdf","href":"/api-reference/developer-api/convert-docx-to-pdf"},{"title":"Convert ODT to PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/convert/odt-to-pdf","href":"/api-reference/developer-api/convert-odt-to-pdf"},{"title":"Convert HTML to PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/convert/html-to-pdf","href":"/api-reference/developer-api/convert-html-to-pdf"},{"title":"Convert images to PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/convert/image-to-pdf","href":"/api-reference/developer-api/convert-images-to-pdf"},{"title":"Replace placeholders in DOCX/ODT","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/docx/replace-placeholders","href":"/api-reference/developer-api/replace-placeholders-in-docxodt"}]},{"group":"Lens (AI)","pages":[{"title":"Lens OCR","description":"Extract text from a document using AI. Supports PDF, DOCX, ODT, and Markdown files. Output formats: \"md\" (raw standard markdown, 2 credits per page), \"mdd\" (Autype extended markdown, 18 credits per page), and \"json\" (full Autype document JSON, 18 credits per page). For PDF files with \"md\" format you can optionally specify which pages to process.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/lens/ocr","href":"/api-reference/developer-api/lens-ocr"},{"title":"Generate document filename","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/lens/generate-filename","href":"/api-reference/developer-api/generate-document-filename"},{"title":"Classify document","description":"Classify a document into one of the provided categories using AI. The AI reads the first 3 pages of the document and picks the best matching category. Supports PDF, DOCX, ODT, and Markdown files. Cost: 6 credits per request.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/lens/classify","href":"/api-reference/developer-api/classify-document"},{"title":"Extract structured data","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/dev/tools/lens/extract","href":"/api-reference/developer-api/extract-structured-data"}]},{"group":"Tools Jobs","pages":[{"title":"Get job status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/tools/jobs/{jobId}","href":"/api-reference/developer-api/get-job-status"},{"title":"List jobs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/dev/tools/jobs","href":"/api-reference/developer-api/list-jobs"}]}]}]},"basePath":"","title":"Generate document filename - Autype","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C8RPHPxo.js","utils-0BK-9q6z.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DfjzsUJT.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B4v9psJ4.js","snippetPresets-CpTQv-Ez.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BNP-Fvr0.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BSgu6h1D.js","shallow-Biv1i9Gs.js","getApiPlaygroundDisplay-BoGOXhtF.js","CodeSnippet-DvQoT18_.js","CodeSnippets-Dnpa15xT.js","Page-Buji1S4J.js","getPastedJson-xAIyhUFE.js","icon-S6FBih11.js","MethodPill-SaYeUZyk.js","DuplicateIcon-Cs-p3v2Q.js","createIcon-DjCFEoHq.js","DynamicMarkdown-BcnBltEQ.js","SectionHeading-BUBl0eEF.js","axios-vUo_bRtp.js","Markdown-h4cOoD8d.js","clsx-B2v50t8t.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DJnKvr0g.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BHrrjR1K.js"]}