Skip to main content

Document Generator (/api/v1/doc-generator)

Generate professional PDF documents for various business use cases.

All endpoints require authentication via X-API-Key and consume credits (DOC_GENERATION).

Generate a Document

  • Method: POST
  • Endpoint: /api/v1/doc-generator/:type

Supported Document Types

TypeDescription
ndaNon-Disclosure Agreement
financial-summaryFinancial Summary Report
employment-contractEmployment Contract
service-agreementService Agreement
offer-letterJob Offer Letter

Each document type accepts a JSON body with the relevant fields for that document.

curl -X POST https://api.riskinmind.ai/api/v1/doc-generator/nda \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"party_a": "Company A",
"party_b": "Company B",
"effective_date": "2025-01-01"
}' --output nda.pdf

Response

  • Content-Type: application/pdf
  • Returns: Binary PDF stream (<type>-document.pdf)