> ## Documentation Index
> Fetch the complete documentation index at: https://docs.asteroid.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Agent Shared Files

> Deprecated: resolves the agent's latest published workflow version's shared files. Use the workflow-scoped endpoint to target a specific version.



## OpenAPI

````yaml https://odyssey.asteroid.ai/agents/v2/openapi.yaml get /agents/{agentId}/shared-files
openapi: 3.1.0
info:
  title: Agent Service
  version: v1
servers:
  - description: V2 API
    url: https://odyssey.asteroid.ai/agents/v2
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
  - name: Execution
  - name: Files
  - name: Agent Profiles
  - name: Agent Profile Pools
  - name: Workflows
  - name: Schema
  - name: Documentation
  - name: Context
paths:
  /agents/{agentId}/shared-files:
    get:
      tags:
        - Files
      summary: Get Agent Shared Files
      description: >-
        Deprecated: resolves the agent's latest published workflow version's
        shared files. Use the workflow-scoped endpoint to target a specific
        version.
      operationId: AgentSharedFilesGet
      parameters:
        - in: path
          name: agentId
          required: true
          schema:
            $ref: '#/components/schemas/Common.uuid'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Agents.Files.SharedFilesResponse'
          description: The request has succeeded.
        '404':
          content:
            text/plain:
              schema:
                enum:
                  - Agent not found.
                type: string
          description: The server cannot find the requested resource.
      deprecated: true
components:
  schemas:
    Common.uuid:
      format: uuid
      type: string
    Agents.Files.SharedFilesResponse:
      description: Response containing all shared files for an agent
      properties:
        files:
          items:
            $ref: '#/components/schemas/Agents.Files.SharedFile'
          type: array
        totalSize:
          format: int64
          type: integer
      required:
        - files
        - totalSize
      type: object
    Agents.Files.SharedFile:
      description: A file in the agent's persistent shared storage
      properties:
        agentId:
          $ref: '#/components/schemas/Common.uuid'
        checksum:
          description: >-
            Hex-encoded SHA-256 of the file contents. Used for change and rename
            detection when diffing versions. Absent when the checksum is
            unknown.
          type: string
        createdAt:
          format: date-time
          type: string
        downloadUrl:
          format: uri
          type: string
        fileName:
          type: string
        filePath:
          type: string
        fileSize:
          format: int64
          type: integer
        id:
          $ref: '#/components/schemas/Common.uuid'
        isFrozen:
          type: boolean
        lastModifiedByExecutionId:
          $ref: '#/components/schemas/Common.uuid'
        mimeType:
          type: string
        updatedAt:
          format: date-time
          type: string
        version:
          type: integer
      required:
        - id
        - agentId
        - filePath
        - fileName
        - fileSize
        - createdAt
        - updatedAt
        - version
        - isFrozen
        - downloadUrl
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: X-Asteroid-Agents-Api-Key
      type: apiKey

````