Anexos do lead

Anexar arquivo ao lead

Changed on

Adicionar um novo arquivo anexo ao lead

post/api/v1/leads/{leadId}/attachments

Request

  • Base URL
    https://api.g1.datacrazy.io
  • URL
    https://api.g1.datacrazy.io/api/v1/leads/{leadId}/attachments
  • Auth
    HTTP bearer

Path parameters

leadIdstring required

Request body

attachmentUrlstring required

Url do documento

fileNamestring required

Nome do documento

descriptionstring

Descrição do documento

Example request

{
  "attachmentUrl": "https://dc-qqqq2222pb.s3.amazonaws.com/d129a692-e5ab-42b3-b0e4-90ad9a12b068/lead-attachments/d129a692-e5ab-42b3-b0e4-90ad9a12b068_2025-06-20T18%3A45%3A22.125Z",
  "fileName": "Contrato_pdf",
  "description": "Contrato de prestaçao - assinado"
}

Response

fileNamestring

Nome do anexo

mimeTypestring

Formato do anexo

urlstring

URL do anexo

type'IMAGE' | 'VIDEO' | 'AUDIO' | 'FILE'

Tipo do anexo

Example response

{
  "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"
}

Changes

    • warning

      removed the request property

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      added the new AUDIO enum value to the response property for the response status

    • warning

      added the new FILE enum value to the response property for the response status

    • warning

      added the new IMAGE enum value to the response property for the response status

    • warning

      added the new VIDEO enum value to the response property for the response status