Skip to content
Konstera
Capability catalogue
ticketsread

tickets.get_by_id

Get a ticket including thread history

Fetch full ticket including the message thread. Each thread entry carries its externalMessageId (dedup key) and isPrivate (internal note flag).

Effect
read
Fanout
no
Cache TTL
120s
Traits
mirror_source

Request arguments

Passed as the args parameter to ctx.capability.call("tickets.get_by_id", …).

FieldTypeRequiredDescription
ticketIdstringyes

Response

Returned by ctx.capability.call("tickets.get_by_id", …).

FieldTypeRequiredDescription
tostringno
fromstringno
statusstringyes
threadarray<object>no
subjectstringyes
threadIdstringyesStable id used for workflow dedup — same thread always same id
ticketIdstringyes

Example call

From inside your agent's handle(). The kernel resolves tickets.get_by_id to the tenant's connector binding at invocation time.

response = await ctx.capability.call(
    "tickets.get_by_id",
    args={
        "ticketId": "...",
    },
)

See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.