Skip to main content

Event Catalog API

Manages the catalog of business events available in epilot

Quick Start​

# List available operations
epilot event-catalog

# Call an operation
epilot event-catalog listEvents

Common Flags​

FlagDescription
-p key=valueSet a named parameter
-d '{...}'Request body JSON
-H 'Key: Value'Custom header
-t, --token <token>Bearer token for authentication
--profile <name>Use a named profile
-s, --server <url>Override server base URL
-i, --includeInclude response headers in output
--jsonOutput raw JSON (no formatting)
-v, --verboseVerbose output (show request details)
--jsonata <expr>JSONata expression to transform response
--definition <file>Override OpenAPI spec file/URL
--guidedPrompt for all parameters interactively
--no-interactiveDisable interactive prompts

Operations​

Event Catalog

  • listEvents — Retrieve list of available business events
  • createCustomEvent — Reserve an org-scoped custom event name and persist its immutable v1.0 draft definition. Custom events are always projec
  • getEvent — Retrieve the configuration of a specific business event
  • replaceCustomEventDraft — Replace the complete v1.0 definition of an org-scoped custom event while it is still an
  • patchEvent — Update the configuration of a specific business event for the organization
  • deprecateCustomEvent — Soft-deprecate an org-scoped custom event. Definitions and v1.0 history remain readable.
  • previewCustomEvent — Assemble and fully validate a persisted custom-event draft without publishing it.
  • publishCustomEventDefinition — Conditionally activate an immutable custom-event v1.0 definition.
  • getEventJSONSchema — Retrieve the JSON Schema of a specific business event. Pass an optional
  • getEventExample — Generate a sample event payload based on the event's JSON Schema. Pass an
  • listEventVersions — List every known version of an event, along with the latest
  • searchEventHistory — Paginated history of events
  • searchEventHistoryV2 — Paginated history of events with projected/lightweight payload (v2).
  • getHistoricalEvent — Fetch a single historical event by id with full hydration
  • triggerEvent — Explicitly trigger an event by providing input field values and an optional entity seed

listEvents​

Retrieve list of available business events

GET /v1/events

Sample Call

epilot event-catalog listEvents

With JSONata filter:

epilot event-catalog listEvents --jsonata 'results[0]'
Sample Response
{
"results": [
{
"event_name": "AddMeterReading",
"event_title": "Add Meter Reading",
"event_description": "Triggered when a new meter reading is added",
"event_version": "1.0",
"event_status": "active",
"event_tags": ["builtin", "metering", "erp"],
"schema_fields": {},
"entity_graph": {
"nodes": [
{
"id": "contact",
"schema": "contact",
"cardinality": "one",
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
}
],
"edges": [
{
"from": "contact",
"to": "billing_account"
}
]
},
"entity_operation": {
"operation": ["createEntity", "updateEntity"],
"schema": ["contact", "contract", "order"],
"attribute": ["email", "phone", "status"],
"purpose": ["Kündigung", "Umzug/Auszug"],
"purpose_filters": [
{
"id": "string",
"display_name": "string"
}
]
},
"enabled": true,
"auto_trigger": true,
"automation_trigger": true,
"api_trigger": true,
"automation_trigger_only": true,
"automation_trigger_seed_node": "ticket",
"event_origin": "builtin",
"mapping": {
"mode": "guided",
"jsonata": "string"
},
"lineage": {
"base_event_name": "string",
"base_event_version": "string"
},
"success_criteria": [
{
"entity_schema": "contract",
"attribute": "installment_amount"
},
{
"entity_schema": "billing_account",
"attribute": "due_date"
}
]
}
]
}

createCustomEvent​

Reserve an org-scoped custom event name and persist its immutable v1.0 draft definition. Custom events are always projec

POST /v1/events

Request Body (required)

Sample Call

epilot event-catalog createCustomEvent

With request body:

epilot event-catalog createCustomEvent \
-d '{
"event_name": "string",
"event_title": "string",
"event_description": "string",
"event_tags": ["string"],
"schema_fields": {},
"entity_graph": {
"nodes": [
{
"id": "contact",
"schema": "contact",
"cardinality": "one",
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
}
],
"edges": [
{
"from": "contact",
"to": "billing_account"
}
]
},
"entity_operation": {
"operation": ["createEntity", "updateEntity"],
"schema": ["contact", "contract", "order"],
"attribute": ["email", "phone", "status"],
"purpose": ["Kündigung", "Umzug/Auszug"],
"purpose_filters": [
{
"id": "string",
"display_name": "string"
}
]
},
"automation_trigger": true,
"api_trigger": true,
"automation_trigger_only": false,
"automation_trigger_seed_node": "string",
"mapping": {
"mode": "guided",
"jsonata": "string"
},
"lineage": {
"base_event_name": "string",
"base_event_version": "string"
},
"example": {}
}'

Using stdin pipe:

cat body.json | epilot event-catalog createCustomEvent

With JSONata filter:

epilot event-catalog createCustomEvent --jsonata '$'
Sample Response
{
"event_name": "AddMeterReading",
"event_title": "Add Meter Reading",
"event_description": "Triggered when a new meter reading is added",
"event_version": "1.0",
"event_status": "active",
"event_tags": ["builtin", "metering", "erp"],
"schema_fields": {},
"entity_graph": {
"nodes": [
{
"id": "contact",
"schema": "contact",
"cardinality": "one",
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
}
],
"edges": [
{
"from": "contact",
"to": "billing_account"
}
]
},
"entity_operation": {
"operation": ["createEntity", "updateEntity"],
"schema": ["contact", "contract", "order"],
"attribute": ["email", "phone", "status"],
"purpose": ["Kündigung", "Umzug/Auszug"],
"purpose_filters": [
{
"id": "string",
"display_name": "string"
}
]
},
"enabled": true,
"auto_trigger": true,
"automation_trigger": true,
"api_trigger": true,
"automation_trigger_only": true,
"automation_trigger_seed_node": "ticket",
"event_origin": "builtin",
"mapping": {
"mode": "guided",
"jsonata": "string"
},
"lineage": {
"base_event_name": "string",
"base_event_version": "string"
},
"success_criteria": [
{
"entity_schema": "contract",
"attribute": "installment_amount"
},
{
"entity_schema": "billing_account",
"attribute": "due_date"
}
]
}

getEvent​

Retrieve the configuration of a specific business event

GET /v1/events/{event_name}

Parameters

NameInTypeRequiredDescription
event_namepathstringYesUnique human readable name of the event

Sample Call

epilot event-catalog getEvent \
-p event_name=example

Using positional args for path parameters:

epilot event-catalog getEvent example

With JSONata filter:

epilot event-catalog getEvent -p event_name=example --jsonata '$'
Sample Response
{
"event_name": "AddMeterReading",
"event_title": "Add Meter Reading",
"event_description": "Triggered when a new meter reading is added",
"event_version": "1.0",
"event_status": "active",
"event_tags": ["builtin", "metering", "erp"],
"schema_fields": {},
"entity_graph": {
"nodes": [
{
"id": "contact",
"schema": "contact",
"cardinality": "one",
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
}
],
"edges": [
{
"from": "contact",
"to": "billing_account"
}
]
},
"entity_operation": {
"operation": ["createEntity", "updateEntity"],
"schema": ["contact", "contract", "order"],
"attribute": ["email", "phone", "status"],
"purpose": ["Kündigung", "Umzug/Auszug"],
"purpose_filters": [
{
"id": "string",
"display_name": "string"
}
]
},
"enabled": true,
"auto_trigger": true,
"automation_trigger": true,
"api_trigger": true,
"automation_trigger_only": true,
"automation_trigger_seed_node": "ticket",
"event_origin": "builtin",
"mapping": {
"mode": "guided",
"jsonata": "string"
},
"lineage": {
"base_event_name": "string",
"base_event_version": "string"
},
"success_criteria": [
{
"entity_schema": "contract",
"attribute": "installment_amount"
},
{
"entity_schema": "billing_account",
"attribute": "due_date"
}
]
}

replaceCustomEventDraft​

Replace the complete v1.0 definition of an org-scoped custom event while it is still an

PUT /v1/events/{event_name}

Parameters

NameInTypeRequiredDescription
event_namepathstringYes

Request Body (required)

Sample Call

epilot event-catalog replaceCustomEventDraft \
-p event_name=example

With request body:

epilot event-catalog replaceCustomEventDraft \
-p event_name=example \
-d '{
"event_name": "string",
"event_title": "string",
"event_description": "string",
"event_tags": ["string"],
"schema_fields": {},
"entity_graph": {
"nodes": [
{
"id": "contact",
"schema": "contact",
"cardinality": "one",
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
}
],
"edges": [
{
"from": "contact",
"to": "billing_account"
}
]
},
"entity_operation": {
"operation": ["createEntity", "updateEntity"],
"schema": ["contact", "contract", "order"],
"attribute": ["email", "phone", "status"],
"purpose": ["Kündigung", "Umzug/Auszug"],
"purpose_filters": [
{
"id": "string",
"display_name": "string"
}
]
},
"automation_trigger": true,
"api_trigger": true,
"automation_trigger_only": false,
"automation_trigger_seed_node": "string",
"mapping": {
"mode": "guided",
"jsonata": "string"
},
"lineage": {
"base_event_name": "string",
"base_event_version": "string"
},
"example": {}
}'

Using positional args for path parameters:

epilot event-catalog replaceCustomEventDraft example

Using stdin pipe:

cat body.json | epilot event-catalog replaceCustomEventDraft -p event_name=example

With JSONata filter:

epilot event-catalog replaceCustomEventDraft -p event_name=example --jsonata '$'
Sample Response
{
"event_name": "AddMeterReading",
"event_title": "Add Meter Reading",
"event_description": "Triggered when a new meter reading is added",
"event_version": "1.0",
"event_status": "active",
"event_tags": ["builtin", "metering", "erp"],
"schema_fields": {},
"entity_graph": {
"nodes": [
{
"id": "contact",
"schema": "contact",
"cardinality": "one",
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
}
],
"edges": [
{
"from": "contact",
"to": "billing_account"
}
]
},
"entity_operation": {
"operation": ["createEntity", "updateEntity"],
"schema": ["contact", "contract", "order"],
"attribute": ["email", "phone", "status"],
"purpose": ["Kündigung", "Umzug/Auszug"],
"purpose_filters": [
{
"id": "string",
"display_name": "string"
}
]
},
"enabled": true,
"auto_trigger": true,
"automation_trigger": true,
"api_trigger": true,
"automation_trigger_only": true,
"automation_trigger_seed_node": "ticket",
"event_origin": "builtin",
"mapping": {
"mode": "guided",
"jsonata": "string"
},
"lineage": {
"base_event_name": "string",
"base_event_version": "string"
},
"success_criteria": [
{
"entity_schema": "contract",
"attribute": "installment_amount"
},
{
"entity_schema": "billing_account",
"attribute": "due_date"
}
]
}

patchEvent​

Update the configuration of a specific business event for the organization

PATCH /v1/events/{event_name}

Parameters

NameInTypeRequiredDescription
event_namepathstringYesUnique human readable name of the event

Request Body (required)

Sample Call

epilot event-catalog patchEvent \
-p event_name=example \
-d '{"enabled":true,"auto_trigger":true,"success_criteria":[{"entity_schema":"contract","attribute":"installment_amount"}]}'

Using positional args for path parameters:

epilot event-catalog patchEvent example

Using stdin pipe:

cat body.json | epilot event-catalog patchEvent -p event_name=example

With JSONata filter:

epilot event-catalog patchEvent -p event_name=example --jsonata '$'
Sample Response
{
"event_name": "AddMeterReading",
"event_title": "Add Meter Reading",
"event_description": "Triggered when a new meter reading is added",
"event_version": "1.0",
"event_status": "active",
"event_tags": ["builtin", "metering", "erp"],
"schema_fields": {},
"entity_graph": {
"nodes": [
{
"id": "contact",
"schema": "contact",
"cardinality": "one",
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
}
],
"edges": [
{
"from": "contact",
"to": "billing_account"
}
]
},
"entity_operation": {
"operation": ["createEntity", "updateEntity"],
"schema": ["contact", "contract", "order"],
"attribute": ["email", "phone", "status"],
"purpose": ["Kündigung", "Umzug/Auszug"],
"purpose_filters": [
{
"id": "string",
"display_name": "string"
}
]
},
"enabled": true,
"auto_trigger": true,
"automation_trigger": true,
"api_trigger": true,
"automation_trigger_only": true,
"automation_trigger_seed_node": "ticket",
"event_origin": "builtin",
"mapping": {
"mode": "guided",
"jsonata": "string"
},
"lineage": {
"base_event_name": "string",
"base_event_version": "string"
},
"success_criteria": [
{
"entity_schema": "contract",
"attribute": "installment_amount"
},
{
"entity_schema": "billing_account",
"attribute": "due_date"
}
]
}

deprecateCustomEvent​

Soft-deprecate an org-scoped custom event. Definitions and v1.0 history remain readable.

DELETE /v1/events/{event_name}

Parameters

NameInTypeRequiredDescription
event_namepathstringYes

Sample Call

epilot event-catalog deprecateCustomEvent \
-p event_name=example

Using positional args for path parameters:

epilot event-catalog deprecateCustomEvent example

With JSONata filter:

epilot event-catalog deprecateCustomEvent -p event_name=example --jsonata '$'

previewCustomEvent​

Assemble and fully validate a persisted custom-event draft without publishing it.

POST /v1/events/{event_name}:preview

Parameters

NameInTypeRequiredDescription
event_namepathstringYes

Request Body (required)

Sample Call

epilot event-catalog previewCustomEvent \
-p event_name=example

With request body:

epilot event-catalog previewCustomEvent \
-p event_name=example \
-d '{
"seed": {
"entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"node_id": "ticket"
},
"_trigger_source_type": "automation",
"_trigger_source": "execution-id/action-id"
}'

Using positional args for path parameters:

epilot event-catalog previewCustomEvent example

Using stdin pipe:

cat body.json | epilot event-catalog previewCustomEvent -p event_name=example

With JSONata filter:

epilot event-catalog previewCustomEvent -p event_name=example --jsonata 'payload'
Sample Response
{
"payload": {},
"errors": [
{
"path": "string",
"message": "string"
}
]
}

publishCustomEventDefinition​

Conditionally activate an immutable custom-event v1.0 definition.

POST /v1/events/{event_name}:publish

Parameters

NameInTypeRequiredDescription
event_namepathstringYes

Request Body

Sample Call

epilot event-catalog publishCustomEventDefinition \
-p event_name=example \
-d '{"enabled":true,"auto_trigger":true,"base_auto_trigger_enabled":true}'

Using positional args for path parameters:

epilot event-catalog publishCustomEventDefinition example

Using stdin pipe:

cat body.json | epilot event-catalog publishCustomEventDefinition -p event_name=example

With JSONata filter:

epilot event-catalog publishCustomEventDefinition -p event_name=example --jsonata '$'
Sample Response
{
"event_name": "AddMeterReading",
"event_title": "Add Meter Reading",
"event_description": "Triggered when a new meter reading is added",
"event_version": "1.0",
"event_status": "active",
"event_tags": ["builtin", "metering", "erp"],
"schema_fields": {},
"entity_graph": {
"nodes": [
{
"id": "contact",
"schema": "contact",
"cardinality": "one",
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
}
],
"edges": [
{
"from": "contact",
"to": "billing_account"
}
]
},
"entity_operation": {
"operation": ["createEntity", "updateEntity"],
"schema": ["contact", "contract", "order"],
"attribute": ["email", "phone", "status"],
"purpose": ["Kündigung", "Umzug/Auszug"],
"purpose_filters": [
{
"id": "string",
"display_name": "string"
}
]
},
"enabled": true,
"auto_trigger": true,
"automation_trigger": true,
"api_trigger": true,
"automation_trigger_only": true,
"automation_trigger_seed_node": "ticket",
"event_origin": "builtin",
"mapping": {
"mode": "guided",
"jsonata": "string"
},
"lineage": {
"base_event_name": "string",
"base_event_version": "string"
},
"success_criteria": [
{
"entity_schema": "contract",
"attribute": "installment_amount"
},
{
"entity_schema": "billing_account",
"attribute": "due_date"
}
]
}

getEventJSONSchema​

Retrieve the JSON Schema of a specific business event. Pass an optional

GET /v1/events/{event_name}/json_schema

Parameters

NameInTypeRequiredDescription
event_namepathstringYesUnique human readable name of the event
Epilot-Event-VersionheaderstringNoEvent payload version (MAJOR.MINOR). Defaults to the event's latest version.

Sample Call

epilot event-catalog getEventJSONSchema \
-p event_name=example

Using positional args for path parameters:

epilot event-catalog getEventJSONSchema example

With JSONata filter:

epilot event-catalog getEventJSONSchema -p event_name=example --jsonata '$'
Sample Response
{
"type": "object",
"properties": {
"_org_id": {
"type": "string",
"description": "epilot tenant/organization ID"
},
"_event_time": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp when event occurred"
},
"_event_id": {
"type": "string",
"description": "Unique event identifier (ULID)"
},
"_event_name": {
"type": "string",
"description": "Event name from catalog"
},
"_event_version": {
"type": "string",
"description": "Event payload version (MAJOR.MINOR)"
},
"_event_source": {
"type": "string",
"description": "Source that triggered the event"
},
"reading_value": {
"type": "number",
"description": "The meter reading value"
},
"reading_date": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp when reading was taken"
},
"read_by": {
"type": "string",
"description": "Name or identifier of who submitted the reading"
},
"reason": {
"type": "string",
"enum": ["regular", "move-in", "move-out", "supplier-change", "correction", "final"],
"description": "Reason for the meter reading"
},
"direction": {
"type": "string",
"enum": ["feed-in", "feed-out"],
"description": "Direction of energy flow"
},
"source": {
"type": "string",
"enum": ["portal", "360", "api", "automation"],
"description": "Source system where reading was submitted"
},
"meter_id": {
"type": "string",
"format": "uuid",
"description": "Entity ID of the meter"
},
"counter_id": {
"type": "string",
"format": "uuid",
"description": "Entity ID of the meter counter"
},
"meter_number": {
"type": "string",
"description": "Human-readable meter number"
},
"obis_number": {
"type": "string",
"description": "OBIS code of the counter"
},
"unit": {
"type": "string",
"description": "Unit of measurement (e.g., kWh, m3)"
},
"customer_id": {
"type": "string",
"format": "uuid",
"description": "Entity ID of the customer"
},
"contract_id": {
"type": "string",
"format": "uuid",
"description": "Entity ID of the contract"
},
"user_id": {
"type": "string",
"description": "ID of the user who submitted the reading"
},
"user_email": {
"type": "string",
"format": "email",
"description": "Email of the user who submitted the reading"
}
},
"required": ["_org_id", "_event_time", "_event_id", "_event_name", "_event_version", "_event_source", "reading_value", "reading_date", "read_by", "reason", "direction", "source", "meter_id", "counter_id", "meter_number", "obis_number", "unit", "customer_id", "contract_id"]
}

getEventExample​

Generate a sample event payload based on the event's JSON Schema. Pass an

GET /v1/events/{event_name}/example

Parameters

NameInTypeRequiredDescription
event_namepathstringYesUnique human readable name of the event
Epilot-Event-VersionheaderstringNoEvent payload version (MAJOR.MINOR). Defaults to the event's latest version.

Sample Call

epilot event-catalog getEventExample \
-p event_name=example

Using positional args for path parameters:

epilot event-catalog getEventExample example

With JSONata filter:

epilot event-catalog getEventExample -p event_name=example --jsonata '$'
Sample Response
{}

listEventVersions​

List every known version of an event, along with the latest

GET /v1/events/{event_name}/versions

Parameters

NameInTypeRequiredDescription
event_namepathstringYesUnique human readable name of the event

Sample Call

epilot event-catalog listEventVersions \
-p event_name=example

Using positional args for path parameters:

epilot event-catalog listEventVersions example

With JSONata filter:

epilot event-catalog listEventVersions -p event_name=example --jsonata 'event_name'
Sample Response
{
"event_name": "MeterReadingAdded",
"latest": "1.0",
"versions": [
{
"version": "1.0",
"released_at": "2025-11-15",
"change_summary": "string",
"change_notes": "string",
"changes": [
{
"field": "reading",
"op": "added",
"type_old": "string",
"type_new": "string"
}
]
}
]
}

searchEventHistory​

Paginated history of events

POST /v1/events/{event_name}:history

Parameters

NameInTypeRequiredDescription
event_namepathstringYesUnique human readable name of the event

Request Body

Sample Call

epilot event-catalog searchEventHistory \
-p event_name=example

With request body:

epilot event-catalog searchEventHistory \
-p event_name=example \
-d '{
"limit": 10,
"cursor": {
"event_time": "2025-10-31 12:34:56",
"event_id": "evt_1234567890abcdef"
},
"timestamp": {
"from": "2025-10-01T00:00:00Z",
"to": "2025-10-31T23:59:59Z"
},
"event_id": "evt_1234567890abcdef"
}'

Using positional args for path parameters:

epilot event-catalog searchEventHistory example

Using stdin pipe:

cat body.json | epilot event-catalog searchEventHistory -p event_name=example

With JSONata filter:

epilot event-catalog searchEventHistory -p event_name=example --jsonata 'results[0]'
Sample Response
{
"results": [
{
"_org_id": "org_123456",
"_event_time": "2024-01-01T12:00:00Z",
"_event_id": "01FZ4Z5FZ5FZ5FZ5FZ5FZ5FZ5F",
"_event_name": "MeterReading",
"_event_version": "1.0",
"_event_source": "api",
"_trigger_source_type": "api",
"_trigger_source": "user_123456",
"reading_value": 123.45,
"reading_date": "2024-01-01T11:59:00Z",
"read_by": "John Doe",
"reason": "regular",
"direction": "feed-out",
"source": "portal",
"meter_id": "550e8400-e29b-41d4-a716-446655440000",
"counter_id": "660e8400-e29b-41d4-a716-446655440000",
"meter_number": "MT123456789",
"obis_number": "1-0:1.8.0",
"unit": "kWh",
"customer_id": "770e8400-e29b-41d4-a716-446655440000",
"contract_id": "880e8400-e29b-41d4-a716-446655440000"
}
],
"next_cursor": {
"event_time": "2025-10-31T12:34:56Z",
"event_id": "evt_1234567890abcdef"
}
}

searchEventHistoryV2​

Paginated history of events with projected/lightweight payload (v2).

POST /v2/events/{event_name}:history

Parameters

NameInTypeRequiredDescription
event_namepathstringYesUnique human readable name of the event

Request Body

Sample Call

epilot event-catalog searchEventHistoryV2 \
-p event_name=example

With request body:

epilot event-catalog searchEventHistoryV2 \
-p event_name=example \
-d '{
"limit": 10,
"cursor": {
"event_time": "2025-10-31 12:34:56",
"event_id": "evt_1234567890abcdef"
},
"timestamp": {
"from": "2025-10-01T00:00:00Z",
"to": "2025-10-31T23:59:59Z"
},
"event_id": "evt_1234567890abcdef",
"fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
}'

Using positional args for path parameters:

epilot event-catalog searchEventHistoryV2 example

Using stdin pipe:

cat body.json | epilot event-catalog searchEventHistoryV2 -p event_name=example

With JSONata filter:

epilot event-catalog searchEventHistoryV2 -p event_name=example --jsonata 'results[0]'
Sample Response
{
"results": [
{
"_org_id": "string",
"_event_time": "1970-01-01T00:00:00.000Z",
"_event_id": "string",
"_event_name": "string",
"_event_version": "1.0",
"_event_source": "string",
"_trigger_source_type": "api",
"_trigger_source": "string",
"_ack_id": "string"
}
],
"next_cursor": {
"event_time": "2025-10-31T12:34:56Z",
"event_id": "evt_1234567890abcdef"
}
}

getHistoricalEvent​

Fetch a single historical event by id with full hydration

GET /v2/events/{event_name}/history/{event_id}

Parameters

NameInTypeRequiredDescription
event_namepathstringYesUnique human readable name of the event
event_idpathstringYesUnique event identifier (ULID)

Sample Call

epilot event-catalog getHistoricalEvent \
-p event_name=example \
-p event_id=123e4567-e89b-12d3-a456-426614174000

Using positional args for path parameters:

epilot event-catalog getHistoricalEvent example 123e4567-e89b-12d3-a456-426614174000

With JSONata filter:

epilot event-catalog getHistoricalEvent -p event_name=example -p event_id=123e4567-e89b-12d3-a456-426614174000 --jsonata '_org_id'
Sample Response
{
"_org_id": "org_123456",
"_event_time": "2024-01-01T12:00:00Z",
"_event_id": "01FZ4Z5FZ5FZ5FZ5FZ5FZ5FZ5F",
"_event_name": "MeterReading",
"_event_version": "1.0",
"_event_source": "api",
"_trigger_source_type": "api",
"_trigger_source": "user_123456",
"reading_value": 123.45,
"reading_date": "2024-01-01T11:59:00Z",
"read_by": "John Doe",
"reason": "regular",
"direction": "feed-out",
"source": "portal",
"meter_id": "550e8400-e29b-41d4-a716-446655440000",
"counter_id": "660e8400-e29b-41d4-a716-446655440000",
"meter_number": "MT123456789",
"obis_number": "1-0:1.8.0",
"unit": "kWh",
"customer_id": "770e8400-e29b-41d4-a716-446655440000",
"contract_id": "880e8400-e29b-41d4-a716-446655440000"
}

triggerEvent​

Explicitly trigger an event by providing input field values and an optional entity seed

POST /v1/events/{event_name}:trigger

Parameters

NameInTypeRequiredDescription
event_namepathstringYesUnique human readable name of the event

Request Body (required)

Sample Call

epilot event-catalog triggerEvent \
-p event_name=example

With request body:

epilot event-catalog triggerEvent \
-p event_name=example \
-d '{
"seed": {
"entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"node_id": "ticket"
},
"_trigger_source_type": "automation",
"_trigger_source": "execution-id/action-id"
}'

Using positional args for path parameters:

epilot event-catalog triggerEvent example

Using stdin pipe:

cat body.json | epilot event-catalog triggerEvent -p event_name=example

With JSONata filter:

epilot event-catalog triggerEvent -p event_name=example --jsonata 'success'
Sample Response
{
"success": true,
"event_id": "string",
"event_bridge_event_id": "string"
}