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}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

orgId*string
sessionId*string
Length1 <= length <= 256
sha256*string
Match^[0-9a-f]{16,64}$

Query Parameters

name?string
Length1 <= length <= 255

Response Body

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"}