Class SessionListParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class SessionListParams implements Params
List Sessions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSessionListParams.BuilderA builder for SessionListParams.
public final classSessionListParams.OrderSort direction for results, ordered by
created_at. Defaults todesc(newest first).public final classSessionListParams.Status
-
Method Summary
Modifier and Type Method Description final Optional<String>agentId()Filter sessions created with this agent ID. final Optional<Integer>agentVersion()Filter by agent version. final Optional<OffsetDateTime>createdAtGt()Return sessions created after this time (exclusive). final Optional<OffsetDateTime>createdAtGte()Return sessions created at or after this time (inclusive). final Optional<OffsetDateTime>createdAtLt()Return sessions created before this time (exclusive). final Optional<OffsetDateTime>createdAtLte()Return sessions created at or before this time (inclusive). final Optional<String>deploymentId()Filter sessions created by this deployment ID. final Optional<Boolean>includeArchived()When true, includes archived sessions. final Optional<Integer>limit()Maximum number of results to return. final Optional<String>memoryStoreId()Filter sessions whose resources contain a memory_storewith this memory store ID.final Optional<SessionListParams.Order>order()Sort direction for results, ordered by created_at.final Optional<String>page()Opaque pagination cursor from a previous response. final Optional<List<SessionListParams.Status>>statuses()Filter by session status. final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send managed-agents-2026-04-01in 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 SessionListParams.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 SessionListParamsnone()final static SessionListParams.Builderbuilder()Returns a mutable builder for constructing an instance of SessionListParams. -
-
Method Detail
-
agentVersion
final Optional<Integer> agentVersion()
Filter by agent version. Only applies when
agent_idis also set.
-
createdAtGt
final Optional<OffsetDateTime> createdAtGt()
Return sessions created after this time (exclusive).
-
createdAtGte
final Optional<OffsetDateTime> createdAtGte()
Return sessions created at or after this time (inclusive).
-
createdAtLt
final Optional<OffsetDateTime> createdAtLt()
Return sessions created before this time (exclusive).
-
createdAtLte
final Optional<OffsetDateTime> createdAtLte()
Return sessions created at or before this time (inclusive).
-
deploymentId
final Optional<String> deploymentId()
Filter sessions created by this deployment ID.
-
includeArchived
final Optional<Boolean> includeArchived()
When true, includes archived sessions. Default: false (exclude archived).
-
memoryStoreId
final Optional<String> memoryStoreId()
Filter sessions whose resources contain a
memory_storewith this memory store ID.
-
order
final Optional<SessionListParams.Order> order()
Sort direction for results, ordered by
created_at. Defaults todesc(newest first).
-
statuses
final Optional<List<SessionListParams.Status>> statuses()
Filter by session status. Repeat the parameter to match any of multiple statuses.
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
managed-agents-2026-04-01in 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 SessionListParams.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 SessionListParams none()
-
builder
final static SessionListParams.Builder builder()
Returns a mutable builder for constructing an instance of SessionListParams.
-
-
-
-