Docs / Collect / Token entries endpoint
Token entries endpoint
Any agent that can make an HTTP call can report its own token entries. Send one per session.
Browse the docs
Getting started
Attribute
Account
Reference
The call
POST https://tokencontroller.com/api/v1/token-entries
Authorization: Bearer tc_svc_…
{
"agent_harness": "support-desk",
"agent_name": "email answers",
"model": "claude-sonnet-5",
"started_at": "2026-09-18T09:12:00Z",
"ended_at": "2026-09-18T09:14:10Z",
"tokens": { "input": 4120, "output": 610, "cache_read": 18200 },
"reported_cost": 0.031,
"summary": "Answered refund question for order 1182",
"project": "support"
}
The service token decides the agent manager: the person who created it. Reported cost is optional; without it, Token Controller computes the list value from the model and the price table. Every field is described in the token entry schema.
Placing
Name a ticket or a project in the call, or let your rules place the token entry. With neither, it shows as unattributed.
Automatic
Token entries from the endpoint arrive automatically, with the status submitted. They never go on a token sheet.
Last updated 8 October 2026 · Edit this page
© 2026 Jan Beck · Privacy · Imprint