---
updatedAt: 2026-08-18T14:17:08.000Z
agentTools:
  projectIndex: https://stockpit.readme.io/llms.txt
---

# Queries

> **Note** : The direct File query is not part of the public API. File data is exposed through the other entities of the API (files are not directly queryable by their identifier).

<br/>

# Available fields

## File type

| id <span style={{ fontWeight: "normal" }}>- [Int](/reference/data-types#int) </span> |
| :----------------------------------------------------------------------------------- |
| Unique identifier of the file                                                        |

| label <span style={{ fontWeight: "normal" }}>- [String](/reference/data-types#string)</span> |
| :------------------------------------------------------------------------------------------- |
| Label of the file                                                                            |

| type <span style={{ fontWeight: "normal" }}>- [String](/reference/data-types#string)</span> |
| :------------------------------------------------------------------------------------------ |
| Type of the file                                                                            |

| created\_at <span style={{ fontWeight: "normal" }}>- [DateTime](/reference/data-types#datetime) </span> |
| :------------------------------------------------------------------------------------------------------ |
| Creation date of the file                                                                               |

| expires\_at <span style={{ fontWeight: "normal" }}>- [Date](/reference/data-types#date) </span> |
| :---------------------------------------------------------------------------------------------- |
| Expiration date of the file (null if the file never expires)                                    |

| size <span style={{ fontWeight: "normal" }}>- [Int](/reference/data-types#int) </span> |
| :------------------------------------------------------------------------------------- |
| Size of the file in bytes                                                              |

| mime <span style={{ fontWeight: "normal" }}>- [String](/reference/data-types#string)</span> |
| :------------------------------------------------------------------------------------------ |
| MIME type of the file                                                                       |

| path <span style={{ fontWeight: "normal" }}>- [String](/reference/data-types#string)</span> |
| :------------------------------------------------------------------------------------------ |
| Storage path of the file                                                                    |

| weight <span style={{ fontWeight: "normal" }}>- [Int](/reference/data-types#int) </span> |
| :--------------------------------------------------------------------------------------- |
| Weight of the file in bytes                                                              |

| public\_path <span style={{ fontWeight: "normal" }}>- [String](/reference/data-types#string)</span> |
| :-------------------------------------------------------------------------------------------------- |
| Public URL of the file                                                                              |

| image\_path(style) <span style={{ fontWeight: "normal" }}>- [String](/reference/data-types#string) </span> |
| :--------------------------------------------------------------------------------------------------------- |
| Public URL of the resized image for the given [ImageStyle](#imagestyle-enum) (only available for images)   |

<br/>

***

# Enums

## ImageStyle enum

| Value              | Description                           |
| :----------------- | :------------------------------------ |
| `pdfLogo`          | Logo used on generated PDF documents. |
| `productThumbnail` | Thumbnail of the product.             |
| `productSmall`     | Small product image.                  |
| `productMedium`    | Medium product image.                 |
| `productLarge`     | Large product image.                  |