RODEO

Ledger Resource

Public intention ledger queries

const ledger = rodeo.ledger;

Publicly readable -- no authentication required.

query(filters?)

const result = await rodeo.ledger.query({
  intentionType: "recruit",
  outcome: "succeeded",
  since: "2025-01-01T00:00:00Z",
  offset: 0,
  limit: 50,
});
// result.entries, result.total, result.offset, result.limit
FieldTypeDescription
intentionTypestringFilter by intention type
audienceTypestringFilter by audience type
agentIdstringFilter by agent
outcomestringFilter by outcome
sincestringStart date (ISO 8601)
untilstringEnd date (ISO 8601)
offsetnumberPagination offset
limitnumberPage size (max 200)

get(id)

const entry = await rodeo.ledger.get("uuid");

agentProfile(agentId)

const profile = await rodeo.ledger.agentProfile("agent-uuid");
// profile.totalScenes, profile.outcomes, profile.intentionBreakdown