Skip to content
中文

List Sessions

GET/anthropic/v1/sessions◐ Partial

Official Claude documentation ↗

Request parameters

  • agent_idstringoptional

    query: Filter results by agent ID.

  • agent_versionnumberoptional

    query: Filter by agent version; only applies when agent_id is also set.

  • created_at[gt]stringoptional

    query: Return records created strictly after this time.

  • created_at[gte]stringoptional

    query: Return records created at or after this time.

  • created_at[lt]stringoptional

    query: Return records created strictly before this time.

  • created_at[lte]stringoptional

    query: Return records created at or before this time.

  • deployment_idstringoptional

    query: Deployment ID (path or query parameter).

  • include_archivedbooleanoptional

    query: Whether to include archived records.

  • memory_store_idstringoptional

    query: Memory store ID (path or query parameter).

  • orderstringoptional

    query: Order by creation time: asc oldest first, desc newest first (default).

  • More parameters (3)
    • statusesarrayoptional

      query: Filter by session status; repeat the parameter to match several.

    • limitnumberoptional

      query: Maximum number of items per page.

    • pagestringoptional

      query: Pagination cursor taken from the previous response's next_page.

Returns

200

Supports limit, page, agent_id and deployment_id. agent_version, time ranges, memory_store_id, include_archived, order and statuses are not supported and return 400.

Errors follow the Claude Managed Agents format — see error codes

Request

curl
curl https://api.deepraxis.com/anthropic/v1/sessions \
  -H "x-api-key: $PRAXIS_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: managed-agents-2026-04-01"
Python
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.deepraxis.com/anthropic",
    api_key="$PRAXIS_API_KEY",
)

result = client.beta.sessions.list()
print(result)
TypeScript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://api.deepraxis.com/anthropic",
  apiKey: "$PRAXIS_API_KEY",
});

const result = await client.beta.sessions.list();
console.log(result);

Response 200

{
  "data": [
    {
      "id": "sesn_d72b90b27a414fe5885adff0ac6b9b96",
      "type": "session",
      "agent": {
        "id": "agent_57d15145-7ef6-4bd3-8b33-2b8ddca88ac0",
        "type": "agent",
        "name": "文档助手(已更新)",
        "description": null,
        "system": "用一句话简短回答。",
        "model": {
          "id": "deepseek-flash"
        },
        "version": 2,
        "tools": [],
        "skills": [],
        "mcp_servers": [],
        "multiagent": null
      },
      "environment_id": "env_deepraxis_text_v1",
      "title": "文档测试",
      "metadata": {},
      "created_at": "2026-09-26T07:16:14.796Z",
      "updated_at": "2026-09-26T07:16:17.024Z",
      "archived_at": null,
      "status": "idle",
      "usage": {
        "input_tokens": 0,
        "output_tokens": 0,
        "cache_read_input_tokens": 0,
        "list_cost": null
      },
      "stats": {},
      "budget": null,
      "resources": [],
      "vault_ids": [],
      "outcome_evaluations": [],
      "deployment_id": null
    }
  ],
  "next_page": null,
  "prev_page": null
}

Response

HTTP 200

Successful response

application/json

Name Type Description
data array<object>
data[].id string
data[].agent object Resolved agent definition for a session. Snapshot of the agent at session creation time.
data[].archived_at null | string A timestamp in RFC 3339 format
data[].budget null | object A hard spend ceiling. The session stops issuing new model requests once the tracked list cost reaches max_list_cost.
data[].created_at string A timestamp in RFC 3339 format
data[].environment_id string
data[].metadata object
data[].outcome_evaluations array<object> Per-outcome evaluation state. One entry per define_outcome event sent to the session.
data[].resources array<object>
data[].stats object Timing statistics for a session.
data[].status string SessionStatus enum - rescheduling - Transient error occurred, retrying automatically. - running - Agent is actively executing. - idle - Agent is waiting for input, including user messages or tool confirmations. Sessions start in idle. - terminated - Session has ended, either due to an error or completion.
data[].title null | string
data[].type string
data[].updated_at string A timestamp in RFC 3339 format
data[].usage object Cumulative token usage for a session across all turns.
data[].vault_ids array<string> Vault IDs attached to the session at creation. Empty when no vaults were supplied.
data[].deployment_id null | string Deployment ID when the session was created from a deployment reference. Null otherwise.
next_page string | null