Skip to main content
POST
Archive Session Thread
Every request requires ?beta=true.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-version
string
anthropic-beta
string

Path Parameters

session_id
string
required

Path parameter session_id

thread_id
string
required

Path parameter thread_id

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true

Response

Successful response (OK)

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

type
enum<string>
required
Available options:
session_thread
Example:

"session_thread"

id
string
required

Unique identifier for this thread.

Example:

"sthr_011CZkZVWa6oIjw0rgXZpnBt"

session_id
string
required

The session this thread belongs to.

Example:

"sesn_011CZkZAtmR3yMPDzynEDxu7"

status
enum<string>
required

Current execution status of the thread.

Available options:
running,
idle,
rescheduling,
terminated
Example:

"idle"

agent
object
required

Resolved agent definition for this thread. Snapshot of the agent at thread creation time.

Example:
parent_thread_id
string | null
required

Parent thread that spawned this thread. Null for the primary thread.

Example:

null

created_at
string<date-time>
required

When the thread was created.

Example:

"2026-03-15T10:00:00Z"

updated_at
string<date-time>
required

When the thread was last updated.

Example:

"2026-03-15T10:00:00Z"

archived_at
string<date-time> | null
required

When the thread was archived. Null if not archived.

Example:

null

usage
object | null
required

Cumulative token usage for this thread. Null until the thread's first idle transition.

Example:
stats
object | null
required

Timing statistics for this thread. Null until the thread's first status transition.

Example: