---
title: "Retrieve details of a secure file"
method: GET
path: "/api/v4/projects/{id}/secure_files/{secure_file_id}"
tags: ["secure_files"]
---

# Retrieve details of a secure file

`GET /api/v4/projects/{id}/secure_files/{secure_file_id}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/secure_files/{secure_file_id}`
- Auth: none declared

Retrieves details of a specified secure file in a project.

## Path parameters

- `id` string, required
- `secure_file_id` integer, required

## Response `200`

Retrieve details of a secure file

- APIEntitiesCiSecureFile: API_Entities_Ci_SecureFile model
  - `id` integer, required
  - `name` string, required
  - `checksum` string, required
  - `checksum_algorithm` string, required
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, required
  - `metadata` object, required
  - `file_extension` string, required

## Other responses

- `404`: 404 Not found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
