Events represent individual actions or observations produced by your AI agents — prompts sent, completions received, tool calls made, and errors encountered. Sending events to Secureagentics enables real-time policy evaluation, anomaly detection, and audit trail generation.Documentation Index
Fetch the complete documentation index at: https://docs.adrian.secureagentics.ai/llms.txt
Use this file to discover all available pages before exploring further.
Send an event
POST /v1/agents/{id}/events
Sends a single activity event for the specified agent. Secureagentics evaluates the event against all applicable policies and returns the result synchronously.
Path parameters
The ID of the agent sending the event, prefixed with
agt_.Request body
The event type. One of:
prompt, completion, tool_call, error, custom.Event-specific data. The structure of this object depends on the event
type. For example, a prompt event might include the input text, while a tool_call event might include the tool name and arguments.A correlation ID you provide for linking related events across a single request or conversation thread. If omitted, the event is not correlated with other events.
ISO 8601 timestamp indicating when the event occurred. Defaults to the server’s current time if omitted.
Response fields
Unique event identifier, prefixed with
evt_.The ID of the agent that produced the event.
The event type.
The event payload as submitted.
The correlation ID for this event, if provided.
ISO 8601 timestamp of when the event occurred.
The outcome of policy evaluation for this event.
List events for an agent
GET /v1/agents/{id}/events
Returns a paginated list of events produced by the specified agent. Use the from and to parameters to query events within a specific time window.
Path parameters
The agent ID, prefixed with
agt_.Query parameters
Maximum number of events to return per page. Accepted range: 1–500.
Number of events to skip before returning results. Use for pagination.
Filter events by type. One of:
prompt, completion, tool_call, error, custom.ISO 8601 timestamp. Return only events at or after this time.
ISO 8601 timestamp. Return only events at or before this time.
Response fields
Array of event objects matching the query. Each object has the same structure as the response from Send an event.
Total number of events matching the applied filters, regardless of pagination.
Send events in batch
POST /v1/agents/{id}/events/batch
Sends multiple events for the specified agent in a single request. Each event is evaluated against applicable policies independently. The maximum batch size is 100 events per request.
Path parameters
The agent ID, prefixed with
agt_.Request body
Array of event objects to send. Maximum of 100 events per request. Each object accepts the same fields as the single-event endpoint:
type, payload, trace_id, and timestamp.Response fields
Array of event result objects in the same order as the submitted events. Each object has the same structure as the response from Send an event.
Number of events successfully processed.