Tools
Get tool call histogram
Changed onReturns per-bucket call counts over the range. Omit toolName to aggregate across every tool in the project; pass it to scope the histogram to a single tool.
get/v1/projects/{projectSlug}/tools/histogram
Request
- Base URLhttps://api.latitude.so
- AuthHTTP bearer
Path parameters
projectSlugstring required
Project slug (human-readable identifier)
Project slug (human-readable identifier). The CLI can also read this from the LATITUDE_PROJECT_SLUG environment variable.
Query parameters
fromIsostring date-time
Lower bound (inclusive) of the time range. Defaults to 7 days before toIso.
toIsostring date-time
Upper bound (inclusive) of the time range. Defaults to now.
toolNamestring
Tool name. URL-encode names containing special characters.
bucketSecondsinteger
Bucket width in seconds. Derived from the range (~30 buckets) when omitted.
errorsOnly'true' | 'false'
When true, scope every aggregate to failed calls only.
Response
Call histogram
Changes
- info
endpoint added
- info