Visitar URL original
Query Customer Agent Conversation Metrics | Klaviyo API ReferenceSkip to content

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

KlaviyoKlaviyoDevelopers

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.

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

Returns conversation-level aggregates across the requested timeframe.

A single call may request multiple statistics (volume and/or resolution_rate); each row of results carries the bucket-identifying groupings values and computed statistics for that bucket. Optionally group by channel or status, or omit groupings for a single overall row.

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

Query parameters

  • fields[customer-agent-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-values-report
    • attributes#objectrequired
      Show 4 fields
      • statistics#string[]required

        Metrics to compute for each grouping bucket. Combine volume and resolution_rate in one call to receive both per bucket.

        Allowed values:
        • volume
        • resolution_rate
      • timeframe#objectrequired

        Time window for the report.

        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

      • groupings#string[]

        Optional dimension to break the result down by. Provide exactly one of channel or status, or omit entirely for a single aggregate row.

        Allowed values:
        • channel
        • status

        Default: []

      • filter#stringnullable

        Optional Klaviyo filter syntax. Use any(channel,[...]) to narrow by channel. When omitted, returns aggregates across every channel.

        Example: any(channel,["sms","web-chat"])

Responses

201Success

Content type: application/vnd.api+json

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

      Opaque identifier for the values report response.

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

        Computed values-report rows.

        Show 2 fields
        • groupings#objectrequired

          Bucket-identifying values for this row. Empty when the request omits groupings for a single aggregate row.

        • 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