Draft an appeal letter (Pro or Scale plan)
draft_appealGenerate an appeal letter for a denial, assembled deterministically from cited facts. REQUIRES A PRO OR SCALE PLAN. Called by an anonymous caller or a key on the free plan, this returns an upgrade_required error naming the pricing page - it never fabricates or partially generates a letter for a caller who cannot access the feature. The letter argues the billing question only: it never asserts anything about the patient's clinical condition. Any fact only the practice holds (providerName, claimNumber, dateOfService, codes, the signature) that is not supplied is rendered as an explicit "[TO BE COMPLETED BY PRACTICE]" placeholder in the letter body and listed by name in placeholders, never invented. grounded is true only when we hold the CARC supplied and could argue it with our own corrective-action data; when false, the letter still assembles around payer/claim details and any practiceNote given, but the substantive grounds section is left as a placeholder for the practice to write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| carc | Yes | CARC code from the remittance, e.g. "CO-45" or "45". | |
| rarc | No | Optional RARC codes on the same remittance line. | |
| codes | No | Optional procedure codes at issue, numeric reference only. | |
| payerSlug | No | Optional payer slug, to cite that payer's appeal policy and window. | |
| claimNumber | No | Optional. Rendered as a placeholder if omitted. | |
| practiceNote | No | Optional free-text detail from the practice, appended to the argument section. | |
| providerName | No | Optional. Rendered as a placeholder if omitted. | |
| dateOfService | No | Optional, ISO yyyy-mm-dd. Rendered as a placeholder if omitted. |