Criação de cards em Kanban
Para criar cards no Kanban primeiro você precisa ter um Kanban
🧠 O que é o Kanban no PlanetChat?
O Kanban é uma ferramenta de gestão visual que permite aos usuários organizar, categorizar e acompanhar processos.
O Kanban é composto por:
- Kanban: o quadro principal que organiza todo o fluxo de trabalho
- Colunas: representam as etapas do processo (ex: "A Fazer", "Em Andamento", "Concluído")
- Cards: representam tarefas, clientes ou processos individuais que se movem pelas colunas
📊 Funcionalidades principais
- Filtros por data: Hoje, Esta semana, Últimos 30 dias, Últimos 90 dias
- Envio de mensagens diretamente das colunas para os clientes
- Adição rápida de cards em qualquer coluna
📋 Listando Kanbans Cadastrados
Antes de criar cards, você precisa saber quais Kanbans estão disponíveis na sua empresa. Use o endpoint:
🔗 GET /kanbans
Este endpoint retorna todos os Kanbans cadastrados na empresa.
🧪 Exemplo de Requisição curl
curl -X GET https://api.planetchat.com.br/kanbans \
-H "Authorization: Bearer SEU_TOKEN_AQUI"
📥 Exemplo de Retorno
[
{
"id": "c0c2993a-85f5-4b8b-be14-c78838319418",
"name": "Kanban SF",
"serviceGroup": {
"id": "cce709fa-c053-44c3-a79d-5f95fa29bf9a",
"name": "Grupo de atendimento padrão",
"description": "",
"permissionSeeMessagesBeforeAttend": true,
"notifySupervisorTime": 0,
"notifyAgentTime": 0,
"chatLimitPerUser": 0,
"readMessagesMode": "ALL",
"permissionShowPhone": true,
"chatChannels": ["1ccfa8e8-aac4-4fd7-8adb-643ffd0a7f81"],
"allChatChannels": true,
"idCompany": "be481754-97a3-47a3-b952-ab9e67c7e9cc",
"createdAt": "2025-11-04T19:38:25.003Z",
"messageHeader": null,
"sttAutoEnabled": true
},
"customFields": [
{
"name": "Cliente ou Lead",
"type": "enum",
"enumValues": ["Cliente", "Lead"],
"identifier": "cliente-ou-lead",
"mainNumber": false
},
{
"name": "Vencimento da Mensalidade",
"type": "string",
"enumValues": [],
"identifier": "vencimento-da-mensalidade",
"mainNumber": false
}
],
"columns": [
{
"id": "c2135cb4-100e-4d56-a596-921523a0ba9c",
"idKanban": "c0c2993a-85f5-4b8b-be14-c78838319418",
"name": "Coluna SF",
"color": "#2196F3",
"allowAllUsersListUnsignedCards": false,
"order": 1,
"createdAt": "2026-02-10T19:19:44.486Z",
"updatedAt": "2026-02-10T19:19:44.486Z",
"deletedAt": null
},
{
"id": "f2b9abbd-8c9c-4d20-a509-580c157495c8",
"idKanban": "c0c2993a-85f5-4b8b-be14-c78838319418",
"name": "Coluna JP",
"color": "#f39b20",
"allowAllUsersListUnsignedCards": false,
"order": 1,
"createdAt": "2026-02-10T19:19:44.542Z",
"updatedAt": "2026-02-10T19:19:44.542Z",
"deletedAt": null
},
{
"id": "668ecfea-e3a0-4c9e-8e55-e87f04e21929",
"idKanban": "c0c2993a-85f5-4b8b-be14-c78838319418",
"name": "Coluna RF",
"color": "#43f320",
"allowAllUsersListUnsignedCards": false,
"order": 2,
"createdAt": "2026-02-10T19:19:44.593Z",
"updatedAt": "2026-02-10T19:19:44.593Z",
"deletedAt": null
}
],
"createdAt": "2026-02-10T19:19:44.414Z",
"updatedAt": "2026-02-10T20:04:39.700Z"
},
{
"id": "d7f8e9a0-b1c2-3d4e-5f6a-7b8c9d0e1f2a",
"name": "Pós-Venda",
"serviceGroup": {
"id": "cce709fa-c053-44c3-a79d-5f95fa29bf9a",
"name": "Grupo de atendimento padrão",
"description": "",
"permissionSeeMessagesBeforeAttend": true,
"notifySupervisorTime": 0,
"notifyAgentTime": 0,
"chatLimitPerUser": 0,
"readMessagesMode": "ALL",
"permissionShowPhone": true,
"chatChannels": ["1ccfa8e8-aac4-4fd7-8adb-643ffd0a7f81"],
"allChatChannels": true,
"idCompany": "be481754-97a3-47a3-b952-ab9e67c7e9cc",
"createdAt": "2025-11-04T19:38:25.003Z",
"messageHeader": null,
"sttAutoEnabled": true
},
"customFields": [
{
"name": "Status do Cliente",
"type": "enum",
"enumValues": ["Ativo", "Inativo", "Pendente"],
"identifier": "status-do-cliente",
"mainNumber": false
},
{
"name": "Observações",
"type": "string",
"enumValues": [],
"identifier": "observacoes",
"mainNumber": false
}
],
"columns": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"idKanban": "d7f8e9a0-b1c2-3d4e-5f6a-7b8c9d0e1f2a",
"name": "Agendado",
"color": "#9C27B0",
"allowAllUsersListUnsignedCards": false,
"order": 1,
"createdAt": "2026-02-10T18:30:00.000Z",
"updatedAt": "2026-02-10T18:30:00.000Z",
"deletedAt": null
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"idKanban": "d7f8e9a0-b1c2-3d4e-5f6a-7b8c9d0e1f2a",
"name": "Em contato",
"color": "#FF9800",
"allowAllUsersListUnsignedCards": false,
"order": 2,
"createdAt": "2026-02-10T18:30:15.000Z",
"updatedAt": "2026-02-10T18:30:15.000Z",
"deletedAt": null
},
{
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"idKanban": "d7f8e9a0-b1c2-3d4e-5f6a-7b8c9d0e1f2a",
"name": "Finalizado",
"color": "#4CAF50",
"allowAllUsersListUnsignedCards": false,
"order": 3,
"createdAt": "2026-02-10T18:30:30.000Z",
"updatedAt": "2026-02-10T18:30:30.000Z",
"deletedAt": null
}
],
"createdAt": "2026-02-10T18:25:00.000Z",
"updatedAt": "2026-02-10T19:15:00.000Z"
}
]
🎯 Criando um Card no Kanban
Agora que você já tem um Kanban e conhece suas colunas, pode criar cards!
🔗 POST /kanbans/cards
Este endpoint cria um novo card em uma coluna específica do Kanban.
📝 Campos obrigatórios
- title: Título do card (nome do cliente, descrição da tarefa, etc.)
- idColumn: ID da coluna onde o card será criado
📝 Campos opcionais
- description: Descrição detalhada do card
- idContact: ID do contato/cliente relacionado ao card
- idResponsible: ID do atendente/supervisor relacionado ao card
- priority: Prioridade do card. Valores possíveis:
1- Baixa2- Média3- Alta4- Urgente0- Sem prioridade
- customFields: Array de objetos com os campos customizados da coluna
🧪 Exemplo de Requisição curl - Card básico
curl -X POST https://api.planetchat.com.br/kanbans/cards \
-H "Authorization: Bearer SEU_TOKEN_AQUI" \
-H "Content-Type: application/json" \
-d '{
"title": "Card 2",
"description": "Segundo card criado para documentação",
"priority": 1,
"idColumn": "11238745-da4c-4c04-98ae-b63cb053e30a",
"idContact": "6c9fdd65-6fc0-49a6-9aba-f6ec7791d3d3",
"idResponsible": "16842838-1af7-4db8-b752-2a466b7c4c8f",
"customFields": [
{
"fieldIdentifier": "fdbb7805-6718-47ef-ae4b-cc157086cc60",
"fieldValue": "Valor do 1 campo personalizado"
},
{
"fieldIdentifier": "325820e5-57dd-4d2d-95d7-5b666340481d",
"fieldValue": 23
}
]
}'
📥 Exemplo de Retorno
{
"id": "e96b4d1e-ccd2-4cbc-a135-f4b33be7bcc7",
"idKanban": "d60f2203-c800-4c18-a93f-99852a55297a",
"idColumn": "11238745-da4c-4c04-98ae-b63cb053e30a",
"idResponsible": "16842838-1af7-4db8-b752-2a466b7c4c8f",
"idChat": null,
"idContact": "6c9fdd65-6fc0-49a6-9aba-f6ec7791d3d3",
"title": "Card 2",
"description": "Segundo card criado para documentação",
"priority": 1,
"order": "1.0000000000",
"createdAt": "2026-02-10T21:33:33.616Z",
"updatedAt": "2026-02-10T21:33:33.616Z",
"deletedAt": null,
"column": {
"id": "11238745-da4c-4c04-98ae-b63cb053e30a",
"idKanban": "d60f2203-c800-4c18-a93f-99852a55297a",
"name": "Coluna 2",
"color": "#20f32e",
"allowAllUsersListUnsignedCards": false,
"order": 1,
"createdAt": "2026-02-10T21:17:41.653Z",
"updatedAt": "2026-02-10T21:17:41.653Z",
"deletedAt": null
},
"responsible": {
"id": "16842838-1af7-4db8-b752-2a466b7c4c8f",
"name": "Simon Franklin",
"email": "simon@planetfone.com.br",
"idRootRole": null,
"idActiveCompany": "be481754-97a3-47a3-b952-ab9e67c7e9cc",
"photoFileId": "910bde3a-abd0-4129-bdaf-c667d2d508c5",
"shortcuts": null,
"theme": null,
"lang": null,
"createdAt": "2025-11-05T19:37:53.824Z",
"mobileActiveSession": "dev-firebase-token",
"lastMobileSigninDate": "2026-01-09T15:26:14.158Z",
"notification": true
},
"contact": {
"id": "6c9fdd65-6fc0-49a6-9aba-f6ec7791d3d3",
"leadOrClient": "Client",
"firstName": "Simon Dino",
"lastName": "Franklin",
"personType": "Individual",
"cpf": null,
"cnpj": null,
"birthday": null,
"responsibleId": null,
"createdById": "16842838-1af7-4db8-b752-2a466b7c4c8f",
"companyId": "be481754-97a3-47a3-b952-ab9e67c7e9cc",
"createdAt": "2026-02-03T22:36:28.861Z",
"addresses": [],
"customFields": {
"87a1a3ec-4262-446a-89a2-13cd3ce0c9c8": null,
"d42211da-8ec6-45ce-b5d4-f3f2b4e31971": null
}
},
"chat": null,
"customFields": [
{
"id": "a0175a6b-ebdc-4f97-8ba2-91c7b2ce73bd",
"idCard": "e96b4d1e-ccd2-4cbc-a135-f4b33be7bcc7",
"fieldType": "string",
"fieldIdentifier": "fdbb7805-6718-47ef-ae4b-cc157086cc60",
"fieldValueStr": "Valor do 1 campo personalizado",
"fieldValueNumber": null,
"createdAt": "2026-02-10T21:33:33.683Z",
"updatedAt": "2026-02-10T21:33:33.683Z",
"deletedAt": null
},
{
"id": "0c83d87e-1368-4254-ba97-b3932e10eb85",
"idCard": "e96b4d1e-ccd2-4cbc-a135-f4b33be7bcc7",
"fieldType": "number",
"fieldIdentifier": "325820e5-57dd-4d2d-95d7-5b666340481d",
"fieldValueStr": null,
"fieldValueNumber": "23.00",
"createdAt": "2026-02-10T21:33:33.683Z",
"updatedAt": "2026-02-10T21:33:33.683Z",
"deletedAt": null
}
]
}