---
title: "Get the content of an image by type files"
method: GET
path: "/images/by_id/{imageId}/content/files"
tags: ["Images"]
---

# Get the content of an image by type files

`GET /images/by_id/{imageId}/content/files`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/images/by_id/{imageId}/content/files`
- Auth: none declared
- TypeScript: <https://skmtc.dev/banzaicloud/apis/anchore-engine-api-server/docs/images/by_id/:imageId/content/files/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `imageId` string, required

## Headers

- `x-anchore-account` string

## Response `200`

Content of specified type from the image

- ContentFilesResponse: File content listings from images
  - `imageDigest` string
  - `content_type` string
  - `content` ContentFilesResponseContentInner[]
    - `filename` string
    - `gid` integer
    - `linkdest` string, nullable
    - `mode` string
    - `sha256` string, nullable
    - `size` integer
    - `type` string
    - `uid` integer

## Other responses

- `500`: Internal error

## Changes

- **2026-07-17** `38e5705e0b21`: 1 breaking
  - the `content/items/` response's property type changed from no type to `object` for status `200`
- **2019-10-02** `75f483ab10a0`: 1 breaking
  - the `content/items/` response's property type changed from `object` to no type for status `200`

[Operation history](https://skmtc.dev/banzaicloud/apis/anchore-engine-api-server/changes/images/by_id/:imageId/content/files/get.md)

---

[API](https://skmtc.dev/banzaicloud/apis/anchore-engine-api-server.md) - [All operations](https://skmtc.dev/banzaicloud/apis/anchore-engine-api-server/llms.txt) - [OpenAPI document](https://skmtc.dev/banzaicloud/apis/anchore-engine-api-server/revisions/38e5705e0b21?raw)
