FruxonDocs
Agent NetworkTriggers

Lists the automation's work items.

The Work view's item grid. Filter by stage and status; the UI defaults to DEAD + FAILED first, because the dead-letter queue is the reason this view exists. `ignoreReason` narrows to the items one exclusion reason set aside, matched whole and case-sensitively, and is the filter that makes `totalCount` the number `items:redrive` will confirm for the same selection. Without it the client could see "1,204 IGNORED" and the 29 rows its current page happens to hold, and nothing in between.

GET
/v1/tenants/{tenant}/triggers/{trigger}/ledger/items
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

trigger*string

The trigger identifier.

Formatuuid
tenant*string

The tenant identifier

Query Parameters

PageSize?integer

The maximum number of items to return per page

Formatint32
PageToken.Skip?integer
Formatint32
PageToken.Cursor?string

Opaque pagination token returned by an external service. Pass it back unchanged rather than interpreting it as an offset.

orderBy?

Sort order.

stageId?string

Optional stage filter.

status?string

Optional status filter.

Value in"UNSPECIFIED" | "READY" | "CLAIMED" | "WAITING" | "DONE" | "FAILED" | "DEAD" | "IGNORED"
ignoreReason?string

Optional exclusion-reason filter; selects IGNORED items only.

cohortId?string

Optional cohort filter — the members of one cohort.

Formatuuid
query?string

Optional free-text search: a case-insensitive substring of the item's key, its label, or any string or number in its data — the source record and what its stages produced, so an item can be found by a customer name or a policy number its subject line never carried.

where?array<string>

Optional, repeatable: items whose data holds a value at a path — destination=SKIP — or does not — destination!=SKIP, which also keeps items without the path. The path is a data key, dotted for a nested one; the value is matched whole and case-sensitively, as a string and as the number, boolean or null it spells. Clauses combine with AND; at most ten.

waitingFor?string

Optional: only WAITING items waiting on PERSON (an ASK stage's question) or TIME (a WAIT stage's due time). Sort by wakeAt to see what wakes next.

Value in"UNSPECIFIED" | "PERSON" | "TIME"
admittedVia?string

Optional: only items started by hand — API through items:admit, AGENT by a conversation agent's start_work_item. Items a listing or an event admitted carry neither.

Value in"UNSPECIFIED" | "API" | "AGENT"

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08/ledger/items"
{
  "items": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "ledgerId": "00000000-0000-0000-0000-000000000000",
      "itemKey": "string",
      "label": "string",
      "stageId": "string",
      "status": "READY",
      "stageAttempts": 0,
      "nextAttemptAt": 0,
      "lastError": "string",
      "admittedAt": 0,
      "terminalAt": 0,
      "lastExecutionRecordId": "00000000-0000-0000-0000-000000000000",
      "batchRunId": "00000000-0000-0000-0000-000000000000",
      "batchId": "00000000-0000-0000-0000-000000000000",
      "lastBatchId": "00000000-0000-0000-0000-000000000000",
      "data": null,
      "admittedVia": "API",
      "admittedBy": "string",
      "admittedByExecutionRecordId": "00000000-0000-0000-0000-000000000000",
      "wakeAt": 0,
      "waitingFor": "PERSON",
      "cost": 0,
      "runs": 0
    }
  ],
  "nextPageToken": "string",
  "totalCount": 0
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}