Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.lfautomatiza.com/llms.txt

Use this file to discover all available pages before exploring further.

Notas são comentários internos do time (não visíveis ao cliente). Cada nota pode ter anexos próprios. Cards também podem ter anexos diretos sem nota associada.

Notas — endpoints

MétodoEndpointDescrição
POST/kanban_items/:id/create_noteCria nota
GET/kanban_items/:id/get_notesLista notas
PATCH/kanban_items/:id/update_noteEdita nota
DELETE/kanban_items/:id/delete_noteExclui nota

Criar nota

curl -X POST https://chat.lfautomatiza.com/api/v1/accounts/1/kanban_items/101/create_note \
  -H "api_access_token: $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Cliente pediu desconto. Aprovado até 10%.",
    "attachments": [],
    "linked_item_id": null,
    "linked_conversation_id": 12345,
    "linked_contact_id": 542
  }'
CampoTipoDescrição
textstringConteúdo (suporta markdown básico)
attachmentsarrayIDs de attachments já enviados
linked_item_idintegerOutro card relacionado
linked_conversation_idintegerConversa relacionada
linked_contact_idintegerContato relacionado

Anexos — endpoints

MétodoEndpointDescrição
GET/kanban/items/:item_id/attachmentsLista anexos do card
POST/kanban/items/:item_id/attachmentsEnvia anexo (multipart)
DELETE/kanban/items/:item_id/attachments/:idExclui anexo
POST/kanban/items/:item_id/note_attachmentsEnvia anexo de nota
DELETE/kanban/items/:item_id/note_attachments/:idExclui anexo de nota
Note que esses endpoints usam o namespace /kanban/items/ (não /kanban_items/). É uma rota separada por razões históricas — fique atento ao prefixo.

Enviar anexo no card

Upload multipart padrão:
curl -X POST https://chat.lfautomatiza.com/api/v1/accounts/1/kanban/items/101/attachments \
  -H "api_access_token: $TOKEN" \
  -F "attachment=@contrato.pdf"
A resposta retorna o id do anexo, que você pode então referenciar ao criar nota:
{
  "id": 789,
  "file_url": "https://chat.lfautomatiza.com/rails/active_storage/blobs/...",
  "file_size": 245760,
  "file_type": "application/pdf"
}

Limites

TipoLimite
Tamanho por arquivo25 MB
Tipos aceitosPDF, DOC/DOCX, XLS/XLSX, CSV, PNG, JPG, MP4, MP3, WAV
Quantidade por cardSem limite (até 25MB cada)