Skip to main content
Mintlify
current

Search documentation

Type to search this documentation.

Get assistant caller stats

GET/v1/analytics/{projectId}/assistant/caller-statsGet assistant caller stats

Returns a breakdown of assistant query counts by caller type (web, API, and other) for the specified date range.

Authenticate with an admin API key.

Parameters

projectIdstringpathrequired

Your project ID. Can be copied from the [API keys](https://app.mintlify.com/settings/organization/api-keys) page in your dashboard.

dateFromstringquery

Date in ISO 8601 or YYYY-MM-DD format

dateTostringquery

Date in ISO 8601 or YYYY-MM-DD format. `dateTo` is an exclusive upper limit. Results include dates before, but not on, the specified date.

Responses

200Assistant query counts broken down by caller typeapplication/json
objectAssistantCallerStatsResponse
apinumberrequired

Number of assistant queries originating from API calls.

othernumberrequired

Number of assistant queries from other sources (e.g., integrations, SDKs).

totalnumberrequired

Total assistant queries across all caller types.

webnumberrequired

Number of assistant queries originating from the web (documentation site).

Example response
{
  "api": 0,
  "other": 0,
  "total": 0,
  "web": 0
}
400Invalid query parametersapplication/json
objectAnalyticsErrorResponse
detailsarray of object

Additional details about the error.

Show child attributes
Show array items
messagestringrequired

Description of a specific validation or processing error.

errorstringrequired

Error message describing what went wrong.

Example response
{
  "details": [
    {
      "message": "string"
    }
  ],
  "error": "string"
}
500Server errorapplication/json
objectAnalyticsErrorResponse
detailsarray of object

Additional details about the error.

Show child attributes
Show array items
messagestringrequired

Description of a specific validation or processing error.

errorstringrequired

Error message describing what went wrong.

Example response
{
  "details": [
    {
      "message": "string"
    }
  ],
  "error": "string"
}
Documentation menu