---
title: "Get a constrained Agent session"
method: GET
path: "/v1/agent-sessions/{agent_session_id}"
tags: ["Agent"]
---

# Get a constrained Agent session

`GET /v1/agent-sessions/{agent_session_id}`

## Path parameters

- `agent_session_id` string, required

## Response `200`

Agent session

- AgentSessionResponse
  - `request_id` string, required
  - `execution` Execution, required
    - `location` 'local' | 'cloud', required
    - `capability_id` string, nullable
    - `capability_version` string, nullable
  - `usage` Usage, required
    - `billable` boolean, required
    - `quantity` number, required
    - `unit` string, required
    - `credits` number
  - `warnings` string[], required
  - `data` AgentSession, required
    - `id` string, required
    - `workspace_id` string
    - `runtime` 'local' | 'cloud' | 'hybrid', required
    - `scope` Scope, required
      - `library_ids` LibraryId[], required
      - `asset_ids` AssetId[], required
    - `execution_policy` 'local_only' | 'prefer_local' | 'cloud_allowed' | 'cloud_required', required
    - `workflow` WorkflowReference
      - `id` string, required
      - `version` string, required
    - `data_egress_allowed` boolean, required
    - `created_at` string, date-time, required
    - `expires_at` string, date-time, required

## Other responses

- `default` — Standard Cerul error envelope

## Changes

- **2026-07-27** `c15615d54993` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/cerul-ai/apis/cerul-api/changes/v1/agent-sessions/:agent_session_id/get.md)

---

[API](https://skmtc.dev/cerul-ai/apis/cerul-api.md) · [All operations](https://skmtc.dev/cerul-ai/apis/cerul-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cerul-ai/cerul-api/revisions/c15615d54993/schema)
