---
title: "Get session connection"
method: GET
path: "/session-connections/{session_connection_id}"
tags: ["Session Connections"]
---

# Get session connection

`GET /session-connections/{session_connection_id}`

## Request

- Base URL: `https://api.metorial.com`
- URL: `https://api.metorial.com/session-connections/{session_connection_id}`
- Auth: HTTP bearer

Retrieves a specific connection from a session.

## Path parameters

- `session_connection_id` string, required

## Headers

- `Metorial-Version` string

## Response `200`

Successful response

- SubspaceSessionConnection
  - `object` 'session.connection', required: String representing the object's type
  - `id` string, required: Unique session connection identifier
  - `connection_state` 'connected' | 'disconnected', required: Connection state
  - `transport` 'mcp' | 'tool_call' | 'metorial_protocol' | 'system', required: Transport protocol used
  - `usage` Usage2, required: Usage statistics
    - `total_productive_client_message_count` number, required: Total productive client messages
    - `total_productive_provider_message_count` number, required: Total productive provider messages
  - `mcp` object, nullable, required: MCP connection details
    - `capabilities` object, required: MCP capabilities
    - `protocol_version` string, required: MCP protocol version
    - `transport` 'none' | 'sse' | 'streamable_http' | 'sessionless', required: MCP transport type
  - `session_id` string, required: Parent session ID
  - `participant` object, nullable, required
    - `object` 'session.participant', required: String representing the object's type
    - `id` string, required: Unique session participant identifier
    - `type` 'unknown' | 'provider' | 'agent' | 'system', required: Participant type
    - `identifier` string, required: Participant identifier
    - `name` string, required: Display name
    - `data` Data, required: Participant payload data
      - `identifier` string, required: Participant-specific identifier within the payload
      - `name` string, required: Participant-specific display name within the payload
    - `provider_id` string, nullable, required: Provider ID if associated
    - `connection_type` 'mcp' | 'metorial_protocol' | 'tool_call', nullable, required
    - `agent_id` string, nullable, required
    - `agent_instance_id` string, nullable, required
    - `identity_actor_id` string, nullable, required
    - `identity_id` string, nullable, required
    - `agent_actor_id` string, nullable, required
    - `agent_client_id` string, nullable, required
    - `consumer_id` string, nullable, required
    - `created_at` string, date-time, required: Timestamp when created
  - `has_errors` boolean, required: Whether the connection has any errors
  - `has_warnings` boolean, required: Whether the connection has any warnings
  - `created_at` string, date-time, required: Timestamp when created
  - `last_message_at` string, date-time, required: Timestamp of last message
  - `last_active_at` string, date-time, nullable, required: Timestamp when last active

## Other responses

- `400`: Invalid parameters or action
- `401`: Missing or invalid API key
- `403`: The key lacks permission for this resource
- `404`: No such resource
- `422`: Validation failed
- `429`: Rate limit exceeded
- `500`: Unexpected server error

---

[API](https://skmtc.dev/metorial/apis/metorial-api.md) - [All operations](https://skmtc.dev/metorial/apis/metorial-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metorial/apis/metorial-api/revisions/10ccc89f3eac?raw)
