Class SummaryListParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class SummaryListParams implements Params
Get organization-wide activity summaries for a date range.
Returns one entry per day from
starting_date(inclusive) toending_date(exclusive) indata, the samedata/next_pageenvelope as the other analytics list endpoints; the series is currently returned in full, sonext_pageis always null. Data is typically available with a 1-day lag and may be revised by a few percent over the following days: whenending_dateis omitted it defaults to the most recent available day + 1, so the last entry covers the most recent available day. The series can be scoped to an RBAC group viafilter[]=rbac_group_id:{id}. Available to organizations on a Claude Enterprise plan. Requires an API key with theread:analyticsscope.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSummaryListParams.BuilderA builder for SummaryListParams.
-
Method Summary
Modifier and Type Method Description final LocalDatestartingDate()UTC date in YYYY-MM-DD format. final Optional<LocalDate>endingDate()UTC date in YYYY-MM-DD format. final Optional<List<String>>filter()Filters as dimension:value.final Optional<Long>limit()Number of results per page (1-1000, default 100). final Optional<String>page()Opaque cursor from a previous response's next_pagefield.final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final SummaryListParams.BuildertoBuilder()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static SummaryListParams.Builderbuilder()Returns a mutable builder for constructing an instance of SummaryListParams. -
-
Method Detail
-
startingDate
final LocalDate startingDate()
UTC date in YYYY-MM-DD format. Start of the date range (inclusive). Data is typically available with a 1-day lag (varies by query; the error for a too-recent date names the latest available day) and may be revised by a few percent over the following days. No earlier than 2026-01-01.
-
endingDate
final Optional<LocalDate> endingDate()
UTC date in YYYY-MM-DD format. End of the date range (exclusive). Data is typically available with a 1-day lag, so this can be at most today — which is also the default when omitted, making the last entry cover the most recent available day. Data may be revised by a few percent over the following days. The range may span at most 366 days.
-
filter
final Optional<List<String>> filter()
Filters as
dimension:value. Onlyrbac_group_idis supported (e.g.filter[]=rbac_group_id:{id}); repeat the param to OR across groups. Scopes the whole day series to members of the matching group(s), re-aggregated from member-level activity — org-wide seat/invite fields and the adoption rates derived from them are null on scoped rows.rbac_group_idaccepts the tagged id (rbac_group_..., as emitted in responses and by the spend-limits API) or a bare group UUID, and matches users who held the group at any point during each UTC day (time-of-usage attribution). At most 100 entries.
-
limit
final Optional<Long> limit()
Number of results per page (1-1000, default 100). The day series (at most 366 entries) is currently returned in full in a single page, so
limitdoes not yet shorten it.
-
page
final Optional<String> page()
Opaque cursor from a previous response's
next_pagefield.next_pageis currently always null, so there is never a cursor to send.
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final SummaryListParams.Builder toBuilder()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
builder
final static SummaryListParams.Builder builder()
Returns a mutable builder for constructing an instance of SummaryListParams.
The following fields are required:
.startingDate()
-
-
-
-