---
title: "Get a release file"
method: GET
path: "/api/projects/{projectId}/releases/{releaseId}/files/{fileId}"
tags: ["Release"]
---

# Get a release file

`GET /api/projects/{projectId}/releases/{releaseId}/files/{fileId}`

Retrieve a single file from a release including its content.

## Path parameters

- `projectId` string, uuid, required
- `releaseId` string, uuid, required
- `fileId` string, uuid, required

## Response `200`

Release file with content

- object — Release file with content
  - `id` string, uuid, required — File unique identifier
  - `name` string, nullable — File name
  - `path` string, required — File path within the release
  - `contentType` string, nullable — MIME type of the file
  - `contentHash` string, nullable — MD5 hash of the file content
  - `releaseId` string, uuid, required — ID of the release this file belongs to
  - `versionId` string, uuid, nullable — Document version ID
  - `createdAt` string, nullable — File creation timestamp
  - `diffStatus` 'added' | 'modified' | 'removed' | 'unchanged' — Diff status when comparing releases
  - `previousReleaseId` string, uuid — Previous release ID for modified files
  - `previousId` string, uuid — Previous file ID for modified files
  - `content` unknown
  - `documentId` string, uuid, nullable — Associated document ID

---

[API](https://skmtc.dev/gorules/apis/gorules-agent-api.md) · [All operations](https://skmtc.dev/gorules/apis/gorules-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gorules/gorules-agent-api/revisions/52c0773fcd80/schema)
