---
title: "Anexar arquivo ao lead"
method: POST
path: "/api/v1/leads/{leadId}/attachments"
tags: ["Anexos do lead"]
---

# Anexar arquivo ao lead

`POST /api/v1/leads/{leadId}/attachments`

Adicionar um novo arquivo anexo ao lead

## Path parameters

- `leadId` string, required

## Request body

- CreateAttachmentDto
  - `attachmentUrl` string, required — Url do documento
  - `fileName` string, required — Nome do documento
  - `fileSize` number, required — Tamanho do documento
  - `description` string — Descrição do documento

## Response `200`

- AttachmentDto
  - `id` string — ID do anexo
  - `createdAt` string, date-time — Data de envio do anexo
  - `updatedAt` string, date-time — Data de atualizacao do anexo
  - `deletedAt` string, date-time — Data de exclusão do anexo
  - `fileName` string — Nome do anexo
  - `mimeType` string — Formato do anexo
  - `url` string — URL do anexo
  - `type` string — Tipo do anexo
  - `size` number — Tamanho do anexo

---

[API](https://skmtc.dev/datacrazy/apis/api-crm-datacrazy.md) · [All operations](https://skmtc.dev/datacrazy/apis/api-crm-datacrazy/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datacrazy/api-crm-datacrazy/revisions/681f3b1fe7c8/schema)
