Skip to main content
GET
/
api
/
v1
/
leads
/
{leadId}
/
attachments
Buscar os arquivos anexados ao lead
curl --request GET \
  --url https://api.datacrazy.io/v1/api/api/v1/leads/{leadId}/attachments \
  --header 'Authorization: Bearer <token>'
{
  "id": "685c39fcc2523944ecd171f7",
  "createdAt": "2025-06-25T18:03:40.172Z",
  "updatedAt": "2025-06-25T18:03:40.172Z",
  "deletedAt": "2025-06-25T18:03:40.172Z",
  "fileName": "my-product-175087",
  "mimeType": "image/jpeg",
  "url": "https://dc-qqqq2222pb.s3.amazonaws.com/d129a692-e5ab-42b3-b0e4-90ad9a12b068/f514f655-4897-416e-b5c1-bbc19aac0805",
  "type": "IMAGE",
  "size": "7642"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

leadId
string
required

Response

200 - application/json
id
string

ID do anexo

Example:

"685c39fcc2523944ecd171f7"

createdAt
string<date-time>

Data de envio do anexo

Example:

"2025-06-25T18:03:40.172Z"

updatedAt
string<date-time>

Data de atualizacao do anexo

Example:

"2025-06-25T18:03:40.172Z"

deletedAt
string<date-time>

Data de exclusão do anexo

Example:

"2025-06-25T18:03:40.172Z"

fileName
string

Nome do anexo

Example:

"my-product-175087"

mimeType
string

Formato do anexo

Example:

"image/jpeg"

url
string

URL do anexo

Example:

"https://dc-qqqq2222pb.s3.amazonaws.com/d129a692-e5ab-42b3-b0e4-90ad9a12b068/f514f655-4897-416e-b5c1-bbc19aac0805"

type
string

Tipo do anexo

Example:

"IMAGE"

size
number

Tamanho do anexo

Example:

"7642"