billing_period, or nothing at all, to report over a single calendar month.start_date and end_date together to report over an explicit span of days.organization_id: The Ejento AI organization ID.billing_period: Defines the billing period in YYYY-MM format. Defaults to the current month.start_date, end_date: Define the inclusive bounds of a date range in YYYY-MM-DD format. Both are always supplied together, in place of billing_period. Supplying a period and a range together, an end date earlier than its start, or a range longer than 92 days each return a 400.paginated: Chooses whether the response carries the whole result set or a single page. Defaults to false, which returns everything and leaves meta null.page: Selects which page to return. It applies only when paginated is true.items_per_page: Sets how many assistants each page carries, from 1 to 100. It applies only when paginated is true.query: Narrows the list to assistants whose name contains this text, case-insensitive. Names are looked up live, so a search that matches nothing returns items: [] rather than the full list.items, with pagination meta when paginated, in a success envelope. When paginated, meta.max_spend is the highest per-assistant spend in the shown population.curl --location --globoff 'https:///metering-service/api/v2/organizations//spend/by-agent?billing_period=undefined&start_date=undefined&end_date=undefined&paginated=undefined&page=undefined&items_per_page=undefined&query=undefined' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer '{
"success": true,
"message": "string",
"data": {
"items": [
{
"agent_id": 0,
"agent_name": "string",
"spend": "string",
"total_tokens": 0
}
],
"meta": {
"count": 0,
"current_page": 0,
"num_pages": 0,
"max_spend": "string"
}
}
}