provider access:all POST /v1/workspace/analytics/query/usage-by-product-over-time
@utdk/elevenlabs /v1/workspace/analytics/query/usage-by-product-over-time
Get Workspace Usage
Returns credit usage broken down by product type over time. The response is a tabular structure with columns, column_types, column_units, and rows.
xi-api-key header
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Try it

Authentication
Configure credentials for ElevenLabs API Documentation
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

usageByProductOverTime
POST/v1/workspace/analytics/query/usage-by-product-over-time
Returns credit usage broken down by product type over time. The response is a tabular structure with columns, column_types, column_units, and rows.

Input

required

Start of the time range as a Unix timestamp in milliseconds. Must be at least 2020-01-01.

required

End of the time range as a Unix timestamp in milliseconds. Must be at least 2020-01-01.

Bucket size in seconds. Each row in the response covers this many seconds of usage. For example, pass 3600 for hourly buckets or 86400 for daily buckets.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import elevenlabs from '@utdk/elevenlabs';

await elevenlabs.usageByProductOverTime({
  "interval_seconds": 60
})