This section provides an overview of composite events in the Deeply API.
Last updated: November 11, 2026
Composite Event in Deeply AI System
Composite Event Object
The Composite Event object represents an aggregated event record created by applying a composite event rule to multiple base events.
It is used when several related detections should be interpreted and returned as a single higher-level result.
How It Works
A composite event is formed when:
base events are collected within a rule-defined window
the rule groups those events using its own grouping strategy
the API returns the grouped events together with the related microphones and labels
Unlike the public Event Object documented in the Events section, the events field inside a composite event uses a richer event payload.
That nested event payload includes threshold values, audio file information, read status, and a full microphone object.
Attributes
id
Type: string
Description: Unique identifier of the composite event.
group_key
Type: string
Description: Grouping key assigned to the composite event according to the rule configuration.
rule
Type: object
Description: Rule definition that produced this composite event.
rule.id
Type: string
Description: Unique identifier of the composite event rule.
rule.name
Type: string
Description: Display name of the rule.
rule.description
Type: string | null
Description: Optional description for the rule.
rule.window_seconds
Type: number
Description: Time window used by the rule when grouping base events.
rule.min_events
Type: integer
Description: Minimum number of base events required to form a composite event.
rule.enabled
Type: boolean
Description: Whether the rule is currently enabled.
rule.group_by
Type: string
Description: Grouping strategy used to derive the composite event's group_key.
rule.include_label_ids
Type: string[] | null
Description: Label IDs configured on the rule, when present.
rule.include_mic_ids
Type: string[] | null
Description: Microphone IDs configured on the rule, when present.
events
Type: array
Description: Detailed base events that were grouped into this composite event.
Reference: Related to the Events API Overview, but the nested objects here are more detailed than the simplified OpenAPI event object shown there.
mics
Type: array
Description: Microphone devices associated with the grouped events.