RoboLedger: Ledger & Events
Create Event Handler
Define a rule that fires GL transactions when a matching event block is created with apply_handlers=True. Match criteria (event_type, event_category, match_source, match_agent_type, etc.) act as AND-joined filters — null fields match anything. The highest-priority matching handler wins. AI-suggested handlers (suggested_by='ai') require approval before they are eligible for matching.
Idempotency: supply an Idempotency-Key header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
post/extensions/roboledger/{graph_id}/operations/create-event-handler
Request
- Base URL: https://api.robosystems.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.robosystems.ai/extensions/roboledger/{graph_id}/operations/create-event-handler
- Auth: one of:
- API key in header X-API-Key
- HTTP bearer
Path parameters
graph_idstring required
Headers
Idempotency-Keystring nullable
Request body
Example request
{
"event_type": "vendor_bill_received",
"match_source": "quickbooks",
"name": "QB Vendor Bill — Default Expense Posting",
"priority": 0,
"transaction_template": {
"transactions": [
{
"entry_template": {
"credit": {
"amount": "{{ event.amount }}",
"element_id": "elem_coa_accounts_payable"
},
"debit": {
"amount": "{{ event.amount }}",
"element_id": "elem_coa_office_supplies"
}
}
}
]
}
}Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.