Skip to main content
POST
/
api
/
optimizer-x12-denials
cURL
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

Body

application/json
edi
string[]
required
patientControlNumbers
string[]

Response

id
string
patientControlNumber
string
apiStatus
string
createdAt
string<date-time>