GET /billing/usage/{tenant_id}/current
Query the resource usage (user count, storage, API calls) for the current billing period, for real-time usage monitoring
Billing Service `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
tenant_id |
path |
string |
Yes |
|
|
|
Tenant ID |
app_id |
query |
string |
No |
|
|
|
Application ID (optional) |
Responses
| Status | Description | Schema |
| 200 | Current usage query successful | dto.CurrentUsageDetailResponse |
| 400 | Invalid request parameters | object |
| 401 | Unauthorized | object |
| 500 | Internal server error | object |
Referenced Schemas
dto.CurrentUsageDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.CurrentUsageResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.CurrentUsageResponse
| Field | Type | Required | Example | Constraints | Description |
api_calls_today |
integer |
No |
150 |
|
|
storage_gb |
number |
No |
2.5 |
|
|
users |
integer |
No |
8 |
|
|