List Sessions
Query parameters
Maximum number of results to return.
Opaque pagination cursor from a previous response.
When true, includes archived sessions. Default: false (exclude archived).
A timestamp in RFC 3339 format
Return sessions created at or after this time (inclusive).
A timestamp in RFC 3339 format
Return sessions created after this time (exclusive).
A timestamp in RFC 3339 format
Return sessions created at or before this time (inclusive).
A timestamp in RFC 3339 format
Return sessions created before this time (exclusive).
Filter sessions created with this agent ID.
Filter by agent version. Only applies when agent_id is also set.
ListOrder enum
Sort direction for results, ordered by created_at. Defaults to desc (newest first).
Filter sessions whose resources contain a memory_store with this memory store ID.
Filter sessions created by this deployment ID.
Filter by session status. Repeat the parameter to match any of multiple statuses.
Headers
Response
Successful response (OK)
Example response
{
"data": [],
"next_page": "page_MjAyNS0wNS0xNFQwMDowMDowMFo=",
"prev_page": "page_MjAyNS0wNS0xM1QwMDowMDowMFo="
}Changes
Changed in 17 of the 68 revisions of this API.3559
- ○
added
subschema #2to thedata/items/agent/model/idresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
subschema #2to thedata/items/agent/multiagent/anyOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/oneOf[BetaManagedAgentsSessionThreadAgent]/model/idresponse propertyanyOflist for the response status200response-property-any-of-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
added
BetaManagedAgentsBashToolConfigBetaManagedAgentsEditToolConfigBetaManagedAgentsReadToolConfigBetaManagedAgentsWriteToolConfigBetaManagedAgentsGlobToolConfigBetaManagedAgentsGrepToolConfigBetaManagedAgentsWebFetchToolConfigBetaManagedAgentsWebSearchToolConfigto thedata/items/agent/multiagent/anyOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/oneOf[BetaManagedAgentsSessionThreadAgent]/tools/items/oneOf[BetaManagedAgentsAgentToolset20260401]/configs/items/response propertyoneOflist for the response status200response-property-one-of-added
- ▲
added
BetaManagedAgentsBashToolConfigBetaManagedAgentsEditToolConfigBetaManagedAgentsReadToolConfigBetaManagedAgentsWriteToolConfigBetaManagedAgentsGlobToolConfigBetaManagedAgentsGrepToolConfigBetaManagedAgentsWebFetchToolConfigBetaManagedAgentsWebSearchToolConfigto thedata/items/agent/tools/items/oneOf[BetaManagedAgentsAgentToolset20260401]/configs/items/response propertyoneOflist for the response status200response-property-one-of-added
- ▲
removed the required property
data/items/agent/multiagent/anyOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/oneOf[BetaManagedAgentsSessionThreadAgent]/tools/items/oneOf[BetaManagedAgentsAgentToolset20260401]/configs/items/enabledfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/multiagent/anyOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/oneOf[BetaManagedAgentsSessionThreadAgent]/tools/items/oneOf[BetaManagedAgentsAgentToolset20260401]/configs/items/namefrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/multiagent/anyOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/oneOf[BetaManagedAgentsSessionThreadAgent]/tools/items/oneOf[BetaManagedAgentsAgentToolset20260401]/configs/items/permission_policyfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/tools/items/oneOf[BetaManagedAgentsAgentToolset20260401]/configs/items/enabledfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/tools/items/oneOf[BetaManagedAgentsAgentToolset20260401]/configs/items/namefrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/tools/items/oneOf[BetaManagedAgentsAgentToolset20260401]/configs/items/permission_policyfrom the response with the200statusresponse-required-property-removed
- ○
added discriminator to
data/items/agent/multiagent/anyOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/oneOf[BetaManagedAgentsSessionThreadAgent]/tools/items/oneOf[BetaManagedAgentsAgentToolset20260401]/configs/items/response property for the response status200response-property-discriminator-added
- ○
added discriminator to
data/items/agent/tools/items/oneOf[BetaManagedAgentsAgentToolset20260401]/configs/items/response property for the response status200response-property-discriminator-added
- ▲
- ▲
response property
data/items/agent/descriptionlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
data/items/agent/systemlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
data/items/deployment_idlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
data/items/outcome_evaluations/items/explanationlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
data/items/resources/items/oneOf[BetaManagedAgentsMemoryStoreResource]/instructionslist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
data/items/resources/items/oneOf[BetaManagedAgentsMemoryStoreResource]/mount_pathlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
data/items/resources/items/oneOf[BetaManagedAgentsMemoryStoreResource]/namelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
data/items/titlelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
next_pagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
prev_pagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
the
data/items/resources/items/oneOf[BetaManagedAgentsMemoryStoreResource]/instructionsresponse property's maxLength was unset from4096for the response status200response-property-max-length-unset
- ▲
the
data/items/resources/items/oneOf[BetaManagedAgentsGitHubRepositoryResource]/checkoutresponse's property type/format changed fromobject/to/for status200response-property-type-changed
- ○
removed
BetaManagedAgentsBudgetfrom thedata/items/budgetresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
removed
BetaManagedAgentsMountModefrom thedata/items/resources/items/oneOf[BetaManagedAgentsMemoryStoreResource]/accessresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
removed
BetaManagedAgentsServerToolUsagefrom thedata/items/usage/allOf[BetaManagedAgentsSessionUsage]/server_tool_useresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
removed
BetaManagedAgentsSessionMultiagentfrom thedata/items/agent/multiagentresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
removed
BetaMonetaryAmountfrom thedata/items/usage/allOf[BetaManagedAgentsSessionUsage]/list_costresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
removed
BetaTimestampfrom thedata/items/archived_atresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
removed
BetaTimestampfrom thedata/items/outcome_evaluations/items/completed_atresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
added
BetaManagedAgentsBudgetsubschema #2to thedata/items/budgetresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaManagedAgentsMountModesubschema #2to thedata/items/resources/items/oneOf[BetaManagedAgentsMemoryStoreResource]/accessresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaManagedAgentsRepositoryCheckoutsubschema #2to thedata/items/resources/items/oneOf[BetaManagedAgentsGitHubRepositoryResource]/checkoutresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaManagedAgentsServerToolUsagesubschema #2to thedata/items/usage/allOf[BetaManagedAgentsSessionUsage]/server_tool_useresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaManagedAgentsSessionMultiagentsubschema #2to thedata/items/agent/multiagentresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaMonetaryAmountsubschema #2to thedata/items/usage/allOf[BetaManagedAgentsSessionUsage]/list_costresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaTimestampsubschema #2to thedata/items/archived_atresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
BetaTimestampsubschema #2to thedata/items/outcome_evaluations/items/completed_atresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
removed discriminator from
data/items/resources/items/oneOf[BetaManagedAgentsGitHubRepositoryResource]/checkoutresponse property for the response status200response-property-discriminator-removed
- ○
removed
BetaManagedAgentsBranchCheckoutBetaManagedAgentsCommitCheckoutfrom thedata/items/resources/items/oneOf[BetaManagedAgentsGitHubRepositoryResource]/checkoutresponse propertyoneOflist for the response status200response-property-one-of-removed
- ▲
- ▲
added
BetaManagedAgentsSessionThreadAgentBetaManagedAgentsAdvisorto thedata/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/response propertyoneOflist for the response status200response-property-one-of-added
- ▲
the
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/response's property type/format changed fromobject/to/for status200response-property-type-changed
- ▲
removed the required property
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/descriptionfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/idfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/mcp_serversfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/modelfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/namefrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/skillsfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/systemfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/toolsfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/typefrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/versionfrom the response with the200statusresponse-required-property-removed
- ○
added the optional property
data/items/agent/model/inference_geoto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/usage/allOf[BetaManagedAgentsSessionUsage]/active_secondsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/usage/allOf[BetaManagedAgentsSessionUsage]/list_costto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/usage/allOf[BetaManagedAgentsSessionUsage]/server_tool_useto the response with the200statusresponse-optional-property-added
- ○
added discriminator to
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/response property for the response status200response-property-discriminator-added
- ○
added the required property
data/items/budgetto the response with the200statusresponse-required-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added
subschema #4subschema #5subschema #6subschema #7subschema #11subschema #12to thedata/items/agent/model/idresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
subschema #4subschema #5subschema #6subschema #7subschema #11subschema #12to thedata/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/model/idresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
removed
subschema #4subschema #5subschema #6subschema #10subschema #11from thedata/items/agent/model/idresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
removed
subschema #4subschema #5subschema #6subschema #10subschema #11from thedata/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/model/idresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
- ○
added the optional property
data/items/agent/model/effortto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/model/effortto the response with the200statusresponse-optional-property-added
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the optional property
prev_pageto the response with the200statusresponse-optional-property-added
This revision also has 20 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added
subschema #2to thedata/items/agent/model/idresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
subschema #2to thedata/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/model/idresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
- ○
added the new optional
queryrequest parameterdeployment_idnew-optional-request-parameter
- ○
added the optional property
data/items/deployment_idto the response with the200statusresponse-optional-property-added
- ○
- ○
added
subschema #2to thedata/items/agent/model/idresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
subschema #2to thedata/items/agent/multiagent/allOf[BetaManagedAgentsSessionMultiagent]/oneOf[BetaManagedAgentsSessionMultiagentCoordinator]/agents/items/model/idresponse propertyanyOflist for the response status200response-property-any-of-added
- ○