Skip to main content
GET
Get credit usage per ticket for a period

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user).

Query Parameters

since
string
required

Start of the period (inclusive), ISO 8601.

until
string

End of the period (exclusive), ISO 8601. Defaults to now.

agent_id
integer

Only credits billed by this agent.

limit
integer

How many of the highest rows to return, 1 to 100000. Defaults to 50.

Response

Success.

data
TicketUsageBreakdown · object
required

Credits per ticket for a period. total_rows and total_credits cover the whole period; tickets holds the highest rows, up to limit.

meta
object
required