Skip to main content
Source: Feature Inventory - API Surface (Work Ledger API)

List Work Ledger Entries

List all work ledger entries for an instance with pagination, filtering, and sorting. Endpoint: GET /instances/:instanceId/work-ledger (inferred, not implemented) Query Parameters:
  • page (number, optional) - Page number (0-based)
  • size (number, optional) - Page size
  • sort (string, optional) - Sort field and direction (e.g., “createdAt,desc”)
  • search (string, optional) - Search across multiple fields
  • status (string, optional) - Filter by status
  • type (string, optional) - Filter by type
  • policyStatus (string, optional) - Filter by policy status: “compliant”, “non_compliant”, “review_required”
  • actors (string, optional) - Filter by actors: “AI”, “HUMAN”, “HYBRID”
  • costMin (number, optional) - Minimum cost filter
  • costMax (number, optional) - Maximum cost filter
  • timeMin (number, optional) - Minimum time filter (seconds)
  • timeMax (number, optional) - Maximum time filter (seconds)
  • modelName (string, optional) - Filter by model name
Response: Paginated response with work ledger entries Source: Feature Inventory - API Surface (Work Ledger API)

Get Work Ledger Entry

Get a single work ledger entry by ID. Endpoint: GET /instances/:instanceId/work-ledger/:entryId (inferred, not implemented) Response: Work ledger entry object Source: Feature Inventory - API Surface (Work Ledger API)

Work Ledger Entry Structure

{
  "id": "wl-001",
  "title": "Payment Processing TWU Execution",
  "description": "Processed payment decision for order #12345",
  "type": "TWU",
  "status": "completed",
  "createdAt": "2024-12-24T...",
  "updatedAt": "2024-12-24T...",
  "entityId": "order-12345",
  "relatedEntity": "Order #12345",
  "actors": ["AI"],
  "activeTime": 120,
  "cost": 0.15,
  "policyStatus": "compliant",
  "modelName": "Payment Processing"
}
Fields:
  • id (string) - Entry identifier
  • title (string) - Entry title
  • description (string) - Entry description
  • type (string) - Entry type (e.g., “TWU”)
  • status (string) - Execution status
  • createdAt (timestamp) - Creation timestamp
  • updatedAt (timestamp) - Last update timestamp
  • entityId (string) - Related entity identifier
  • relatedEntity (string) - Related entity display name
  • actors (array) - Actor types: [“AI”], [“HUMAN”], or [“AI”, “HUMAN”]
  • activeTime (number) - Active time in seconds
  • cost (number) - Cost in dollars
  • policyStatus (string) - Policy compliance status
  • modelName (string) - TWU model name used
Source: Feature Inventory - Core Objects (Work Ledger Entry)