---
title: "GET /asset/agent-space/{agentSpaceId}/assets/{assetId}/files"
method: GET
path: "/asset/agent-space/{agentSpaceId}/assets/{assetId}/files"
---

# GET /asset/agent-space/{agentSpaceId}/assets/{assetId}/files

`GET /asset/agent-space/{agentSpaceId}/assets/{assetId}/files`

Lists files in an asset

## Path parameters

- `agentSpaceId` string, required — Unique identifier for an agent space (allows alphanumeric characters and hyphens; 1-64 characters)
- `assetId` string, required — Generic resource identifier (allows alphanumeric characters, hyphens, and underscores; 1-128 characters)

## Query parameters

- `assetVersion` integer
- `nextToken` string — Pagination token for list operations (1-2048 characters)
- `maxResults` integer

## Response `200`

Success

- ListAssetFilesResponse — Response structure for listing asset files
  - `items` AssetFileSummary[], required — The list of asset file summaries
    - `path` string, required — The path of this file within the asset
    - `metadata` object — The metadata for this file
    - `version` integer, required — The asset version this file belongs to
    - `createdAt` string, date-time, required — Timestamp when this file was created
    - `updatedAt` string, date-time, required — Timestamp when this file was last updated
  - `nextToken` string — Pagination token to retrieve the next page of results. Absent when there are no more results.

## Other responses

- `480` — ValidationException
- `481` — ContentSizeExceededException
- `482` — ServiceQuotaExceededException
- `483` — ConflictException
- `484` — InternalServerException
- `485` — AccessDeniedException
- `486` — ResourceNotFoundException
- `487` — ThrottlingException
- `488` — InvalidParameterException

---

[API](https://skmtc.net/aws/apis/devops-agent.md) · [All operations](https://skmtc.net/aws/apis/devops-agent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/devops-agent/versions/ca2af02d3853/schema)
