Skip to main content
POST
/
api
/
draft-claim-from-notes
cURL
curl --request POST \
  --url https://forecaster.cairhealth.com/api/draft-claim-from-notes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "fileContent": "<string>",
  "claimType": "<string>"
}'
{
  "success": true,
  "claim_optimizer_id": "12345678-1234-1234-1234-123456789012"
}

Delivery

To receive results from this endpoint, you have two options: Webhooks or the Poll Optimizer Runs API.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Procedure notes content and claim type

fileContent
string
required

Base64 encoded content of the procedure notes file

claimType
string
required

Type of claim to be drafted (e.g., 'professional', 'institutional')

Response

Claim drafted successfully

success
boolean

Indicates if the operation was successful

claim_optimizer_id
string

ID of the created optimizer run