Events API
Records of all significant occurrences within the platform
Fields
interface Events {
type?: string;
source?: string;
subject?: string;
data?: Record<string, any>;
metadata?: Record<string, any>;
action?: string;
trigger?: string;
search?: string;
function?: string;
workflow?: string;
agent?: string;
generations?: string[];
}
API Endpoints
GET /api/events
Retrieves a list of Events with pagination.
Query Parameters
limit
: Maximum number of items to return (default: 10)page
: Page number for pagination (default: 1)sort
: Field to sort by (default: createdAt)where
: JSON query for filtering results
GET /api/events/:id
Retrieves a single Events by ID.
POST /api/events
Creates a new Events.
PATCH /api/events/:id
Updates an existing Events.
DELETE /api/events/:id
Deletes a Events.
Last updated on