---
title: "Get Session"
method: GET
path: "/v1/sessions/{session_id}?beta=true"
---

# Get Session

`GET /v1/sessions/{session_id}?beta=true`

## Path parameters

- `session_id` string, required

## Headers

- `x-api-key` string
- `anthropic-version` string
- `anthropic-beta` string

## Response `200`

Successful response (OK)

- BetaManagedAgentsSession — A Managed Agents `session`.
  - `type` 'session', required
  - `id` string, required
  - `status` 'rescheduling' | 'running' | 'idle' | 'terminated', required — SessionStatus enum
  - `created_at` string, date-time, required — A timestamp in RFC 3339 format
  - `updated_at` string, date-time, required — A timestamp in RFC 3339 format
  - `environment_id` string, required
  - `title` string, nullable, required
  - `metadata` object, required
  - `agent` BetaManagedAgentsSessionAgent, required — Resolved `agent` definition for a `session`. Snapshot of the `agent` at `session` creation time.
    - `type` 'agent', required
    - `id` string, required
    - `version` integer, required
    - `name` string, required
    - `description` string, nullable, required
    - `model` BetaManagedAgentsModelConfig, required — Model identifier and configuration.
      - `id` union, required — The model that will power your agent.\n\nSee [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
        - string
        - 'claude-opus-4-7' — Frontier intelligence for long-running agents and coding
        - 'claude-opus-4-6' — Most intelligent model for building agents and coding
        - 'claude-sonnet-4-6' — Best combination of speed and intelligence
        - 'claude-haiku-4-5' — Fastest model with near-frontier intelligence
        - 'claude-haiku-4-5-20251001' — Fastest model with near-frontier intelligence
        - 'claude-opus-4-5' — Premium model combining maximum intelligence with practical performance
        - 'claude-opus-4-5-20251101' — Premium model combining maximum intelligence with practical performance
        - 'claude-sonnet-4-5' — High-performance model for agents and coding
        - 'claude-sonnet-4-5-20250929' — High-performance model for agents and coding
      - `speed` 'standard' | 'fast' — Inference speed mode. `fast` provides significantly faster output token generation at premium pricing. Not all models support `fast`; invalid combinations are rejected at create time.
    - `system` string, nullable, required
    - `tools` BetaManagedAgentsAgentTool[], required
      - union — Union type for tool configurations returned in API responses.
        - object
          - `type` 'agent_toolset_20260401', required
          - `default_config` BetaManagedAgentsAgentToolsetDefaultConfig, required — Resolved default configuration for agent tools.
            - `enabled` boolean, required
            - `permission_policy` union, required — Permission policy for tool execution.
              - …
          - `configs` BetaManagedAgentsAgentToolConfig[], required
            - `name` 'bash' | 'edit' | 'read' | 'write' | 'glob' | 'grep' | 'web_fetch' | 'web_search', required — Built-in agent tool identifier.
            - `enabled` boolean, required
            - `permission_policy` union, required — Permission policy for tool execution.
              - …
        - object
          - `type` 'mcp_toolset', required
          - `mcp_server_name` string, required
          - `default_config` BetaManagedAgentsMCPToolsetDefaultConfig, required — Resolved default configuration for all tools from an MCP server.
            - `enabled` boolean, required
            - `permission_policy` union, required — Permission policy for tool execution.
              - …
          - `configs` BetaManagedAgentsMCPToolConfig[], required
            - `name` string, required
            - `enabled` boolean, required
            - `permission_policy` union, required — Permission policy for tool execution.
              - …
        - object — A custom tool as returned in API responses.
          - `type` 'custom', required
          - `name` string, required
          - `description` string, required
          - `input_schema` BetaManagedAgentsCustomToolInputSchema, required — JSON Schema for custom tool input parameters.
            - `type` 'object' — Must be 'object' for tool input schemas.
            - `properties` BetaManagedAgentsStruct
            - `required` string[] — List of required property names.
    - `mcp_servers` BetaManagedAgentsMCPServer[], required
      - `type` 'url', required
      - `name` string, required
      - `url` string, required
    - `skills` BetaManagedAgentsSkill[], required
      - union — Resolved skill as returned in API responses.
        - BetaManagedAgentsAnthropicSkill — A resolved Anthropic-managed skill.
          - `type` 'anthropic', required
          - `skill_id` string, required
          - `version` string, required
        - BetaManagedAgentsCustomSkill — A resolved user-created custom skill.
          - `type` 'custom', required
          - `skill_id` string, required
          - `version` string, required
    - `multiagent` BetaManagedAgentsSessionMultiagent, required — Resolved coordinator topology with full agent definitions for each roster member.
      - `type` 'coordinator', required
      - `agents` BetaManagedAgentsSessionThreadAgent[], required — Full `agent` definitions the coordinator may spawn as session threads.
        - `type` 'agent', required
        - `id` string, required
        - `version` integer, required
        - `name` string, required
        - `description` string, nullable, required
        - `model` BetaManagedAgentsModelConfig, required — Model identifier and configuration.
          - `id` union, required — The model that will power your agent.\n\nSee [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
            - string
            - 'claude-opus-4-7' — Frontier intelligence for long-running agents and coding
            - 'claude-opus-4-6' — Most intelligent model for building agents and coding
            - 'claude-sonnet-4-6' — Best combination of speed and intelligence
            - 'claude-haiku-4-5' — Fastest model with near-frontier intelligence
            - 'claude-haiku-4-5-20251001' — Fastest model with near-frontier intelligence
            - 'claude-opus-4-5' — Premium model combining maximum intelligence with practical performance
            - 'claude-opus-4-5-20251101' — Premium model combining maximum intelligence with practical performance
            - 'claude-sonnet-4-5' — High-performance model for agents and coding
            - 'claude-sonnet-4-5-20250929' — High-performance model for agents and coding
          - `speed` 'standard' | 'fast' — Inference speed mode. `fast` provides significantly faster output token generation at premium pricing. Not all models support `fast`; invalid combinations are rejected at create time.
        - `system` string, nullable, required
        - `tools` BetaManagedAgentsAgentTool[], required
          - union — Union type for tool configurations returned in API responses.
            - object
              - …
            - object
              - …
            - object — A custom tool as returned in API responses.
              - …
        - `mcp_servers` BetaManagedAgentsMCPServer[], required
          - `type` 'url', required
          - `name` string, required
          - `url` string, required
        - `skills` BetaManagedAgentsSkill[], required
          - union — Resolved skill as returned in API responses.
            - BetaManagedAgentsAnthropicSkill — A resolved Anthropic-managed skill.
              - …
            - BetaManagedAgentsCustomSkill — A resolved user-created custom skill.
              - …
  - `resources` BetaManagedAgentsSessionResource[], required
    - union
      - object
        - `type` 'github_repository', required
        - `id` string, required
        - `url` string, required
        - `mount_path` string, required
        - `checkout` union
          - object
            - `type` 'branch', required
            - `name` string, required — Branch name to check out.
          - object
            - `type` 'commit', required
            - `sha` string, required — Full commit SHA to check out.
        - `created_at` string, date-time, required — A timestamp in RFC 3339 format
        - `updated_at` string, date-time, required — A timestamp in RFC 3339 format
      - object
        - `type` 'file', required
        - `id` string, required
        - `file_id` string, required
        - `mount_path` string, required
        - `created_at` string, date-time, required — A timestamp in RFC 3339 format
        - `updated_at` string, date-time, required — A timestamp in RFC 3339 format
      - object — A memory store attached to an agent session.
        - `type` 'memory_store', required
        - `memory_store_id` string, required — The memory store ID (memstore_...). Must belong to the caller's organization and workspace.
        - `access` 'read_write' | 'read_only' — Access mode for an attached memory store.
        - `name` string, nullable — Display name of the memory store, snapshotted at attach time. Later edits to the store's name do not propagate to this resource.
        - `description` string — Description of the memory store, snapshotted at attach time. Rendered into the agent's system prompt. Empty string when the store has no description.
        - `instructions` string, nullable — Per-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.
        - `mount_path` string, nullable — Filesystem path where the store is mounted in the session container, e.g. /mnt/memory/user-preferences. Derived from the store's name. Output-only.
  - `vault_ids` string[], required — Vault IDs attached to the session at creation. Empty when no vaults were supplied.
  - `outcome_evaluations` BetaManagedAgentsOutcomeEvaluationResource[], required — Per-outcome evaluation state. One entry per define_outcome event sent to the session.
    - `type` 'outcome_evaluation', required
    - `outcome_id` string, required — Server-generated outc_ ID for this outcome.
    - `description` string, required — What the agent should produce.
    - `result` string, required — Current evaluation state. `pending` before the agent begins work; `running` while producing or revising; `evaluating` while the grader scores; `satisfied`/`max_iterations_reached`/`failed`/`interrupted` are terminal.
    - `iteration` integer, required — 0-indexed revision cycle the outcome is currently on.
    - `completed_at` string, date-time, required — A timestamp in RFC 3339 format
    - `explanation` string, nullable, required — Grader's verdict text from the most recent evaluation. For satisfied, explains why criteria are met; for needs_revision (intermediate), what's missing; for failed, why unrecoverable.
  - `usage` BetaManagedAgentsSessionUsage, required — Cumulative token usage for a session across all turns.
    - `input_tokens` integer — Total input tokens consumed across all turns.
    - `output_tokens` integer — Total output tokens generated across all turns.
    - `cache_read_input_tokens` integer — Total tokens read from prompt cache.
    - `cache_creation` BetaManagedAgentsCacheCreationUsage — Prompt-cache creation token usage broken down by cache lifetime.
      - `ephemeral_1h_input_tokens` integer — Tokens used to create 1-hour ephemeral cache entries.
      - `ephemeral_5m_input_tokens` integer — Tokens used to create 5-minute ephemeral cache entries.
  - `stats` BetaManagedAgentsSessionStats, required — Timing statistics for a session.
    - `duration_seconds` number, double — Elapsed time since session creation in seconds. For terminated sessions, frozen at the final update.
    - `active_seconds` number, double — Cumulative time in seconds the session spent in running status. Excludes idle time.
  - `archived_at` string, date-time, required — A timestamp in RFC 3339 format

## Other responses

- `400` — Invalid argument - The client specified an invalid argument
- `401` — Unauthenticated - The request does not have valid authentication credentials
- `403` — Permission denied - The caller does not have permission to execute the specified operation
- `404` — Not found - Some requested entity was not found
- `408` — Deadline exceeded - The deadline expired before the operation could complete
- `409` — Aborted - The operation was aborted due to concurrency issue
- `412` — Failed precondition - Operation was rejected because the system is not in required state
- `413` — Out of range - Operation was attempted past the valid range
- `429` — Resource exhausted - Some resource has been exhausted (rate limiting)
- `431` — Request header fields too large - Request metadata was too large
- `499` — Cancelled - The operation was cancelled by the client
- `500` — Internal - Internal server error
- `501` — Unimplemented - The operation is not implemented or supported
- `503` — Unavailable - The service is currently unavailable
- `504` — Deadline exceeded - Upstream service did not respond in time

## Changes

- **2026-05-06** `a4186730f56c` — 2 info
  - added the required property `agent/multiagent` to the response with the `200` status
  - added the required property `outcome_evaluations` to the response with the `200` status
- **2026-04-23** `681182707119` — 1 breaking, 1 info
  - added `#/components/schemas/BetaManagedAgentsMemoryStoreResource` to the `resources/items/` response property `oneOf` list for the response status `200`
  - added `memory_store` discriminator mapping keys to the `resources/items/` response property for the response status `200`
- **2026-04-16** `e0696f59ae07` — 1 info
  - added `subschema #2` to the `agent/model/id` response property `anyOf` list for the response status `200`
- **2026-04-08** `69486316563e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/anthropics/apis/anthropic-api/changes/v1/sessions/:session_id?beta=true/get.md)

---

[API](https://skmtc.dev/anthropics/apis/anthropic-api.md) · [All operations](https://skmtc.dev/anthropics/apis/anthropic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anthropics/apis/anthropic-api/revisions/478045ff0f4f?raw)
