Claude Platform Docs

Threads

List Session Threads
ThreadListPage beta().sessions().threads().list(ThreadListParamsparams = ThreadListParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/v1/sessions/{session_id}/threads
Get Session Thread
BetaManagedAgentsSessionThread beta().sessions().threads().retrieve(ThreadRetrieveParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/v1/sessions/{session_id}/threads/{thread_id}
Archive Session Thread
BetaManagedAgentsSessionThread beta().sessions().threads().archive(ThreadArchiveParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/v1/sessions/{session_id}/threads/{thread_id}/archive
Models
class BetaManagedAgentsSessionThread:

An execution thread within a session. Each session has one primary thread plus zero or more child threads spawned by the coordinator.

class BetaManagedAgentsSessionThreadStats:

Timing statistics for a session thread.

Optional<Double> activeSeconds

Cumulative time in seconds the thread spent actively running. Excludes idle time.

formatdouble
Optional<Double> durationSeconds

Elapsed time since thread creation in seconds. For archived threads, frozen at the final update.

formatdouble
Optional<Double> startupSeconds

Time in seconds for the thread to begin running. Zero for child threads, which start immediately.

formatdouble
enum BetaManagedAgentsSessionThreadStatus:

SessionThreadStatus enum

RUNNING("running")
IDLE("idle")
RESCHEDULING("rescheduling")
TERMINATED("terminated")
class BetaManagedAgentsSessionThreadUsage:

Cumulative token usage for a session thread across all turns.

class BetaManagedAgentsStreamSessionThreadEvents: A class that can be one of several variants.union

Server-sent event in a single thread's stream.

ThreadsEvents

List Session Thread Events
EventListPage beta().sessions().threads().events().list(EventListParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/v1/sessions/{session_id}/threads/{thread_id}/events
Stream Session Thread Events
BetaManagedAgentsStreamSessionThreadEvents beta().sessions().threads().events().streamStreaming(EventStreamParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/v1/sessions/{session_id}/threads/{thread_id}/stream