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

# Get file by SHA256

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

Retrieve detailed file information including all associated instances, repositories, and metadata

## Path parameters

- `sha256` string, required

## Query parameters

- `page_size` integer
- `cursor` string

## Response `200`

File found and returned successfully

- object — Cursor-based pagination navigation links
  - `first` string, required — Pagination cursor pointing to the first page.
  - `prev` string, required — Pagination cursor pointing to the previous page.
  - `next` string, required — Pagination cursor pointing to the next page.
  - `last` string — Pagination cursor pointing to the last page.
  - `file_instances` FileInstanceFull[]
    - `instance` FileInstance, required
      - `sha256` string, required — SHA256 hash of the file
      - `revision_id` string, uuid, required — UUID of the repository revision
      - `path` string, required — File path within the repository
      - `source` string, required — Source of the file instance
      - `tags` string[], required — Tags associated with the file instance
      - `committed_date` string, date-time — Date when the file was committed to the repository
      - `created_at` string, date-time, required — Timestamp when the file instance was created
      - `updated_at` string, date-time, required — Timestamp when the file instance was last updated
    - `repo_revision` RepoRevision, required
      - `id` string, uuid, required — UUID of the repository revision
      - `repository_id` string, uuid, required — UUID of the repository
      - `commit_hash` string, required — Git commit hash
      - `metadata` object, required — Additional metadata for the revision
      - `fetched_at` string, date-time, required — Timestamp when the revision was fetched
      - `created_at` string, date-time, required — Timestamp when the revision was created
      - `updated_at` string, date-time, required — Timestamp when the revision was last updated
    - `repository` Repository, required
      - `id` string, uuid, required — UUID of the repository
      - `owner_id` string, uuid, required — UUID of the repository owner
      - `name` string — Name of the repository
      - `description` string — Description of the repository
      - `url` string, uri, required — URL of the repository
      - `architectures` string[], required — Supported architectures
      - `modalities` string[], required — Supported modalities
      - `tags` string[], required — Tags associated with the repository
      - `metadata` object, required — Additional metadata for the repository
      - `created_at` string, date-time, required — Timestamp when the repository was created
      - `updated_at` string, date-time, required — Timestamp when the repository was last updated
    - `repo_owner` Contributor, required
      - `id` string, uuid, required — UUID of the contributor
      - `handle` string, required — Handle or username of the contributor
      - `kind` string, required — Type of contributor
      - `display_name` string — Display name of the contributor
      - `homepage_url` string, uri, required — Homepage URL of the contributor
      - `trust_level` string, required — Trust level of the contributor
      - `country` string, required — Country of the contributor
      - `source` string, required — Source platform of the contributor
      - `tags` string[], required — Tags associated with the contributor
      - `metadata` object, required — Additional metadata for the contributor
      - `created_at` string, date-time, required — Timestamp when the contributor was created
      - `updated_at` string, date-time, required — Timestamp when the contributor was last updated
    - `licenses` License[], required
      - `id` string, uuid, required — UUID of the license
      - `name` string, required — Name of the license
      - `spdx_id` string — SPDX identifier for the license
      - `version` string, required — Version of the license
      - `url` string, uri, required — URL of the license
      - `description` string — Description of the license
      - `sha256` string, required — SHA256 hash of the license text
      - `created_at` string, date-time, required — Timestamp when the license was created
      - `updated_at` string, date-time, required — Timestamp when the license was last updated
    - `use_policies` UsePolicy[], required
      - `id` string, uuid, required — UUID of the use policy
      - `title` string, required — Title of the use policy
      - `url` string, uri, required — URL of the use policy
      - `sha256` string, required — SHA256 hash of the policy text
      - `description` string — Description of the use policy
      - `created_at` string, date-time, required — Timestamp when the use policy was created
      - `updated_at` string, date-time, required — Timestamp when the use policy was last updated

## Other responses

- `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)
