---
title: "Get raw file-asset content by path"
method: GET
path: "/api/v2/assets"
tags: ["File Assets"]
---

# Get raw file-asset content by path

`GET /api/v2/assets`

## Request

- Base URL: `https://docs.anzworldline-solutions.com.au`
- URL: `https://docs.anzworldline-solutions.com.au/api/v2/assets`
- Auth: none declared
- TypeScript: <https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/docs/api/v2/assets/get.ts> (a function with typed inputs; its response is checked against the schema)

Streams the raw bytes of a file asset addressed by a host-qualified path (//hostname/path/file.ext).  Returns the working version by default; use version=live for the published version.  Responds with 404 when the asset or language version does not exist, 400 when the path points at a folder.

## Query parameters

- `path` string, required
- `language` string
- `version` 'working' | 'live'

## Response `200`

Raw file bytes streamed with resolved MIME type and Content-Disposition header

## Other responses

- `400`: Bad Request — path is missing, ambiguous, points at a folder, or unknown language/version value
- `401`: Unauthorized — authentication required
- `403`: Forbidden — insufficient read permissions
- `404`: Not Found — host, path, or language version does not exist

## Changes

- **2026-10-30** `4fd8e917d458`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/changes/api/v2/assets/get.md)

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) - [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/revisions/4fd8e917d458?raw)
