Get client usage history
GET /api/v1/clients/{bucket_id}/history
GET
/api/v1/clients/{bucket_id}/history
Returns historical usage snapshots for a client. Use date filters to narrow the time range.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” bucket_id
required
string
Example
acme-corpClient bucket identifier (alphanumeric, hyphens, underscores)
Query Parameters
Section titled “Query Parameters ” start_date
string format: date
Example
2024-01-01Start date for history range (YYYY-MM-DD)
end_date
string format: date
Example
2024-12-31End date for history range (YYYY-MM-DD)
limit
integer
Maximum number of snapshots to return
Responses
Section titled “ Responses ”Historical snapshots
object
snapshots
Array<object>
object
bucket_id
Client bucket identifier
string
snapshot_date
Date of the snapshot
string format: date
Example
2024-01-15 records
Record counts by collection type
object
person
integer
Example
15000 organisation
integer
Example
2500 member
integer
Example
8500 payment
integer
Example
45000 ticket
integer
Example
12000 booking
integer
Example
3200 total
integer
Example
125000 key
additional properties
integer
storage
S3 storage metrics
object
object_count
Total number of S3 objects
integer
Example
8500 total_bytes
Total storage in bytes
integer
Example
5368709120 by_prefix
Storage breakdown by S3 prefix
object
key
additional properties
object
count
integer
bytes
integer
computed_at
When the snapshot was computed
string format: date-time
count
Number of snapshots returned
integer
Invalid request parameters
object
error
Error message
string
request_id
Request ID for debugging
string
Example
{ "error": "Invalid bucket_id"}Authentication required
object
error
Error message
string
request_id
Request ID for debugging
string
Example
{ "error": "Unauthorized"}Resource not found
object
error
Error message
string
request_id
Request ID for debugging
string
Example
{ "error": "Not found"}