Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/query_customer_agent_tool_values_beta.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/query_customer_agent_tool_values_beta.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-10-15

This endpoint is in beta. Call it with the revision header 2026-10-15.pre. Beta endpoints may change before they're generally available. See our versioning and deprecation policy for more information.

Query Customer Agent Tool Values

POSThttps://a.klaviyo.com/api/customer-agent-tool-values-reports

Returns per-tool aggregates across the requested timeframe.

Each row of results is one tool bucket with the requested statistics. Counts are at the invocation level: one conversation that calls a tool multiple times contributes multiple invocations to that tool's bucket.

Revision header
revision: 2026-10-15.prerequired
Scopes
agents:read
Rate limits
Burst: 3/sSteady: 60/m

Query parameters

  • fields[customer-agent-tool-values-report]#string[]

    For more information please visit API overview

    Allowed values:
    • id
    • results

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-10-15.pre

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • customer-agent-tool-values-report
    • attributes#objectrequired
      Show 4 fields
      • statistics#string[]required

        Metrics to compute for each tool bucket. Combine any of count, last_call, avg_duration_ms, and success_rate in one call to receive them per bucket.

        Allowed values:
        • count
        • last_call
        • avg_duration_ms
        • success_rate
      • groupings#string[]required

        Required grouping. Each result row corresponds to one tool.

        Allowed values:
        • tool
      • timeframe#objectrequired

        Time window for the report. Explicit ranges can span at most 90 days.

        Show 3 fields
        • key#stringnullable

          Named preset window.

          Show 9 allowed values
          • today
          • yesterday
          • this_week
          • last_week
          • last_7_days
          • last_30_days
          • last_90_days
          • this_month
          • last_month
        • start#string<date-time>nullable

          ISO-8601 lower-bound (inclusive) for the report window.

          Example: 2026-05-01T00:00:00+00:00

        • end#string<date-time>nullable

          ISO-8601 upper-bound (exclusive) for the report window.

          Example: 2026-06-01T00:00:00+00:00

      • filter#stringnullable

        Optional Klaviyo filter syntax. Use any(tool,[...]) to narrow to specific namespaced tool ids; use any(source,[...]) to narrow by call source (conversation or test). When omitted, returns aggregates for every tool the company has called in the timeframe.

        Example: any(tool,["klaviyo:get_orders_shopify"]),any(source,["conversation"])

Responses

201Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • customer-agent-tool-values-report
    • id#stringrequired

      Opaque identifier for the tool-values report response.

    • attributes#objectrequired
      Show 1 field
      • results#object[]required

        Computed tool-values-report rows.

        Show 2 fields
        • groupings#objectrequired

          Bucket-identifying values for this row (the namespaced tool id).

        • statistics#objectrequired

          Computed metrics for this row. Only the statistics named in the request appear here.

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string