Create a rule
POST
/v1/rulesTell Daybook what to do when something happens: your rule, written once, applied to every account.
Used in Claim status2 use cases
Call this with AIA brief with this endpoint's request, response and auth, ready for a typed client in your language.
Body
namestringrequiredwhenobjectrequiredThe trigger: an event type, or a condition on worklist items.Properties
eventstringAn event type, such asdenial.classified.conditionstringA condition, such asdays_since_submission >= 30 and status == "no_response".filterobjectNarrow it, such as{"cause": "missing_auth"}.
thenobjectrequiredThe action.Properties
actionstringrequiredclaim_status.check,call.start,portal_task.start,appeal.draftornotify.paramsobjectFields for the action, as in its own endpoint.
Try itEdit the fields and copy the request. Nothing is sent from this page.
curl -X POST https://api.daybookhealthcare.com/v1/rules \
-H "Authorization: Bearer $DAYBOOK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Chase silent claims",
"when": {
"condition": "days_since_submission >= 30 and status == \"no_response\""
},
"then": {
"action": "claim_status.check"
}
}'Response
idstringUnique id, prefixedrule_.activeboolean
curl -X POST https://api.daybookhealthcare.com/v1/rules \
-H "Authorization: Bearer $DAYBOOK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Chase silent claims",
"when": {
"condition": "days_since_submission >= 30 and status == \"no_response\""
},
"then": {
"action": "claim_status.check"
}
}'{
"id": "rule_01JBXJ1",
"object": "rule",
"name": "Chase silent claims",
"active": true
}
