AgentConnect
Sessions

Download a file a session shared

Resolves the digest a [shared: …] marker records (its first 16 hex characters, or the whole SHA-256) to the snapshot taken when the agent shared the file, with a short-lived signed URL that downloads it as an attachment. The snapshot is the published revision even after the workspace file changes, and it is readable until the session’s content is deleted. The caller must be able to view the session. Not found when the deployment has no transfer bucket, the share predates snapshots, or its upload failed; the console then falls back to the digest-checked workspace download.

GET
/v1/orgs/{orgId}/sessions/{sessionId}/shared-files/{sha256}

授权

bearerAuth
授权Bearer <token>

位置: header

路径参数

orgId*string
sessionId*string
长度1 <= length <= 256
sha256*string
匹配^[0-9a-f]{16,64}$

查询参数

name?string
长度1 <= length <= 255

响应主体

application/json

application/json

curl -X GET "https://example.com/v1/orgs/string/sessions/string/shared-files/string"
{  "name": "string",  "bytes": -9007199254740991,  "url": "string",  "expiresAt": "string"}