---
title: "Retrieve file metadata"
method: GET
path: "/cms/source-code/2026-03/{environment}/metadata/{path}"
tags: ["Content"]
---

# Retrieve file metadata

`GET /cms/source-code/2026-03/{environment}/metadata/{path}`

Retrieve metadata for a specific file or folder within a specified environment in the HubSpot CMS. This endpoint is useful for obtaining detailed information about content files, such as their creation and update timestamps, and other metadata attributes.

## Path parameters

- `environment` string, required
- `path` string, required

## Query parameters

- `properties` string

## Response `200`

successful operation

- CmsSourceCodeAssetFileMetadata
  - `archivedAt` integer — Timestamp of when the object was archived (deleted).
  - `children` string[] — If the object is a folder, contains the filenames of the files within the folder.
  - `createdAt` integer, required — Timestamp of when the object was first created.
  - `folder` boolean, required — Determines whether or not this path points to a folder.
  - `hash` string — A unique identifier for the file's content, used to verify data integrity.
  - `id` string, required — The path of the file in the CMS Developer File System.
  - `name` string, required — The name of the file.
  - `updatedAt` integer, required — Timestamp of when the object was last updated.

## Other responses

- `default` — An error occurred.

## Changes

- **2026-03-25** `62586336cea2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hubspot/apis/hubspot-api-specification/changes/cms/source-code/2026-03/:environment/metadata/:path/get.md)

---

[API](https://skmtc.dev/hubspot/apis/hubspot-api-specification.md) · [All operations](https://skmtc.dev/hubspot/apis/hubspot-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hubspot/hubspot-api-specification/revisions/62586336cea2/schema)
