Skip to main content
GET
获取会话资源
每个请求都必须发送 ?beta=true

授权

X-Api-Key
string
header
默认值:sk-ant-local-default
必填

OMA 工作区 API 密钥。

请求头

anthropic-version
string
anthropic-beta
string

路径参数

session_id
string
必填

会话标识符。

resource_id
string
必填

会话资源标识符。

查询参数

beta
enum<boolean>
必填

为此接口启用 Beta API 合同,必须为 true

可用选项:
true

响应

请求成功。

所请求的会话资源。

type
enum<string>
必填
可用选项:
github_repository
示例:

"github_repository"

id
string
必填
示例:

"sesrsc_011CZkZCKr6eXyl0gWMOdQiu"

url
string
必填
示例:

"https://github.com/example-org/example-repo"

mount_path
string
必填
示例:

"/workspace/example-repo"

created_at
string<date-time>
必填

RFC 3339 格式的时间戳

示例:

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

updated_at
string<date-time>
必填

RFC 3339 格式的时间戳

示例:

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

checkout
object
示例: