Create a lease template
Creates a lease template from a PDF you have already uploaded. The uploadSessionId comes from the template upload-session endpoint; place the signer slots and boxes afterwards with the update endpoint.
Authorization
AuthorizationstringrequiredBody
application/json
leaseTemplateCategoryIdstringrequiredThe category to put the template in. A Snowflake id, sent as a decimal string.
namestringrequiredTemplate name. 1 to 150 characters.
uploadSessionIdstringrequiredThe upload session the PDF was sent to. A Snowflake id, sent as a decimal string.
descriptionstringWhat the template is for. Up to 1000 characters.
typeenum<string>What the template is used for. Defaults to lease.
Response
200 · The template that was created.
idstringId of the template. A Snowflake id, sent as a decimal string.
leaseTemplateCategoryIdstringThe category the template sits in. A Snowflake id, sent as a decimal string.
namestringTemplate name.
descriptionstringWhat the template is for.
typeenum<string>What the template is used for: a lease, a leaseRenewal, a lateRentNotice, an eviction notice, a signatureOnly page, or an information sheet.
isDefaultbooleanTrue for MagicDoor's built-in templates, false for ones the company added.
signersLeaseTemplateSigner[]The signer slots defined on the template.
annotationsLeaseDocumentAnnotation[]The boxes placed on the template's PDF.
fileobjectThe template's stored PDF.
fileIdstringdeprecatedUse file.id.
fileNamestringdeprecatedUse file.name.
fileExtensionstringdeprecatedUse file.extension.
signedUrlstringdeprecatedUse file.secureUrl.raw.
contentTypestringdeprecatedUse file.contentType.
fileSizeintegerdeprecatedUse file.size.