---
title: "Get all files"
method: GET
path: "/crm/files"
tags: ["Files"]
---

# Get all files

`GET /crm/files`

## Query parameters

- `entity` 'companies' | 'deals' | 'contacts'
- `entityIds` string
- `dateFrom` integer
- `dateTo` integer
- `offset` integer
- `limit` integer
- `sort` 'asc' | 'desc'

## Response `200`

Returns files list with filters

- FileData[] — List of files
  - `name` string — Name of uploaded file
  - `authorId` string — Account id of user which created the file
  - `contactId` integer — Contact id of contact on which file is uploaded
  - `dealId` string — Deal id linked to a file
  - `companyId` string — Company id linked to a file
  - `size` integer — Size of file in bytes
  - `createdAt` string, date-time — File created date/time

## Other responses

- `400` — Returned when query params are invalid

---

[API](https://skmtc.net/getbrevo/apis/brevo-api.md) · [All operations](https://skmtc.net/getbrevo/apis/brevo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbrevo/brevo-api/versions/2aec3cf66501/schema)
