---
title: "Get file metadata by SHA256"
method: GET
path: "/model-intel/v1/file/{sha256}/metadata"
tags: ["Model Intelligence"]
---

# Get file metadata by SHA256

`GET /model-intel/v1/file/{sha256}/metadata`

Retrieve file information such as filetype, file size in bytes, and MIME type

## Path parameters

- `sha256` string, required

## Response `200`

File metadata found and returned successfully

- File
  - `sha256` string, required — SHA256 hash of the file
  - `size_bytes` integer, required — File size in bytes
  - `file_type` string — Type of the file
  - `extension` string — File extension
  - `mime_type` string — MIME type of the file
  - `created_at` string, date-time, required — Timestamp when the file was created
  - `updated_at` string, date-time, required — Timestamp when the file was last updated

## Other responses

- `404` — The specified resource was not found.
- `422` — Invalid SHA256 Parameter

---

[API](https://skmtc.net/hiddenlayerai/apis/hiddenlayer-audit-api.md) · [All operations](https://skmtc.net/hiddenlayerai/apis/hiddenlayer-audit-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiddenlayerai/hiddenlayer-audit-api/revisions/efca861e915b/schema)
