GET/v1/integration/usage-stats
Usage stats series
Time-bucketed usage counts for the authenticated account. Filter with grain and optional kind query parameters.
operationIdusageStats.indexUsageBearer token
Authentication
Bearer token with the integration ability. Create tokens in Settings → API.
Authorization: Bearer <integration-personal-access-token>
Example request
curl -sS -X GET 'https://api.asklytic.com/v1/integration/usage-stats' \
-H 'Authorization: Bearer $INTEGRATION_TOKEN' \
-H 'Accept: application/json'Parameters
Name
In
Type and rules
grainRequired
query
stringdaymonthtotal
kindoptional
query
stringmax 255 charsnullable
Responses
`PeriodCountCollection`
Name
Type
Required
data[]
array<PeriodCountResource>
Required
period
string
Required
count
integer
Required
meta
object
Required
kinds[]
array<any>
Required
users[]
array<any>
Required
Unauthenticated
Name
Type
Required
messageError overview.
string
Required
Authorization error
Name
Type
Required
messageError overview.
string
Required
Validation error
Name
Type
Required
messageErrors overview.
string
Required
errorsA detailed description of each field that failed validation.
object<string, array<string>>
Required