/api/v1/analytics/consumption
const url = 'https://api.endless.zaia.app/api/v1/analytics/consumption?granularity=hourly';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.endless.zaia.app/api/v1/analytics/consumption?granularity=hourly'Retrieves workspace consumption analytics for LLM spend, extra executions, channel types, and LLM cost.
Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”A UUID v4 string that identifies an entity.
The end date of the comparison period.
The end date of the comparison period.
The start date of the comparison period.
The start date of the comparison period.
The granularity of the consumption series.
The granularity of the consumption series.
The end date of the analytics period.
The end date of the analytics period.
The start date of the analytics period.
The start date of the analytics period.
A UUID v4 string that identifies an entity.
Responses
Seção intitulada “Responses”Consumption analytics retrieved successfully.
object
object
object
object
object
object
object
object
Example
{ "byChannelType": [ { "channelType": "api" } ], "executions": [ { "channelType": "api", "responderEntity": "agents" } ]}Unauthorized.
The description of a known exception.
object
The error code.
The error call-to-action.
object
The error feedback.
object
The error message.
The error name.
Example
{ "cta": { "type": "support-contact" }}