POST
/
api
/
optimizer-x12-denials
curl --request POST \
  --url https://forecaster.cairhealth.com/api/optimizer-x12-denials \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "edi": [
    "EDI_STRING_1",
    "EDI_STRING_2"
  ],
  "patientControlNumbers": [
    "PCN12345",
    "PCN67890"
  ]
}'
[
  {
    "id": "1234abcd-56ef-78gh-90ij-klmnopqrstuv",
    "patientControlNumber": "98765432",
    "apiStatus": "PROCESSING_EDI",
    "createdAt": "2025-04-07T19:00:00.000Z"
  },
  {
    "id": "5678wxyz-12ab-34cd-56ef-ghijklmnopqr",
    "patientControlNumber": "12345678",
    "apiStatus": "PROCESSING_EDI",
    "createdAt": "2025-04-07T20:00:00.000Z"
  }
]

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

EDI data and patient control numbers for processing. Should contain all 837s and 835s, and patient control numbers for the claims to optimize.

The body is of type object.

Response

200
application/json

Array of objects containing data of processed claims.

The response is of type object[].