Skip to main content
POST
Import a contract document

Authorizations

session
string
cookie
required

Session cookie obtained from POST /api/auth/login.

Body

multipart/form-data
file
file
required

Contract file (PDF or Word .docx/.doc, max 10 MB)

Response

Analyzed contract

markdownTemplate
string
required

The complete contract converted to Markdown, with detected values replaced by {{variable}} placeholders.

Example:

"# Solar Installation Agreement\n\nThis agreement is between {{full_name}} of {{address}} and {{company_name}}..."

detectedVariables
object[]
required

Variables detected in the document and replaced in the template.

summary
string
required

One sentence describing the contract type.

Example:

"A residential solar installation agreement."