API Documentation
Schemas
- Egress
- Export
- Websocket
- Webhook
- HTTP Gateway
- Errors
Authentication
Gateway
Webhooks
Export
Stream configuration
Processor
Usage
Usage report
Retrieve usage report for a given time interval
GET
/
usage-service
/
api
/
v1
/
usage
/
report
Copy
curl --request GET \
--url https://usage-service.vatis.tech/usage-service/api/v1/usage/report \
--header 'Authorization: Bearer <token>'
Copy
{
"startTimestamp": 123,
"endTimestamp": 123,
"granularity": "HOURS",
"currency": "<string>",
"totalMeasurements": {
"credits": "<string>",
"startTimestamp": 123,
"endTimestamp": 123,
"streamsCount": 123,
"operationType": "BATCH_TRANSCRIPTION",
"streamConfigurationTemplateId": "<string>",
"measurements": {
"executionTime": "<string>",
"storageSize": "<string>",
"ingressSize": "<string>",
"egressSize": "<string>",
"processedAudioLength": "<string>",
"processedTokens": "<string>",
"processedInputTokens": "<string>",
"processedOutputTokens": "<string>"
}
},
"aggregatedMeasurements": [
{
"credits": "<string>",
"startTimestamp": 123,
"endTimestamp": 123,
"streamsCount": 123,
"operationType": "BATCH_TRANSCRIPTION",
"streamConfigurationTemplateId": "<string>",
"measurements": {
"executionTime": "<string>",
"storageSize": "<string>",
"ingressSize": "<string>",
"egressSize": "<string>",
"processedAudioLength": "<string>",
"processedTokens": "<string>",
"processedInputTokens": "<string>",
"processedOutputTokens": "<string>"
}
}
],
"operationTypeAggregatedMeasurements": [
{
"credits": "<string>",
"startTimestamp": 123,
"endTimestamp": 123,
"streamsCount": 123,
"operationType": "BATCH_TRANSCRIPTION",
"streamConfigurationTemplateId": "<string>",
"measurements": {
"executionTime": "<string>",
"storageSize": "<string>",
"ingressSize": "<string>",
"egressSize": "<string>",
"processedAudioLength": "<string>",
"processedTokens": "<string>",
"processedInputTokens": "<string>",
"processedOutputTokens": "<string>"
}
}
],
"streamConfigurationTemplateIdAggregatedMeasurements": [
{
"credits": "<string>",
"startTimestamp": 123,
"endTimestamp": 123,
"streamsCount": 123,
"operationType": "BATCH_TRANSCRIPTION",
"streamConfigurationTemplateId": "<string>",
"measurements": {
"executionTime": "<string>",
"storageSize": "<string>",
"ingressSize": "<string>",
"egressSize": "<string>",
"processedAudioLength": "<string>",
"processedTokens": "<string>",
"processedInputTokens": "<string>",
"processedOutputTokens": "<string>"
}
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Start of the interval. If not specified, it will be the 1st of the current month
Example:
"2021-08-01T00:00:00Z"
End of the interval. If not specified, it will be the current date-time
Example:
"2021-08-01T00:00:00Z"
Granularity of the report. Defaults to 'HOURS'
Available options:
HOURS
, DAYS
, MONTHS
Currency to use for the report. If not specified, the default credits abstraction will be used
Example:
"USD"
Response
200
application/json
Stream canceled successfully
The response is of type object
.
Copy
curl --request GET \
--url https://usage-service.vatis.tech/usage-service/api/v1/usage/report \
--header 'Authorization: Bearer <token>'
Copy
{
"startTimestamp": 123,
"endTimestamp": 123,
"granularity": "HOURS",
"currency": "<string>",
"totalMeasurements": {
"credits": "<string>",
"startTimestamp": 123,
"endTimestamp": 123,
"streamsCount": 123,
"operationType": "BATCH_TRANSCRIPTION",
"streamConfigurationTemplateId": "<string>",
"measurements": {
"executionTime": "<string>",
"storageSize": "<string>",
"ingressSize": "<string>",
"egressSize": "<string>",
"processedAudioLength": "<string>",
"processedTokens": "<string>",
"processedInputTokens": "<string>",
"processedOutputTokens": "<string>"
}
},
"aggregatedMeasurements": [
{
"credits": "<string>",
"startTimestamp": 123,
"endTimestamp": 123,
"streamsCount": 123,
"operationType": "BATCH_TRANSCRIPTION",
"streamConfigurationTemplateId": "<string>",
"measurements": {
"executionTime": "<string>",
"storageSize": "<string>",
"ingressSize": "<string>",
"egressSize": "<string>",
"processedAudioLength": "<string>",
"processedTokens": "<string>",
"processedInputTokens": "<string>",
"processedOutputTokens": "<string>"
}
}
],
"operationTypeAggregatedMeasurements": [
{
"credits": "<string>",
"startTimestamp": 123,
"endTimestamp": 123,
"streamsCount": 123,
"operationType": "BATCH_TRANSCRIPTION",
"streamConfigurationTemplateId": "<string>",
"measurements": {
"executionTime": "<string>",
"storageSize": "<string>",
"ingressSize": "<string>",
"egressSize": "<string>",
"processedAudioLength": "<string>",
"processedTokens": "<string>",
"processedInputTokens": "<string>",
"processedOutputTokens": "<string>"
}
}
],
"streamConfigurationTemplateIdAggregatedMeasurements": [
{
"credits": "<string>",
"startTimestamp": 123,
"endTimestamp": 123,
"streamsCount": 123,
"operationType": "BATCH_TRANSCRIPTION",
"streamConfigurationTemplateId": "<string>",
"measurements": {
"executionTime": "<string>",
"storageSize": "<string>",
"ingressSize": "<string>",
"egressSize": "<string>",
"processedAudioLength": "<string>",
"processedTokens": "<string>",
"processedInputTokens": "<string>",
"processedOutputTokens": "<string>"
}
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.