tickets.list_unresolved
List unresolved tickets
Every ticket not yet resolved or closed in the source system, oldest created first, for a one-off re-fetch of tickets the regular poll skipped. Unassigned only unless includeAssigned. Each item carries awaitingReply (no agent response yet, or the customer wrote after it) and total: how many tickets matched before the limit was applied. Does not move any poll position.
readFreshdesk
The tenant picks one of these when they bind this capability at install time. New implementations land as connectors ship — browse the connector catalogue.
Request arguments
Passed as the args parameter to ctx.capability.call("tickets.list_unresolved", …).
| Field | Type | Required | Description |
|---|---|---|---|
| limit | integer | no | default: 50 · min: 1 · max: 200 |
| sinceIso | string | no | Only tickets created at or after this time; default: all unresolved tickets format: date-time |
| includeAssigned | boolean | no | Also return tickets a person already owns default: false |
| waitingOnly | boolean | no | Only tickets awaiting our reply (awaitingReply true) default: false |
Response
Returned by ctx.capability.call("tickets.list_unresolved", …).
Array; each element is an object with the following fields.
| Field | Type | Required | Description |
|---|---|---|---|
| body | string | no | |
| status | string | integer | no | |
| subject | string | no | |
| assigned | boolean | no | A person already owns the ticket |
| awaitingReply | boolean | no | No agent has responded yet, or the customer wrote after the last agent response |
| agentRespondedAt | string | null | no | format: date-time |
| requesterRespondedAt | string | null | no | format: date-time |
| threadId | string | yes | |
| ticketId | string | yes | |
| updatedAt | string | no | format: date-time |
| receivedAt | string | yes | format: date-time |
| supportEmail | string | null | no | |
| total | integer | yes | Tickets that matched before the limit was applied (the same on every item) |
Example call
From inside your agent's handle(). The kernel resolves tickets.list_unresolved to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"tickets.list_unresolved",
args={
"limit": 50,
"sinceIso": "2026-01-01T00:00:00Z",
"includeAssigned": false,
"waitingOnly": false,
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.