documents

Create a PDF document from markdown

Render an uploaded markdown file into a stored HEVN-generated PDF.

post/api/v1/documents/create

Headers

x-api-keystring nullable

Request body

namestring

Human-readable document title.

originNamestring nullable

Human-readable final filename with spaces and extension, for example 'Mutual NDA - Client Inc and HEVN Inc.pdf'. Do not use snake_case or slug text.

documentType'certificate_of_incorporation' | 'formation_document' | 'articles_of_incorporation' | 'power_of_attorney' | 'corporate_structure' | 'company_registry_extract' | 'corporate_registry_extract' | 'shareholder_registry' | 'director_structure' | 'proof_of_address' | 'utility_bill' | 'annual_financial_statements' | 'articles_of_association' | 'audit_report' | 'bank_reference_letter' | 'bank_statement' | 'banking_details' | 'birth_certificate' | 'business_license' | 'business_plan' | 'certificate_of_good_standing' | 'crypto_statement' | 'credit_report' | 'criminal_record_check' | 'cv_resume' | 'driving_license' | 'education_certificate' | 'financial_projections' | 'investment_statement' | 'insurance_policy' | 'lease_agreement' | 'list_of_authorized_signatories' | 'marriage_certificate' | 'national_id' | 'operating_agreement' | 'partnership_agreement' | 'professional_license' | 'regulatory_license' | 'reference_letter' | 'register_of_members' | 'residence_permit' | 'shareholding_structure' | 'shareholders_agreement' | 'social_security_document' | 'source_of_funds_declaration' | 'tax_identification_document' | 'tax_compliance_form' | 'tax_returns' | 'payslip' | 'pitch_deck' | 'savings_statement' | 'trade_references' | 'vat_registration' | 'vendor_contracts' | 'visa' | 'wealth_statement' | 'contract' | 'invoice' | 'loan_agreement' | 'subscription_agreement' | 'safe_agreement' | 'convertible_note' | 'promissory_note' | 'marketing_material' | 'employment_contract' | 'authorization_to_act' | 'authority_to_bind' | 'income_verification_letter' | 'source_of_funds' | 'source_of_wealth' | 'supporting_document' | 'memorandum' | 'passport_front' | 'passport_back' | 'id_card_front' | 'id_card_back' | 'drivers_license_front' | 'drivers_license_back' | 'residence_permit_front' | 'residence_permit_back' | 'other'

Open internal document type; providers map it to their own taxonomy.

contextstring nullable

Document context stored with the document row.

titlestring nullable

Optional render title. Defaults to name.

markdownBase64string required

Base64-encoded UTF-8 markdown file content.

outputFormat'pdf' | 'docx'

Response

Successful Response

idstring required
type'certificate_of_incorporation' | 'formation_document' | 'articles_of_incorporation' | 'power_of_attorney' | 'corporate_structure' | 'company_registry_extract' | 'corporate_registry_extract' | 'shareholder_registry' | 'director_structure' | 'proof_of_address' | 'utility_bill' | 'annual_financial_statements' | 'articles_of_association' | 'audit_report' | 'bank_reference_letter' | 'bank_statement' | 'banking_details' | 'birth_certificate' | 'business_license' | 'business_plan' | 'certificate_of_good_standing' | 'crypto_statement' | 'credit_report' | 'criminal_record_check' | 'cv_resume' | 'driving_license' | 'education_certificate' | 'financial_projections' | 'investment_statement' | 'insurance_policy' | 'lease_agreement' | 'list_of_authorized_signatories' | 'marriage_certificate' | 'national_id' | 'operating_agreement' | 'partnership_agreement' | 'professional_license' | 'regulatory_license' | 'reference_letter' | 'register_of_members' | 'residence_permit' | 'shareholding_structure' | 'shareholders_agreement' | 'social_security_document' | 'source_of_funds_declaration' | 'tax_identification_document' | 'tax_compliance_form' | 'tax_returns' | 'payslip' | 'pitch_deck' | 'savings_statement' | 'trade_references' | 'vat_registration' | 'vendor_contracts' | 'visa' | 'wealth_statement' | 'contract' | 'invoice' | 'loan_agreement' | 'subscription_agreement' | 'safe_agreement' | 'convertible_note' | 'promissory_note' | 'marketing_material' | 'employment_contract' | 'authorization_to_act' | 'authority_to_bind' | 'income_verification_letter' | 'source_of_funds' | 'source_of_wealth' | 'supporting_document' | 'memorandum' | 'passport_front' | 'passport_back' | 'id_card_front' | 'id_card_back' | 'drivers_license_front' | 'drivers_license_back' | 'residence_permit_front' | 'residence_permit_back' | 'other' required

Open internal document type; providers map it to their own taxonomy.

namestring nullable
originNamestring nullable
linkstring nullable
createdAtstring date-time nullable
issueDatestring date nullable
expiryDatestring date nullable
contentobject nullable
dakotaIdstring nullable

Changes