---
title: "Upload a file"
method: POST
path: "/crm/files"
tags: ["Files"]
---

# Upload a file

`POST /crm/files`

## Response `201`

Returns the created File with additional details

- FileData — File data that is uploaded
  - `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 invalid data posted

---

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