Class DreamListParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class DreamListParams implements Params
List the dreams in the workspace, newest first.
Archived dreams are left out unless
include_archivedistrue.See the Dreams guide for how to page through dreams.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDreamListParams.BuilderA builder for DreamListParams.
-
Method Summary
Modifier and Type Method Description final Optional<OffsetDateTime>createdAtGt()Return only dreams created after this time (exclusive), in RFC 3339. final Optional<OffsetDateTime>createdAtLt()Return only dreams created before this time (exclusive), in RFC 3339. final Optional<Boolean>includeArchived()Whether to include archived dreams. final Optional<Integer>limit()The maximum number of dreams to return, from 1 to 100. final Optional<String>page()The cursor for the page to return, taken from next_pagein a previous response.final Optional<List<BetaDreamStatus>>statuses()Return only dreams that have one of these statuses. final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send dreaming-2026-04-21in this header.final Optional<String>workspaceId()Optional header to select the Workspace for this request. final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final DreamListParams.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 DreamListParamsnone()final static DreamListParams.Builderbuilder()Returns a mutable builder for constructing an instance of DreamListParams. -
-
Method Detail
-
createdAtGt
final Optional<OffsetDateTime> createdAtGt()
Return only dreams created after this time (exclusive), in RFC 3339.
-
createdAtLt
final Optional<OffsetDateTime> createdAtLt()
Return only dreams created before this time (exclusive), in RFC 3339.
-
includeArchived
final Optional<Boolean> includeArchived()
Whether to include archived dreams. Defaults to
false.
-
limit
final Optional<Integer> limit()
The maximum number of dreams to return, from 1 to 100. Defaults to 20.
-
page
final Optional<String> page()
The cursor for the page to return, taken from
next_pagein a previous response.Leave it out to get the first page.
-
statuses
final Optional<List<BetaDreamStatus>> statuses()
Return only dreams that have one of these statuses.
Repeat the parameter to give more than one status. Leave it out to return dreams of every status.
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
dreaming-2026-04-21in this header.
-
workspaceId
final Optional<String> workspaceId()
Optional header to select the Workspace for this request. The value is a Workspace ID (for example,
wrkspc_011CZkZaBF1tNoB5wlCeusgy).Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
-
_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 DreamListParams.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.
-
none
final static DreamListParams none()
-
builder
final static DreamListParams.Builder builder()
Returns a mutable builder for constructing an instance of DreamListParams.
-
-
-
-