Get Organization Usage Handler
GET/v1/organization/:organization_id_or_slug/usage2
Fetches the organization usage for the given period.
Request
Path Parameters
Query Parameters
The exact start date of the period to fetch usage for.
Default value: 0
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
billing_period
object
required
anyOf
string
text_tokens
object
required
Default value: 0
total units used
offered
object
units included in plan
anyOf
integer
unit_price
object
price per unit of usage over included amount
anyOf
number
unit_price_str
object
exact price per unit as a string
anyOf
string
billable
object
billable overage price in USD
anyOf
string
image_embeddings
object
required
Default value: 0
total units used
offered
object
units included in plan
anyOf
integer
unit_price
object
price per unit of usage over included amount
anyOf
number
unit_price_str
object
exact price per unit as a string
anyOf
string
billable
object
billable overage price in USD
anyOf
string
seats
object
required
Default value: 0
total units used
offered
object
units included in plan
anyOf
integer
unit_price
object
price per unit of usage over included amount
anyOf
number
unit_price_str
object
exact price per unit as a string
anyOf
string
billable
object
billable overage price in USD
anyOf
string
storage
object
required
Default value: 0
total units used
offered
object
units included in plan
anyOf
integer
unit_price
object
price per unit of usage over included amount
anyOf
number
unit_price_str
object
exact price per unit as a string
anyOf
string
billable
object
billable overage price in USD
anyOf
string
{
"plan_type": "string",
"billing_period": "2024-07-29T15:51:28.071Z",
"text_tokens": {
"used": 0,
"offered": 0,
"unit_price": 0,
"unit_price_str": "string",
"billable": "string"
},
"image_embeddings": {
"used": 0,
"offered": 0,
"unit_price": 0,
"unit_price_str": "string",
"billable": "string"
},
"seats": {
"used": 0,
"offered": 0,
"unit_price": 0,
"unit_price_str": "string",
"billable": "string"
},
"storage": {
"used": 0,
"offered": 0,
"unit_price": 0,
"unit_price_str": "string",
"billable": "string"
}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}