Skip to content

Get usage trend for a subscription

GET
/portal/usage/trend

Get daily usage trend for the authenticated customer’s subscription.

subscription_id
required
Subscription Id
string format: uuid
start_date
Any of:
string format: date
end_date
Any of:
string format: date
token
required
Token
string

Successful Response

PortalUsageTrendResponse

Usage trend response for the portal.

object
subscription_id
required
Subscription Id
string format: uuid
start_date
required
Start Date
string format: date
end_date
required
End Date
string format: date
data_points
required
Data Points
Array<object>
PortalUsageTrendPoint

A single data point in the portal usage trend.

object
date
required
Date
string format: date
value
required
Value
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
events_count
required
Events Count
integer

Invalid or expired portal token

Subscription not found

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object