Get Organization Usage
GET/api/v1/organizations/:organization_id/usage
Get usage for a project
Request
Path Parameters
organization_id anyrequired
Cookie Parameters
session any
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
- Plan
- Usage
start_window
object
required
anyOf
string
end_window
object
required
anyOf
string
plan
object
required
anyOf
total_users Total Users (integer)
Default value:
1
total_indexes Total Indexes (integer)
Default value:
5
total_indexed_pages Total Indexed Pages (integer)
Default value:
10000
credits Credits (integer)
Default value:
30000
has_payment_method Has Payment Method (boolean)
Default value:
false
free Free (boolean)
If is a free plan
Default value:
true
allowed_index Allowed Index (boolean)
If is allowed to use indexes
Default value:
true
allowed_external_index Allowed External Index (boolean)
If is allowed to use external data sources or sinks in indexes
Default value:
false
usage
object
required
anyOf
Response model; use UsageSubmission for tracking
total_users Total Users (integer)
Default value:
0
total_indexes Total Indexes (integer)
Default value:
0
total_indexed_pages Total Indexed Pages (integer)
Default value:
0
extract_pages Extract Pages (integer)
Default value:
0
parse_pages Parse Pages (integer)
Default value:
0
index_pages Index Pages (integer)
Default value:
0
credits Credits (integer)
Default value:
0
{
"start_window": "2024-07-29T15:51:28.071Z",
"end_window": "2024-07-29T15:51:28.071Z",
"plan": {},
"usage": {}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...