Class ArtifactListParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class ArtifactListParams implements Params
Get artifact-creation activity for a given day, broken out by MIME type.
Returns the full (
artifact_type,is_shared) cube for the organization;next_pageis null except for grouped queries, which paginate. The cube can be broken out per product, per member, or per RBAC group viagroup_by[], and scoped viafilter[]. Requires an API key with theread:analyticsscope.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classArtifactListParams.BuilderA builder for ArtifactListParams.
-
Method Summary
Modifier and Type Method Description final LocalDatedate()UTC date in YYYY-MM-DD format. final Optional<List<String>>filter()Filters as dimension:value, e.g.final Optional<List<BetaAnalyticsArtifactGroupBy>>groupBy()Dimensions to break results out by: product,user_idand/orrbac_group_id.final Optional<Long>limit()Maximum rows to return (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 ArtifactListParams.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 ArtifactListParams.Builderbuilder()Returns a mutable builder for constructing an instance of ArtifactListParams. -
-
Method Detail
-
date
final LocalDate date()
UTC date in YYYY-MM-DD format. The day to get artifact activity for. 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.
-
filter
final Optional<List<String>> filter()
Filters as
dimension:value, e.g.filter[]=rbac_group_id:{id}. Repeat the param for OR within a dimension and across dimensions for AND. Supported dimensions on this endpoint:artifact_type,is_shared,product,rbac_group_id,user_id. Value forms:artifact_typeis a canonical artifact MIME type (e.g.text/markdown) orother;is_sharedistrueorfalse;productischat_cowork_unified,chat,claude_code, orcowork(the surfaces that create artifacts);rbac_group_idtakes 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 covered UTC day (time-of-usage attribution);user_idtakes a tagged user id (user_...), as emitted in responses. An unsupported dimension returns 400. At most 100 entries.chat_cowork_unifiedis accepted as aproductvalue only where Chat and Cowork unified is available.
-
groupBy
final Optional<List<BetaAnalyticsArtifactGroupBy>> groupBy()
Dimensions to break results out by:
product,user_idand/orrbac_group_id. The ungrouped artifact-type cube is finite and returned in full; grouped queries multiply the cube and paginate vianext_page.producttakes the valueschat_cowork_unified,chat,claude_code, orcowork(the surfaces that create artifacts).rbac_group_idattributes a user to every group they held at any point during the requested UTC day, so grouped rows are not an exclusive partition. At most 100 entries.
-
limit
final Optional<Long> limit()
Maximum rows to return (1-1000, default 100). The ungrouped artifact-type cube is finite and returned in full;
limitis the page size only whengroup_by[]multiplies the cube.
-
page
final Optional<String> page()
Opaque cursor from a previous response's
next_pagefield. Only valid withgroup_by[]— the ungrouped cube is never paginated.
-
_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 ArtifactListParams.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 ArtifactListParams.Builder builder()
Returns a mutable builder for constructing an instance of ArtifactListParams.
The following fields are required:
.date()
-
-
-
-