Org usage breakdownv3.1
Grouped metering usage breakdown for the authenticated organization. Groups results by a single dimension or column key. By default includes all projects; use filters.project_id to restrict.
Authorization
OrgApiKeyAuth Organization API key authentication
In: header
Path Parameters
Metering entity type to break down (e.g. tool_calls, sessions).
Request Body
application/json
Inclusive range start (Unix epoch milliseconds). Defaults to 30 days before to.
Exclusive range end (Unix epoch milliseconds). Defaults to now.
Dimension or column to group results by. Defaults to tool_slug for tool_calls and user_id for sessions.
Field to order groups by. Defaults to total_quantity.
keytotal_quantityevent_countSort direction. Defaults to desc.
ascdescMaximum number of groups to return. Defaults to 100, max 1000.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://backend.composio.dev/api/v3.1/org/usage/string" \ -H "Content-Type: application/json" \ -d '{}'{
"entity_type": "string",
"unit": "string",
"total_quantity": "string",
"event_count": 0,
"groups": [
{
"key": "string",
"total_quantity": "string",
"event_count": 0
}
]
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}