---
title: "Query Customer Agent Tool Values"
description: "How to call Query Customer Agent Tool Values (POST /api/customer-agent-tool-values-reports) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/query_customer_agent_tool_values_beta"
revision: "2026-10-15.pre"
operationId: "query_customer_agent_tool_values_beta"
aliases: ["create_customer_agent_tool_values_report"]
method: "POST"
endpoint: "https://a.klaviyo.com/api/customer-agent-tool-values-reports"
authentication: "privateKey"
scopes: ["agents:read"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
preRelease: "BETA"
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/query_customer_agent_tool_values_beta.json"
jsonApi: {"fields":{"customer-agent-tool-values-report":["id","results"]}}
related: ["https://developers.klaviyo.com/en/reference/customer-agent-beta/llms.txt","https://developers.klaviyo.com/en/reference/list_customer_agent_conversations_beta.md","https://developers.klaviyo.com/en/reference/retrieve_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/reference/create_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/reference/update_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/reference/query_customer_agent_skill_values_beta.md","https://developers.klaviyo.com/en/reference/query_customer_agent_values_beta.md","https://developers.klaviyo.com/en/reference/get_agent_message_ids_for_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/reference/get_agent_messages_for_customer_agent_conversation_beta.md"]
---

# Query Customer Agent Tool Values

> This is the Markdown version of https://developers.klaviyo.com/en/reference/query_customer_agent_tool_values_beta

```http
POST https://a.klaviyo.com/api/customer-agent-tool-values-reports
```


> [!WARNING]
> **This endpoint is in beta and subject to change.**
> A beta revision header (2026-10-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy.md) for more information.


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.pre` (required)
- Scopes: `agents:read`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/query_customer_agent_tool_values_beta.json)

## Example request

### curl

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/customer-agent-tool-values-reports' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15.pre' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "customer-agent-tool-values-report",
    "attributes": {
      "statistics": [
        "count"
      ],
      "groupings": [
        "tool"
      ],
      "timeframe": {
        "start": "2026-05-01T00:00:00+00:00",
        "end": "2026-06-01T00:00:00+00:00"
      },
      "filter": "any(tool,[\"klaviyo:get_orders_shopify\"]),any(source,[\"conversation\"])"
    }
  }
}'
```

### CLI

```bash
klaviyo beta customer-agent query-customer-agent-tool-values \
  -d '{
  "data": {
    "type": "customer-agent-tool-values-report",
    "attributes": {
      "statistics": [
        "count"
      ],
      "groupings": [
        "tool"
      ],
      "timeframe": {
        "start": "2026-05-01T00:00:00+00:00",
        "end": "2026-06-01T00:00:00+00:00"
      },
      "filter": "any(tool,[\"klaviyo:get_orders_shopify\"]),any(source,[\"conversation\"])"
    }
  }
}'
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

## Query parameters

- `fields[customer-agent-tool-values-report]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `id`, `results`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15.pre`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `customer-agent-tool-values-report`
  - `attributes` (object, required)
    - `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` (object, required): Time window for the report. Explicit ranges can span at most 90 days.
      - `key` (string, nullable): Named preset window. 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` (string, nullable): 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"])`

### Example request body

```json
{
  "data": {
    "type": "customer-agent-tool-values-report",
    "attributes": {
      "statistics": [
        "count"
      ],
      "groupings": [
        "tool"
      ],
      "timeframe": {
        "start": "2026-05-01T00:00:00+00:00",
        "end": "2026-06-01T00:00:00+00:00"
      },
      "filter": "any(tool,[\"klaviyo:get_orders_shopify\"]),any(source,[\"conversation\"])"
    }
  }
}
```

## Responses

### 201: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `customer-agent-tool-values-report`
  - `id` (string, required): Opaque identifier for the tool-values report response.
  - `attributes` (object, required)
    - `results` (object[], required): Computed tool-values-report rows.
      - `groupings` (object, required): Bucket-identifying values for this row (the namespaced tool id).
      - `statistics` (object, required): Computed metrics for this row. Only the statistics named in the request appear here.
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": {
    "type": "customer-agent-tool-values-report",
    "id": "string",
    "attributes": {
      "results": [
        {
          "groupings": {},
          "statistics": {}
        }
      ]
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
