Query the merged timeline of events and logs for an agent.
Returns lifecycle events (where actor matches the agent) and agent log entries merged into a unified timeline, sorted by timestamp descending.
Returns: Merged timeline entries for the agent.
Start of time window (ISO 8601). Defaults to 1 hour ago.
End of time window (ISO 8601). Defaults to now.
Maximum entries to return.
1 <= x <= 500Successful Response
event, log A recorded lifecycle state transition for a resource.
Attributes: id: SurrealDB record ID (populated by database). organization_id: Tenant that owns the resource. resource_id: SurrealDB resource ID. resource_name: Human-readable resource name. provider: Provider that manages the resource. resource_type: Resource type name. event_type: Lifecycle event that caused the transition (e.g. apply, success, failure). from_state: State before transition, None for initial creation. to_state: State after transition. actor_type: Who caused this event ("user", "agent", "system"), None for legacy events. actor_id: Identifier for the actor (user ID or agent resource ID), None for legacy events. error: Error message when transitioning to FAILED state. timestamp: When the transition occurred. expires_at: When this event should be garbage collected.
A recorded action or decision by an AI agent.
Attributes: id: SurrealDB record ID (populated by database). organization_id: Tenant that owns the agent. agent_resource_id: SurrealDB ID of the agent resource. instance_id: Agent instance that produced this log entry. log_type: Category of this log entry. message: Human-readable description of what happened. metadata: Flexible payload (tool name, arguments, error details, etc.). timestamp: When this action occurred. expires_at: When this log entry should be garbage collected.