---
title: "FileById (HubSpot)"
description: "File by ID"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/hubspot/Files.Files.FileById
original: https://documentation.invantive.eu/en/datamodels/hubspot/Files.Files.FileById
updated: 2026-05-19T15:51:43Z
license: https://documentation.invantive.eu/en/
---

# FileById: HubSpot File by ID

`read only` `REST`

- Catalog: `Files`
- Schema: `Files`
- Label: File by ID

Retrieve file by ID
Retrieve a file by its ID.

Can only retrieve data.

## API Source

- Endpoint: `/files/v3/files/{fileId}`
- Operation: `get /files/v3/files/{fileId}`

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `fileId` | `` | [x] |  | ID of the desired file. |

## Table Columns

The columns of the table `FileById` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `access` | `varchar2` | Access | [ ] |  | File access. Can be PUBLIC_INDEXABLE, PUBLIC_NOT_INDEXABLE, PRIVATE. |
| `archived` | `char` | Archived | [ ] |  | If the file is deleted. |
| `archivedAt` | `datetime` | Archived at | [ ] |  | Deletion time of the file object. |
| `createdAt` | `datetime` | Created at | [ ] |  | Creation time of the file object. |
| `defaultHostingUrl` | `varchar2` | Default Hosting URL | [ ] |  | Default hosting URL of the file. This will use one of HubSpot's provided URLs to serve the file. |
| `encoding` | `varchar2` | Encoding | [ ] |  | Encoding of the file. |
| `expiresAt` | `int64` | Expires at | [ ] |  |  |
| `extension` | `varchar2` | Extension | [ ] |  | Extension of the file. ex: .jpg, .png, .gif, .pdf, etc. |
| `fileMd5` | `varchar2` | itgen_hubspot_filemd5 | [ ] |  | The MD5 hash of the file. |
| `height` | `int32` | Height | [ ] |  | For image and video files, the height of the content. |
| `id` | `varchar2` | ID | [ ] |  | File ID. |
| `isUsableInContent` | `char` | Is Usable in Content | [ ] |  | Previously "archied". Indicates if the file should be used when creating new content like web pages. |
| `name` | `varchar2` | Name | [ ] |  | Name of the file. |
| `parentFolderId` | `varchar2` | Parent Folder ID | [ ] |  | ID of the folder the file is in. |
| `path` | `varchar2` | Path | [ ] |  | Path of the file in the file manager. |
| `size` | `int64` | Size | [ ] |  | Size of the file in bytes. |
| `sourceGroup` | `varchar2` | itgen_hubspot_sourcegroup | [ ] |  |  |
| `type` | `varchar2` | Type | [ ] |  | Type of the file. Can be IMG, DOCUMENT, AUDIO, MOVIE, or OTHER. |
| `updatedAt` | `datetime` | Updated at | [ ] |  | Timestamp of the latest update to the file. |
| `url` | `varchar2` | URL | [ ] |  | URL of the given file. This URL can change depending on the domain settings of the account. Will use the select file hosting domain. |
| `width` | `int32` | Width | [ ] |  | For image and video files, the width of the content. |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [HubSpot](/en/release-notes/drivers/hubspot)

