Key-value map of Variables in the template. Pass values for the variables to render them into the created document or leave values blank to make them available for insertion later.
Key-value pairs for Form Fields defined in the template. Keys must match field names. Values prefill the corresponding form fields in the generated document. Currently supports: text and checkbox fields.
Map of collection name → array of record objects used to expand table-scoped row-loop markers in the template.
Each key must match a collection name returned by Get Template Details under collections[].name.
Each value is an ordered array of flat record objects; each record is a key–value map where keys match the collection's variable names and values are strings.
Records are rendered in array order.
Maximum 100 items per collection, and up to 50 collections per request.
Applies to AgreementGen templates only. Ignored silently when the resolved template type is not lumin.
Describes the signer roles defined in the template. Role name must match the values defined in the template. These values are prefilled when sending the agreement for signature from the AgreementGen editor.
The reference URL of the linked object in the provider system.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Lumin Developer Docs","colors":{"primary":"#171717","light":"#FFFFFF","dark":"#D4D4D4"},"logo":{"light":"https://mintcdn.com/luminpdf-82c12c3f/S8lnm3z-VpB7-Jo7/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=S8lnm3z-VpB7-Jo7\u0026q=85\u0026s=7efd61a54cbb6df606831ac070f96525","dark":"https://mintcdn.com/luminpdf-82c12c3f/S8lnm3z-VpB7-Jo7/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=S8lnm3z-VpB7-Jo7\u0026q=85\u0026s=a85445ea50bdbdd58bb06a604a7b81d6","href":"/"},"favicon":"https://mintcdn.com/luminpdf-82c12c3f/S8lnm3z-VpB7-Jo7/favicon.png?fit=max\u0026auto=format\u0026n=S8lnm3z-VpB7-Jo7\u0026q=85\u0026s=a8770eb57248f1a494c24b10227b64f7","api":{"openapi":"tabs/api-reference/lumin-openapi.yaml","params":{"expanded":"all"},"examples":{"defaults":"all","prefill":true}},"appearance":{"default":"light"},"navbar":{"links":[{"href":"mailto:[email protected]","label":"Contact developer support"}]},"footer":{"socials":{"website":"https://www.luminpdf.com","github":"https://github.com/luminpdf","linkedin":"https://www.linkedin.com/company/luminpdf"}},"seo":{"metatags":{"canonical":"https://developers.luminpdf.com"}},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":false},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Terms of Use","icon":"newspaper","href":"https://www.luminpdf.com/terms-of-use"},{"anchor":"Help Center","icon":"circle-question","href":"https://help.luminpdf.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"luminpdf-82c12c3f","hasAudioNarration":false,"actualSubdomain":"luminpdf-82c12c3f","customDomains":["developers.luminpdf.com"],"gitSource":{"type":"github","owner":"luminpdf","repo":"lumin-dev-docs","deployBranch":"production","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ab35b45d139634430d6ee1a","collectionId":"9ba3beff-c026-4ba1-93db-5a1cdbb8ac62","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ab35b45d139634430d6ee1a"},"entitlements":{},"buildId":"6ab35b45d139634430d6ee1a","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":34},{"language":"default","tag":"Lumin API reference","count":33},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"Signature requests","count":10},{"language":"default","tag":"Documents","count":9},{"language":"default","tag":"Workspaces","count":5},{"language":"default","tag":"Templates","count":4},{"language":"default","tag":"Walkthroughs","count":4},{"language":"default","tag":"Webhooks","count":4},{"language":"default","tag":"Agreements","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"tabs/api-reference/api/agreements/create-agreement","slug":"/tabs/api-reference/api/agreements/create-agreement","pageMetadata":{"title":"Create Agreement","description":"Create a new AgreementGen document from a AgreementGen template.","openapi":"POST /agreements","href":"/tabs/api-reference/api/agreements/create-agreement"},"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: \"Create a new AgreementGen document from a AgreementGen template.\"\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Accordion}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);return _jsxs(Accordion,{title:`Required scopes (OAuth 2.0)`,icon:`key`,id:`required-scopes-oauth-2-0`,children:[_jsx(_components.p,{children:`This endpoint requires the following scope:`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`agreements`})})]})}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":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Create Agreement","description":"Create a new AgreementGen document from a AgreementGen template.","openapi":"POST /agreements","href":"/tabs/api-reference/api/agreements/create-agreement"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create Agreement","description":"Create a new AgreementGen document from a AgreementGen template.","security":["2bcf7f61-769b-4d64-8de0-307aad25168c","1f0fe2f7-ab93-4a4b-90c1-643652881701"],"tags":["Agreements"],"requestBody":"ef40c523-b08c-4878-8424-1d53aee21c47","responses":{"201":"6cba7435-ab9a-4cc5-812a-cbd4d71551ff","4XX":"e1c8a6c6-b363-4148-b5b3-c7071c18a198"},"method":"post","type":"path","servers":["5d5d29d0-7468-455e-aa18-a9b021396aa8"],"path":"/agreements","baseUrlOptions":["https://api.luminpdf.com/v1"],"title":"Create Agreement","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.method":"template","body.agreement_data.template_id":"ag_12312321","body.agreement_data.variables":{"Client.Name":"Acme Corp","Document.EffectiveDate":"2025-08-01"},"body.agreement_data.fields":{"Client.Name":"Acme Corp","Document.EffectiveDate":"2025-08-01"},"body.agreement_data.collections.Opportunity\\.LineItems.items.0.Product\\.Name":"Annual enterprise license","body.agreement_data.collections.Opportunity\\.LineItems.items.0.Product\\.Quantity":"1","body.agreement_data.collections.Opportunity\\.LineItems.items.0.Product\\.UnitPrice":"$1,000.00","body.agreement_data.collections.Opportunity\\.LineItems.items.0.Product\\.Total":"$1,000.00","body.agreement_data.collections.Opportunity\\.LineItems.items.1.Product\\.Name":"Premium support package","body.agreement_data.collections.Opportunity\\.LineItems.items.1.Product\\.Quantity":"1","body.agreement_data.collections.Opportunity\\.LineItems.items.1.Product\\.UnitPrice":"$500.00","body.agreement_data.collections.Opportunity\\.LineItems.items.1.Product\\.Total":"$500.00","body.agreement_data.linked_objects.items.0.integration":"salesforce","body.agreement_data.linked_objects.items.0.entity_type":"opportunity","body.agreement_data.linked_objects.items.0.record_id":"0065g00000Vh123ABC","body.agreement_data.linked_objects.items.0.reference_url":"https://your-crm-instance.example.com/record/001XXXXXXXXX","body.agreement_data.signer_roles.items.0.name":"Tenant","body.agreement_data.signer_roles.items.0.preassigned_signer.name":"Alice Nguyen","body.agreement_data.signer_roles.items.0.preassigned_signer.email_address":"[email protected]","body.agreement_data.signer_roles.items.1.name":"Landlord","body.agreement_data.signer_roles.items.1.preassigned_signer.name":"Brian Tran","body.agreement_data.signer_roles.items.1.preassigned_signer.email_address":"[email protected]","body.agreement_name":"NDA Agreement"}]},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["method","agreement_data"],"properties":{"method":{"type":"string","enum":["template"],"description":"Must be set to `template`.","isRequired":true,"uniqueKey":"method","typeLabel":"enum\u003cstring>"},"agreement_data":{"type":"object","required":["template_id"],"properties":{"template_id":{"type":"string","description":"Unique identifier of the AG template. Obtainable from the template list API.","isRequired":true,"uniqueKey":"agreement_data.template_id","typeLabel":"string"},"variables":{"type":"object","description":"Key-value map of Variables in the template. Pass values for the variables to render them into the created document or leave values blank to make them available for insertion later.\n","uniqueKey":"agreement_data.variables","typeLabel":"object"},"fields":{"type":"object","description":"Key-value pairs for Form Fields defined in the template. Keys must match field names. Values prefill the corresponding form fields in the generated document. Currently supports: `text` and `checkbox` fields.\n","uniqueKey":"agreement_data.fields","typeLabel":"object"},"collections":{"type":"object","description":"Map of **collection name → array of record objects** used to expand table-scoped row-loop markers in the template.\n\n- Each key must match a collection name returned by [Get Template Details](/tabs/api-reference/api/templates/get-template-details) under `collections[].name`.\n- Each value is an ordered array of flat record objects; each record is a key–value map where keys match the collection's variable names and values are strings.\n- Records are rendered in array order.\n- Maximum 100 items per collection, and up to 50 collections per request.\n\nApplies to AgreementGen templates only. Ignored silently when the resolved template `type` is not `lumin`.\n","additionalProperties":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"agreement_data.collections.additionalProperties.items.[INDEX].additionalProperties","typeLabel":"string"},"uniqueKey":"agreement_data.collections.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"agreement_data.collections.additionalProperties","typeLabel":"object[]"},"uniqueKey":"agreement_data.collections","typeLabel":"object"},"linked_objects":{"type":"array","description":"CRM or external objects linked to the Agreement.","items":{"type":"object","properties":{"integration":{"type":"string","description":"The external system or integration where the linked object lives. Example: salesforce, hubspot.\n","uniqueKey":"agreement_data.linked_objects.items.[INDEX].integration","typeLabel":"string"},"entity_type":{"type":"string","description":"The type of the linked object in that provider's data model. Example: opportunity, contact, deal.\n","uniqueKey":"agreement_data.linked_objects.items.[INDEX].entity_type","typeLabel":"string"},"record_id":{"type":"string","description":"The unique identifier of the linked object in the provider system. Example: 0065g00000Vh123ABC (Salesforce record ID).\n","uniqueKey":"agreement_data.linked_objects.items.[INDEX].record_id","typeLabel":"string"},"reference_url":{"type":"string","format":"uri","description":"The reference URL of the linked object in the provider system.","uniqueKey":"agreement_data.linked_objects.items.[INDEX].reference_url","typeLabel":"string\u003curi>"}},"uniqueKey":"agreement_data.linked_objects.items.[INDEX]","typeLabel":"object"},"uniqueKey":"agreement_data.linked_objects","typeLabel":"object[]"},"signer_roles":{"type":"array","description":"Describes the signer roles defined in the template. Role name must match the values defined in the template. These values are prefilled when sending the agreement for signature from the AgreementGen editor.\n","items":{"type":"object","properties":{"name":{"type":"string","description":"A label for the role (e.g., \"Tenant\", \"Manager\"). Must match a role defined in the template.","uniqueKey":"agreement_data.signer_roles.items.[INDEX].name","typeLabel":"string"},"preassigned_signer":{"type":"object","description":"Signer preassigned to this role. These values are prefilled when sending the agreement for signature.","properties":{"name":{"type":"string","description":"Name of the preassigned signer.","uniqueKey":"agreement_data.signer_roles.items.[INDEX].preassigned_signer.name","typeLabel":"string"},"email_address":{"type":"string","format":"email","description":"Email address of the preassigned signer.","uniqueKey":"agreement_data.signer_roles.items.[INDEX].preassigned_signer.email_address","typeLabel":"string\u003cemail>"}},"uniqueKey":"agreement_data.signer_roles.items.[INDEX].preassigned_signer","typeLabel":"object"}},"uniqueKey":"agreement_data.signer_roles.items.[INDEX]","typeLabel":"object"},"uniqueKey":"agreement_data.signer_roles","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"agreement_data","typeLabel":"object"},"agreement_name":{"type":"string","minLength":1,"maxLength":255,"description":"Human-friendly title of the agreement (1-255 chars). Defaults to input name or \"New document\" if not provided in the request body.\n","uniqueKey":"agreement_name","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"method":"template","agreement_name":"NDA Agreement","agreement_data":{"template_id":"ag_12312321","fields":{"Client.Name":"Acme Corp","Document.EffectiveDate":"2025-08-01"},"variables":{"Client.Name":"Acme Corp","Document.EffectiveDate":"2025-08-01"},"collections":{"Opportunity.LineItems":[{"Product.Name":"Annual enterprise license","Product.Quantity":"1","Product.UnitPrice":"$1,000.00","Product.Total":"$1,000.00"},{"Product.Name":"Premium support package","Product.Quantity":"1","Product.UnitPrice":"$500.00","Product.Total":"$500.00"}]},"linked_objects":[{"integration":"salesforce","entity_type":"opportunity","record_id":"0065g00000Vh123ABC","reference_url":"https://your-crm-instance.example.com/record/001XXXXXXXXX"}],"signer_roles":[{"name":"Tenant","preassigned_signer":{"name":"Alice Nguyen","email_address":"[email protected]"}},{"name":"Landlord","preassigned_signer":{"name":"Brian Tran","email_address":"[email protected]"}}]}},"examples":{"Example":{"title":"Example","value":{"method":"template","agreement_name":"NDA Agreement","agreement_data":{"template_id":"ag_12312321","fields":{"Client.Name":"Acme Corp","Document.EffectiveDate":"2025-08-01"},"variables":{"Client.Name":"Acme Corp","Document.EffectiveDate":"2025-08-01"},"collections":{"Opportunity.LineItems":[{"Product.Name":"Annual enterprise license","Product.Quantity":"1","Product.UnitPrice":"$1,000.00","Product.Total":"$1,000.00"},{"Product.Name":"Premium support package","Product.Quantity":"1","Product.UnitPrice":"$500.00","Product.Total":"$500.00"}]},"linked_objects":[{"integration":"salesforce","entity_type":"opportunity","record_id":"0065g00000Vh123ABC","reference_url":"https://your-crm-instance.example.com/record/001XXXXXXXXX"}],"signer_roles":[{"name":"Tenant","preassigned_signer":{"name":"Alice Nguyen","email_address":"[email protected]"}},{"name":"Landlord","preassigned_signer":{"name":"Brian Tran","email_address":"[email protected]"}}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"6cba7435-ab9a-4cc5-812a-cbd4d71551ff":{"description":"Returns the Agreement summary object data","content":{"application/json":{"schema":{"type":"object","required":["id","name","created_at"],"properties":{"id":{"type":"string","description":"The unique identifier for the agreement.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"name":{"type":"string","description":"The name of the agreement.","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"created_at":{"type":"integer","format":"unix-epoch","description":"The time the agreement was created (Unix timestamp in milliseconds).","isRequired":true,"uniqueKey":"created_at","typeLabel":"integer\u003cunix-epoch>"},"preview_url":{"type":"string","format":"uri","description":"The URL to preview the agreement in the browser.","uniqueKey":"preview_url","typeLabel":"string\u003curi>"},"linked_objects":{"type":"array","description":"CRM or external objects linked to the agreement.","items":{"type":"object","properties":{"integration":{"type":"string","description":"The external system or integration where the linked object lives. Example: salesforce, hubspot.\n","uniqueKey":"linked_objects.items.[INDEX].integration","typeLabel":"string"},"entity_type":{"type":"string","description":"The type of the linked object in that provider's data model. Example: opportunity, contact, deal.\n","uniqueKey":"linked_objects.items.[INDEX].entity_type","typeLabel":"string"},"record_id":{"type":"string","description":"The unique identifier of the linked object in the provider system. Example: 0065g00000Vh123ABC (Salesforce record ID).\n","uniqueKey":"linked_objects.items.[INDEX].record_id","typeLabel":"string"},"reference_url":{"type":"string","format":"uri","description":"The reference URL of the linked object in the provider system.","uniqueKey":"linked_objects.items.[INDEX].reference_url","typeLabel":"string\u003curi>"}},"uniqueKey":"linked_objects.items.[INDEX]","typeLabel":"object"},"uniqueKey":"linked_objects","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","name":"\u003cstring>","created_at":123,"preview_url":"\u003cstring>","linked_objects":[{"integration":"\u003cstring>","entity_type":"\u003cstring>","record_id":"\u003cstring>","reference_url":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"e1c8a6c6-b363-4148-b5b3-c7071c18a198":{"description":"Unexpected error","content":{"application/json":{"schema":{"type":"object","required":["error_code","error_message"],"properties":{"error_code":{"type":"string","description":"The system error code.","isRequired":true,"uniqueKey":"error_code","typeLabel":"string"},"error_message":{"type":"string","description":"The human-readable error message.","isRequired":true,"uniqueKey":"error_message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error_code":"\u003cstring>","error_message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"2bcf7f61-769b-4d64-8de0-307aad25168c":{"ApiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Provide your API key in the `X-API-Key` header, e.g., `X-API-Key: YOUR_API_KEY`.\n","scopes":[]}},"1f0fe2f7-ab93-4a4b-90c1-643652881701":{"BearerAuth":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://auth.luminpdf.com/oauth2/auth","tokenUrl":"https://auth.luminpdf.com/oauth2/token","scopes":{"openid":"Retrieve basic identity details (username, email, profile picture).","offline_access":"Request a refresh token for long-lived access. Private apps only.","profile.read":"View basic user profile information.","workspaces":"View and manage Workspaces and Spaces.","workspaces.read":"View information about the authenticated user's Workspace.","templates":"View and manage templates in a Workspace.","pdf:files":"Create, edit, and delete PDF files in a Workspace.","pdf:files.read":"Retrieve PDF documents stored in a Workspace.","sign:requests":"Create, update, or view signature requests.","sign:requests.read":"Retrieve signature requests.","agreements":"Create, update, or delete AgreementGen documents."}}},"description":"OAuth 2.0 authorization code flow. Provide your access token in the `Authorization` header, e.g., `Authorization: Bearer \u003ctoken>`. See the [OAuth 2.0 guide](/tabs/guides/authentication/oauth2) for details.\n","scopes":["agreements"]}}},"servers":{"5d5d29d0-7468-455e-aa18-a9b021396aa8":{"url":"https://api.luminpdf.com/v1","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Provide your API key in the `X-API-Key` header, e.g., `X-API-Key: YOUR_API_KEY`.\n","scopes":[]},"schema":{"title":"X-API-Key","type":"string","description":"Provide your API key in the `X-API-Key` header, e.g., `X-API-Key: YOUR_API_KEY`.\n","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"X-API-Key"}],"title":"ApiKey"},{"schemes":[{"scheme":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://auth.luminpdf.com/oauth2/auth","tokenUrl":"https://auth.luminpdf.com/oauth2/token","scopes":{"openid":"Retrieve basic identity details (username, email, profile picture).","offline_access":"Request a refresh token for long-lived access. Private apps only.","profile.read":"View basic user profile information.","workspaces":"View and manage Workspaces and Spaces.","workspaces.read":"View information about the authenticated user's Workspace.","templates":"View and manage templates in a Workspace.","pdf:files":"Create, edit, and delete PDF files in a Workspace.","pdf:files.read":"Retrieve PDF documents stored in a Workspace.","sign:requests":"Create, update, or view signature requests.","sign:requests.read":"Retrieve signature requests.","agreements":"Create, update, or delete AgreementGen documents."}}},"description":"OAuth 2.0 authorization code flow. Provide your access token in the `Authorization` header, e.g., `Authorization: Bearer \u003ctoken>`. See the [OAuth 2.0 guide](/tabs/guides/authentication/oauth2) for details.\n","scopes":["agreements"]},"schema":{"title":"OAuth2 Auth","type":"string","isRequired":true,"description":"OAuth 2.0 authorization code flow. Provide your access token in the `Authorization` header, e.g., `Authorization: Bearer \u003ctoken>`. See the [OAuth 2.0 guide](/tabs/guides/authentication/oauth2) for details.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"tabs/api-reference/lumin-openapi.yaml"},"subdomain":"luminpdf-82c12c3f","siteName":"Lumin Developer Docs","title":"Create Agreement - Lumin Developer Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-27T13:10:51.427Z","originalFileLocation":"tabs/api-reference/api/agreements/create-agreement.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=\"Create a new AgreementGen document from a AgreementGen template.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lumin Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/luminpdf-82c12c3f/pSGZfwsnYnu5RQbc/_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/luminpdf-82c12c3f/pSGZfwsnYnu5RQbc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/luminpdf-82c12c3f/pSGZfwsnYnu5RQbc/_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/luminpdf-82c12c3f/pSGZfwsnYnu5RQbc/_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/luminpdf-82c12c3f/pSGZfwsnYnu5RQbc/_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/luminpdf-82c12c3f/pSGZfwsnYnu5RQbc/_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/luminpdf-82c12c3f/pSGZfwsnYnu5RQbc/_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/luminpdf-82c12c3f/pSGZfwsnYnu5RQbc/_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/luminpdf-82c12c3f/pSGZfwsnYnu5RQbc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Agreement - Lumin Developer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new AgreementGen document from a AgreementGen template.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lumin Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/create-agreement\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://luminpdf-82c12c3f.mintlify.app/_mintlify/api/og/v2?division=Agreements\u0026amp;title=Create+Agreement\u0026amp;description=Create+a+new+AgreementGen+document+from+a+AgreementGen+template.\u0026amp;theme=4aee959671d2808ae59aaacd\u0026amp;signature=66c18d3ecfa30b303e257bb8553032c31c8eddf4135605614d03258e8c8ef444\">\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=\"Create Agreement - Lumin Developer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new AgreementGen document from a AgreementGen template.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://luminpdf-82c12c3f.mintlify.app/_mintlify/api/og/v2?division=Agreements\u0026amp;title=Create+Agreement\u0026amp;description=Create+a+new+AgreementGen+document+from+a+AgreementGen+template.\u0026amp;theme=4aee959671d2808ae59aaacd\u0026amp;signature=66c18d3ecfa30b303e257bb8553032c31c8eddf4135605614d03258e8c8ef444\">\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/luminpdf-82c12c3f/pSGZfwsnYnu5RQbc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lumin Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#171717\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/create-agreement\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tabs/api-reference/api/agreements/create-agreement.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.luminpdf.com/#organization\",\"name\":\"Lumin Developer Docs\",\"url\":\"https://developers.luminpdf.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/luminpdf-82c12c3f/S8lnm3z-VpB7-Jo7/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=S8lnm3z-VpB7-Jo7\u0026q=85\u0026s=7efd61a54cbb6df606831ac070f96525\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.luminpdf.com#website\",\"name\":\"Lumin Developer Docs\",\"url\":\"https://developers.luminpdf.com\",\"publisher\":{\"@id\":\"https://developers.luminpdf.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/create-agreement#webpage\",\"url\":\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/create-agreement\",\"name\":\"Create Agreement\",\"description\":\"Create a new AgreementGen document from a AgreementGen template.\",\"dateModified\":\"2026-05-27T13:10:51.427Z\",\"isPartOf\":{\"@id\":\"https://developers.luminpdf.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/create-agreement#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/create-agreement#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lumin API reference\",\"item\":\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/agreements\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agreements\",\"item\":\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/agreements\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create Agreement\",\"item\":\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/create-agreement\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/create-agreement#apireference\",\"headline\":\"Create Agreement\",\"name\":\"Create Agreement\",\"description\":\"Create a new AgreementGen document from a AgreementGen template.\",\"url\":\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/create-agreement\",\"mainEntityOfPage\":{\"@id\":\"https://developers.luminpdf.com/tabs/api-reference/api/agreements/create-agreement#webpage\"},\"dateModified\":\"2026-05-27T13:10:51.427Z\",\"publisher\":{\"@id\":\"https://developers.luminpdf.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.luminpdf.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lumin Developer Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Lumin Developer Docs","nav":{"global":{"anchors":[{"anchor":"Terms of Use","icon":"newspaper","href":"https://www.luminpdf.com/terms-of-use"},{"anchor":"Help Center","icon":"circle-question","href":"https://help.luminpdf.com/"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/tabs/guides/getting-started"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Lumin API Reference","sidebarTitle":"Introduction","href":"/tabs/api-reference/api/lumin-api-reference"}]},{"group":"Lumin API reference","pages":[{"group":"Agreements","expanded":false,"pages":[{"title":"Agreements","sidebarTitle":"Overview","description":"Generate and download AgreementGen documents from templates.","href":"/tabs/api-reference/api/agreements/agreements"},{"title":"Create Agreement","openapi":"POST /agreements","href":"/tabs/api-reference/api/agreements/create-agreement"},{"title":"Get Agreement File","description":"Obtain a downloadable file or binary PDF data from an AgreementGen document.","openapi":"GET /agreements/{agreement_id}/file","href":"/tabs/api-reference/api/agreements/get-agreement-file"}]},{"group":"Signature requests","expanded":false,"pages":[{"title":"Signature Requests","sidebarTitle":"Overview","href":"/tabs/api-reference/api/signature-requests/signature-requests"},{"title":"Get Signature Request","openapi":"GET /signature_request/{signature_request_id}","href":"/tabs/api-reference/api/signature-requests/get-signature-request"},{"title":"Update Signature Request","openapi":"PATCH /signature_request/{signature_request_id}","href":"/tabs/api-reference/api/signature-requests/update-signature-request"},{"title":"Send Signature Request","openapi":"POST /signature_request/send","href":"/tabs/api-reference/api/signature-requests/send-signature-request"},{"title":"Send Signature Request from Template","openapi":"POST /signature_request/send-from-template","href":"/tabs/api-reference/api/signature-requests/send-signature-request-from-template"},{"title":"Get Signing Link","openapi":"POST /signature_request/{signature_request_id}/signing-link","href":"/tabs/api-reference/api/signature-requests/get-signing-link"},{"title":"Create Signing Session","openapi":"POST /signature_request/{signature_request_id}/signing-session","href":"/tabs/api-reference/api/signature-requests/create-signing-session"},{"title":"Send Reminder Emails","openapi":"POST /signature_request/remind/{signature_request_id}","href":"/tabs/api-reference/api/signature-requests/send-reminder-emails"},{"title":"Cancel Signature Request","openapi":"PUT /signature_request/cancel/{signature_request_id}","href":"/tabs/api-reference/api/signature-requests/cancel-signature-request"},{"title":"Get Signature Request File","openapi":"GET /signature_request/{signature_request_id}/file","href":"/tabs/api-reference/api/signature-requests/get-signature-request-file"}]},{"group":"Templates","expanded":false,"pages":[{"title":"Templates","sidebarTitle":"Overview","href":"/tabs/api-reference/api/templates/templates"},{"title":"List Templates","openapi":"GET /templates","href":"/tabs/api-reference/api/templates/list-templates"},{"title":"Get Template Details","openapi":"GET /templates/{template_id}","href":"/tabs/api-reference/api/templates/get-template-details"},{"title":"Generate Document from Template","openapi":"POST /templates/{template_id}/generate-document","href":"/tabs/api-reference/api/templates/generate-document-from-template"}]},{"group":"Documents","expanded":false,"pages":[{"title":"Documents","sidebarTitle":"Overview","href":"/tabs/api-reference/api/documents/documents"},{"title":"Upload Document","openapi":"tabs/api-reference/lumin-openapi.yaml POST /documents","href":"/tabs/api-reference/api/documents/create-document"},{"title":"Merge Documents","openapi":"tabs/api-reference/lumin-openapi.yaml POST /documents/merge","href":"/tabs/api-reference/api/documents/merge-documents"},{"title":"Compress Document","openapi":"tabs/api-reference/lumin-openapi.yaml POST /documents/compress","href":"/tabs/api-reference/api/documents/compress-document"},{"title":"Split Document","openapi":"tabs/api-reference/lumin-openapi.yaml POST /documents/split","href":"/tabs/api-reference/api/documents/split-document"},{"title":"Add Password","openapi":"tabs/api-reference/lumin-openapi.yaml POST /documents/add-password","href":"/tabs/api-reference/api/documents/add-password"},{"title":"Remove Password","openapi":"tabs/api-reference/lumin-openapi.yaml POST /documents/remove-password","href":"/tabs/api-reference/api/documents/remove-password"},{"title":"Summarize Document","openapi":"tabs/api-reference/lumin-openapi.yaml POST /documents/summarize","href":"/tabs/api-reference/api/documents/summarize-document"},{"title":"Translate Document","openapi":"tabs/api-reference/lumin-openapi.yaml POST /documents/translate","href":"/tabs/api-reference/api/documents/translate-document"}]},{"group":"Workspaces","expanded":false,"pages":[{"title":"Workspaces","sidebarTitle":"Overview","href":"/tabs/api-reference/api/workspaces/workspaces"},{"title":"Get Workspace Information","openapi":"GET /workspaces/info","href":"/tabs/api-reference/api/workspaces/get-workspace-information"},{"title":"Get Workspace Members","openapi":"GET /workspaces/members","href":"/tabs/api-reference/api/workspaces/get-workspace-members"},{"title":"List Spaces","openapi":"GET /workspaces/spaces","href":"/tabs/api-reference/api/workspaces/list-spaces"},{"title":"Create Space","openapi":"POST /workspaces/spaces","href":"/tabs/api-reference/api/workspaces/create-space"}]},{"group":"Users","expanded":false,"pages":[{"title":"Users","sidebarTitle":"Overview","href":"/tabs/api-reference/api/users/users"},{"title":"Get User Information","openapi":"GET /user/info","href":"/tabs/api-reference/api/users/get-user-information"}]}]}]},{"tab":"Lumin MCP","pages":[{"title":"Lumin MCP","href":"/tabs/mcp/client"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/tabs/changelog"}]}]},"basePath":"","title":"Create Agreement - Lumin Developer Docs","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}