Browse the extensions reference

eventHandler

returns EventHandler

One event handler, or null.

Arguments

NameTypeDescription
idString!The handler's id (hdl_-prefixed).

Returns EventHandler

A rule that turns a matching event into GL rows.

FieldTypeDescription
idString!Handler id (hdl_-prefixed).
nameString!Human-readable handler name.
descriptionStringWhat the handler is for.
eventTypeString!The event type the handler matches.
eventCategoryStringMatch on the event's category; null matches any.
matchSourceStringMatch on the event's source system; null matches any.
matchAgentTypeStringMatch on the counterparty's role; null matches any.
matchResourceTypeStringMatch on the resource type; null matches any.
matchMetadataExpressionJSONEquality matches against the event's metadata.
transactionTemplateJSON!The GL rows the handler books: its DSL template, as JSON.
priorityInt!Among handlers that match, the highest priority wins.
isActiveBoolean!Whether the handler takes part in matching at all.
originString!hub for a platform-shipped handler, tenant otherwise.
suggestedByStringai when an AI client created the handler or last changed what it matches or books; null when a person did.
confidenceFloatThe suggesting AI's confidence, when it gave one.
approvedByStringThe user who approved an AI-suggested handler.
approvedAtDateTimeWhen it was approved.
awaitingApprovalBoolean!True for an AI-suggested handler no one has approved: it takes no part in matching until a person approves it.
createdAtDateTimeWhen it was created.
updatedAtDateTimeWhen it last changed.
createdByStringThe user who created it.

Example

query
{ eventHandler(id: "rec_...") { id name description eventType } }
curl
curl -X POST "https://api.robosystems.ai/extensions/$GRAPH_ID/graphql" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "{ eventHandler(id: \"rec_...\") { id name description eventType } }"}'