Overview
This endpoint generates a Letter of Medical Necessity (LMN) from uploaded procedure notes using AI analysis. The letter can be returned in two formats:- Text format (default): Returns the letter content as plain text markdown
- PDF format: Returns a professionally formatted PDF document with proper letter layout, including header, patient information, body content, signature, and footer
Output Formats
Text Format (output_format: "text" or omitted)
When requesting text format, the response includes a letter field containing the markdown-formatted letter content.
PDF Format (output_format: "pdf")
When requesting PDF format, the response includes a fileContent field containing a base64-encoded PDF document. The PDF includes:
- Professional letter header with center name, contact information, and date
- Patient information section
- Formatted letter body with proper text wrapping
- Signature section with expert name
- Footer with generation timestamp
Authorizations
Body
application/json
Example:
Example:
Available options:
text, pdf 
