Tickets
See what coding assistant work costs for each engineering ticket, and find spend that carries no ticket.
In the product: https://app.revenium.ai/ai-assistants/tickets, or Intelligence > AI Assistants > Tickets.
Tickets shows what AI work costs for each engineering ticket, most of it from coding assistants, so you can use past ticket costs when planning similar work. Spend from agents that run with no person, such as a code review bot, is shown apart from spend by the people who used a coding assistant. This page covers what Tickets needs, how it works, and how to read it.
What it needs
A coding assistant, or an agent of your own, sending usage to Revenium. Without either, the page asks you to connect one.
Revenium Sidekick for each engineer. Its ticket gate takes the ticket from the branch name or the prompt, or asks the engineer which ticket they are working on, and ties the work that follows to that ticket. Ticket attribution is available on paid accounts. Setup is available from your Revenium customer success manager; ask them to set it up for anyone missing it.
Engineers who answer the ticket gate. A session may show one short attribution line. An engineer can change the ticket at any point in a session, or say that no ticket applies, and the work that follows is charged to the new ticket or marked as opted out. How to do both is part of the setup available from your Revenium customer success manager.
For your own agents, a ticket id on each call. An agent needs no ticket gate: when it sends
ticketIdon its completions, that spend is counted against the ticket. See Tie Agent Work to a Ticket.
Until your team sends its first ticket, Tickets shows sample ticket costs instead of your own. With nothing sending usage to Revenium, the sample sits behind You're viewing sample ticket attribution and Connect an AI assistant. Once usage is arriving, it sits behind Your coding assistants aren't sending tickets yet until the first ticket arrives. Either preview shows what you can compare once tickets arrive; its figures are sample data, not your team's spend.
After your team has sent tickets, if spend arrives but none of it carries a ticket, the page shows Turn on the ticket gate.
Reading the numbers
Coverage: how much spend is tied to a ticket?
The band at the top splits coding assistant spend into Attributed to tickets, Opted out (the engineer said no ticket applies) and Unattributed (no ticket and no opt-out), with the period's total spend, tickets touched and median ticket cost. A growing Attributed share means the ticket gate is working. Ticketed spend from your own agents is shown beside this share, on the line that starts Agents added, not inside it.
Attributed: what did each ticket cost?
Attributed lists spend by ticket. Open a ticket for its cost, active time, sessions, contributors and activity. Filter by work mode, person, assistant or repository to compare similar work. Work mode says how the work was done: Interactive, Automated or Unclassified. Agent Instrumentation Guide explains how a call gets its work mode. A ticket title appears beside its key when the session supplied one.
One coding session can cover several tickets. Each ticket's Sessions card shows the part of that session's cost and active time that belongs to it, so the same session may appear on several ticket pages without charging its full cost to each one.
Who did the work on a ticket?
A ticket can carry AI work of two kinds:
A person helped by a coding assistant. An engineer working in Claude Code, Cursor or another assistant, in the terminal or the desktop app, appears by name under Contributors.
An agent doing the work itself. Spend from an agent that is not a coding assistant, such as a code review bot, appears as Agents (no person) when the call carries no subscriber email. When the call carries a subscriber email, that person appears under Contributors instead. The Tools card on the ticket breaks spend down by the assistant or agent that sent it.
Spend with no person and no agent name appears as Unknown.
Unattributed: who needs the ticket gate?
Unattributed shows spend and sessions with no ticket. See who on the coverage band takes you to the people behind it, and Never sent a ticket lists people to follow up with, with Copy emails.
Charge sessions to tickets over the API
A script or hook that knows which ticket a developer is on can tie their session to it, so its cost shows on this page. For Claude Code, the session id is the one Claude Code reports with its telemetry. Record the ticket with one call that sends the ticketId and a ticketTitle.
Switching tickets keeps the history. Sending a different ticket starts a new interval from that moment. Time before it stays with the earlier ticket. Sending the ticket the session already has changes nothing.
Untie a session by sending
"ticketId": "none".Read it back. List a session's tickets returns every interval, with the current one first.
Which key. The metering key (
rev_mk_) that already sends the assistant's usage can make both calls for your own account, with no other parameter. A full-access key can also make both calls, and a read-only key can read. These two keys also need your team id as theteamIdquery parameter.
Limits
No ticket gate seen is a strong sign the gate is missing for a person, not proof. Revenium sees their session history, not whether Revenium Sidekick is set up for them.
The ticket gate attaches a ticket key when it takes the usual tracker form: a project key, a hyphen and a number, such as
PROJ-123. A key in another form is not attached. AticketIdyour own agent sends is kept in the form you send it.Ticket titles appear only when the session supplies one; the key is always shown.
With no coding assistant spend and no ticketed agent spend in the selected dates, there is nothing to show.
Last updated
Was this helpful?