{"info":{"_postman_id":"2c78d863-f9cd-423c-ab44-3d051d6440f7","name":"☁  Digisac  ‎‎☁","description":"<html><head></head><body><h3 id=\"👋-bem-vindoa-à-documentação-da-api-digisac\">👋 <strong>Bem-vindo(a)</strong> à <strong>Documentação da API Digisac</strong>!</h3>\n<p>Este material foi preparado com muito cuidado pela nossa equipe de Suporte Integração. Nosso objetivo é que ele seja útil para você! 🚀</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24605757","collectionId":"2c78d863-f9cd-423c-ab44-3d051d6440f7","publishedId":"2sA3BhfaDg","public":true,"customColor":{"top-bar":"415376","right-sidebar":"415376","highlight":"87CEEB"},"publishDate":"2024-05-10T18:29:01.000Z"},"item":[{"name":"⚙️ Gerais","item":[{"name":"Acionamento flag no robô","item":[{"name":"Acionamento flag no robô","id":"6f71ba34-27f0-4c2a-b116-81d916168f45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/api/v1/bots/{{botId}}/trigger-signal/{{contactId}}?flag=flagAqui","urlObject":{"path":["api","v1","bots","{{botId}}","trigger-signal","{{contactId}}"],"host":["{{URL}}"],"query":[{"key":"flag","value":"flagAqui"}],"variable":[]}},"response":[],"_postman_id":"6f71ba34-27f0-4c2a-b116-81d916168f45"}],"id":"8f51f204-4105-4220-934a-f6b403e3fc64","_postman_id":"8f51f204-4105-4220-934a-f6b403e3fc64","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Agendamentos","item":[{"name":"Listar agendamentos","id":"cf8093d1-4af3-4fad-980a-19fa701566ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/schedule?perPage=40","urlObject":{"path":["api","v1","schedule"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"cf8093d1-4af3-4fad-980a-19fa701566ae"},{"name":"Buscar agendamento","id":"e56e4c53-0303-46f1-94f2-22f885f54785","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/schedule/{{scheduleId}}","urlObject":{"path":["api","v1","schedule","{{scheduleId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e56e4c53-0303-46f1-94f2-22f885f54785"},{"name":"Editar agendamento","id":"6f6c2947-2406-4ee5-801d-8a79f951e979","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"contactId\": \"{{contactId}}\", //ID do contato\r\n  \"departmentId\": \"{{departmentId}}\", //ID do departamento\r\n  \"files\": [],\r\n  \"message\": \"{{text}}\",\r\n  \"notes\": \"{{notes}}}}\",\r\n  \"notificateUser\": true, //true or false\r\n  \"openTicket\": true, //true or false\r\n  \"scheduledAt\": \"{{2023-07-15 10:35:18}}\",\r\n  \"userId\": \"{{userId}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/schedule/{{scheduleId}}","urlObject":{"path":["api","v1","schedule","{{scheduleId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f6c2947-2406-4ee5-801d-8a79f951e979"},{"name":"Criar agendamento","id":"99d1a17a-dd03-4f1c-9f4b-305352b0a91b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"contactId\": \"{{contactId}}\",\r\n  \"departmentId\": \"{{departmentId}}\",\r\n  \"files\": [{{arquivos}}],\r\n  \"message\": \"{{text}}\",\r\n  \"notes\": \"{{note}}}}\",\r\n  \"notificateUser\": true, //true or false\r\n  \"openTicket\": true, //true or false\r\n  \"scheduledAt\": \"{{2023-07-15 10:35:18}}\",\r\n  \"userId\": \"{{userId}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/schedule","urlObject":{"path":["api","v1","schedule"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"99d1a17a-dd03-4f1c-9f4b-305352b0a91b"},{"name":"Excluir agendamento","id":"78ad788c-cfeb-4cc6-9e3f-8433a2bb1589","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/schedule/{{scheduleId}}","urlObject":{"path":["api","v1","schedule","{{scheduleId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"78ad788c-cfeb-4cc6-9e3f-8433a2bb1589"}],"id":"3729dfa6-0eb7-4981-88fe-8337779b7512","description":"<p>Os agendamentos são utilizados para programar a plataforma para fazer alguma ação em uma determinada data e horário. Com esta ferramenta, você poderá agendar uma abertura de chamado automática com algum cliente, uma notificação a um atendente de sua plataforma ou até fazer as duas ações simultaneamente.</p>\n","_postman_id":"3729dfa6-0eb7-4981-88fe-8337779b7512","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Agora","item":[{"name":"Buscar departamentos (Agora)","id":"c79002b5-480c-40c4-ab6d-27d74c78583b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/now/departments-resume","urlObject":{"path":["api","v1","now","departments-resume"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c79002b5-480c-40c4-ab6d-27d74c78583b"},{"name":"Buscar atendentes (Agora)","id":"6e0cae5e-5d22-4975-871a-d461874292ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/now/attendance-resume","urlObject":{"path":["api","v1","now","attendance-resume"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e0cae5e-5d22-4975-871a-d461874292ec"},{"name":"Buscar todos os dados (Agora)","id":"8c9e48e7-46ec-4078-9310-7d1834a65060","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/now/resume","urlObject":{"path":["api","v1","now","resume"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c9e48e7-46ec-4078-9310-7d1834a65060"}],"id":"911ba2cb-5aea-48f7-9b35-8ce4679993f8","description":"<p>Nesta função é possível visualizar em tempo real todos os atendimentos que estão acontecendo na plataforma por atendente e departamento.</p>\n","_postman_id":"911ba2cb-5aea-48f7-9b35-8ce4679993f8","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Assuntos de chamado","item":[{"name":"Listar assuntos de fechamento","id":"277f045d-44be-4a9b-b952-8d131dbbd7e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/ticket-topics?perPage=40","urlObject":{"path":["api","v1","ticket-topics"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"277f045d-44be-4a9b-b952-8d131dbbd7e3"},{"name":"Buscar um assunto específico","id":"3d02f060-6c73-467e-84d3-97aac2c83a92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/ticket-topics/{{ticketTopicId}}","urlObject":{"path":["api","v1","ticket-topics","{{ticketTopicId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d02f060-6c73-467e-84d3-97aac2c83a92"},{"name":"Editar assunto específico","id":"7f3cf1c0-7977-4e24-af7d-5d8c9fa989b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"{{name}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/ticket-topics/{{ticketTopicId}}","urlObject":{"path":["api","v1","ticket-topics","{{ticketTopicId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7f3cf1c0-7977-4e24-af7d-5d8c9fa989b4"},{"name":"Criar assunto","id":"aa1da7b5-5555-4d6b-817f-0bca7703dd2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"{{name}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/ticket-topics","urlObject":{"path":["api","v1","ticket-topics"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa1da7b5-5555-4d6b-817f-0bca7703dd2a"},{"name":"Excluir assunto específico","id":"641dd17d-312d-424f-be07-e4eb3e06669a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/ticket-topics/{{ticketTopicId}}","urlObject":{"path":["api","v1","ticket-topics","{{ticketTopicId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"641dd17d-312d-424f-be07-e4eb3e06669a"}],"id":"f6763f73-b8e1-45a4-8eb4-7b181b292979","description":"<p>O assunto de chamado é uma ferramenta utilizada para classificar seus atendimentos. Deverá ser inserido sempre que o usuário fechar o chamado com o contato, desta maneira será necessário definir um “titulo” para aquele atendimento.</p>\n","_postman_id":"f6763f73-b8e1-45a4-8eb4-7b181b292979","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Auditoria de autenticação","item":[{"name":"Listar auditorias de autenticação","id":"e3a5f43d-81f7-4acb-84a3-7e7c066e5776","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/auth-history?perPage=40","urlObject":{"path":["api","v1","auth-history"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"e3a5f43d-81f7-4acb-84a3-7e7c066e5776"},{"name":"Buscar auditoria de autenticação","id":"5ca0296d-5181-4f46-8644-af21235f0087","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/auth-history/{{authId}}","urlObject":{"path":["api","v1","auth-history","{{authId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ca0296d-5181-4f46-8644-af21235f0087"}],"id":"fe40ed49-44a4-4a33-bd83-7c1026b06e1c","description":"<p>Nesta função é possível filtrar os eventos de criação, alteração e exclusão, por usuários e datas de mudanças no sistema.</p>\n","_postman_id":"fe40ed49-44a4-4a33-bd83-7c1026b06e1c","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Autorização","item":[{"name":"Gerar Token de acesso","id":"aad78787-e3f2-45a7-bf72-b42757b49f42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"grant_type\": \"password\",\r\n    \"client_id\": \"api\",\r\n    \"client_secret\": \"secret\",\r\n    \"username\": \"{{email}}\", //e-mail de login do usuário\r\n    \"password\": \"{{password}}\" //senha de login do usuário\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/oauth/token","urlObject":{"path":["api","v1","oauth","token"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aad78787-e3f2-45a7-bf72-b42757b49f42"}],"id":"bd32c390-a89a-4938-b8be-92eb2091612f","description":"<p>Gerar o Token de acesso em sua plataforma.</p>\n","_postman_id":"bd32c390-a89a-4938-b8be-92eb2091612f","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Avaliações","item":[{"name":"Listar avaliações","id":"5ea397d6-ff7b-4e63-aae0-9b8d9dddd86e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/questions?perPage=40","urlObject":{"path":["api","v1","questions"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"5ea397d6-ff7b-4e63-aae0-9b8d9dddd86e"},{"name":"Buscar avaliação","id":"49bf5ce2-16d5-477f-a71b-8c7c99e08571","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/questions/{{questionId}}","urlObject":{"path":["api","v1","questions","{{questionId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"49bf5ce2-16d5-477f-a71b-8c7c99e08571"},{"name":"Editar avaliação","id":"a7337de1-b3fe-40e6-98e2-f5fd230abdce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"{{name}}\",\r\n  \"duration\": \"{{duration}}\", //duração\r\n  \"type\": \"{{type}}\", //tipo (NPS ou CSAT)\r\n  \"questionMessage\": \"{{O que você achou da nossa avaliação?}}\",\r\n  \"tries\": {{tries}}, //tentativas\r\n  \"successMessage\": \"{{Obrigado por responder}}\",\r\n  \"invalidMessage\": \"{{Resposta invalida}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/questions/{{questionId}}","urlObject":{"path":["api","v1","questions","{{questionId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7337de1-b3fe-40e6-98e2-f5fd230abdce"},{"name":"Criar avaliação","id":"55cb5620-fbc2-42df-a1b4-37f80c266cae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"{{name}}\",\r\n  \"duration\": \"{{duration}}\",\r\n  \"type\": \"{{type}}\",\r\n  \"questionMessage\": \"{{O que você achou da nossa avaliação?}}\",\r\n  \"tries\": {{tries}}, //tentativas\r\n  \"successMessage\": \"{{Obrigado por responder}}\",\r\n  \"invalidMessage\": \"{{Resposta invalida}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/questions","urlObject":{"path":["api","v1","questions"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"55cb5620-fbc2-42df-a1b4-37f80c266cae"},{"name":"Excluir avaliação","id":"0a49f5e2-86a6-45b4-9232-4791690de670","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/questions/{{questionId}}","urlObject":{"path":["api","v1","questions","{{questionId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a49f5e2-86a6-45b4-9232-4791690de670"}],"id":"b708a81b-4100-4af5-a8c7-fba94aeb71fd","description":"<p>Com a ferramenta de avaliação você poderá medir o desempenho dos serviços prestados aos seus clientes, solicitando sempre, ao final de um atendimento**.**</p>\n","_postman_id":"b708a81b-4100-4af5-a8c7-fba94aeb71fd","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Campanhas","item":[{"name":"Listar campanhas","id":"6f29e2fa-f807-4a5a-8fff-f558a4a4a249","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/campaigns?perPage=40","urlObject":{"path":["api","v1","campaigns"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"6f29e2fa-f807-4a5a-8fff-f558a4a4a249"},{"name":"Buscar campanha","id":"0af93b53-6b6c-4ea2-8d67-9b8ccf442ae2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/campaigns/{{campaignsId}}","urlObject":{"path":["api","v1","campaigns","{{campaignsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0af93b53-6b6c-4ea2-8d67-9b8ccf442ae2"},{"name":"Extrair status de uma campanha","id":"6a951582-b72a-41e4-b22c-996d4ae482bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/campaigns/{{campaignId}}/stats","urlObject":{"path":["api","v1","campaigns","{{campaignId}}","stats"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a951582-b72a-41e4-b22c-996d4ae482bf"},{"name":"Visualizar quem criou e enviou uma campanha","id":"e6c9c62d-1ac5-4ca5-b91e-9f69ae921a37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/campaigns?query={\"where\":{\"$and\":[{\"createdAt\":{\"$gte\":\"{{2024-05-07T00:00:00.000Z}}\"}},{\"createdAt\":{\"$lte\":\"{{2024-05-07T23:00:00.000Z}}\"}}]},\"order\":[[\"createdAt\",\"DESC\"]],\"include\":[\"service\",\"tags\",{\"model\":\"messages\",\"include\":\"file\"},{\"model\":\"createdBy\",\"attributes\":[\"id\",\"name\"]},{\"model\":\"sentBy\",\"attributes\":[\"id\",\"name\"]}],\"page\":1,\"perPage\":15}","urlObject":{"path":["api","v1","campaigns"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"where\":{\"$and\":[{\"createdAt\":{\"$gte\":\"{{2024-05-07T00:00:00.000Z}}\"}},{\"createdAt\":{\"$lte\":\"{{2024-05-07T23:00:00.000Z}}\"}}]},\"order\":[[\"createdAt\",\"DESC\"]],\"include\":[\"service\",\"tags\",{\"model\":\"messages\",\"include\":\"file\"},{\"model\":\"createdBy\",\"attributes\":[\"id\",\"name\"]},{\"model\":\"sentBy\",\"attributes\":[\"id\",\"name\"]}],\"page\":1,\"perPage\":15}"}],"variable":[]}},"response":[],"_postman_id":"e6c9c62d-1ac5-4ca5-b91e-9f69ae921a37"},{"name":"Editar campanha","id":"2911e700-708c-4c8c-ab03-0cb6a59f5609","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"//Copiar o retorno do GET \"Buscar campanha\" aqui e altera-lo","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/campaigns/{{campaignsId}}","urlObject":{"path":["api","v1","campaigns","{{campaignsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2911e700-708c-4c8c-ab03-0cb6a59f5609"},{"name":"Exportar resultados da campanha","id":"a78bbb98-e611-4b0d-a301-dab9401ab07f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer  {{TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"where\": {\n        \"campaignId\": \"{{campaignId}}\" //ID da campanha\n    },\n    \"type\": \"semiColon\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/campaigns/export/csv\n","urlObject":{"path":["api","v1","campaigns","export","csv\n"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a78bbb98-e611-4b0d-a301-dab9401ab07f"},{"name":"Excluir campanha","id":"daf16783-aae0-4406-bee9-162a0cb53e07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/campaigns/{{campaignsId}}","urlObject":{"path":["api","v1","campaigns","{{campaignsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"daf16783-aae0-4406-bee9-162a0cb53e07"}],"id":"201ae6f8-26d0-416a-bc97-7fec2411e0bd","description":"<p>Disparo de mensagens em massa.</p>\n","_postman_id":"201ae6f8-26d0-416a-bc97-7fec2411e0bd","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Campos personalizados","item":[{"name":"Listar campos personalizados","id":"e55eac7c-a34d-425e-ab33-37680640f35f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/custom-fields?perPage=40","urlObject":{"path":["api","v1","custom-fields"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"e55eac7c-a34d-425e-ab33-37680640f35f"},{"name":"Buscar campo personalizado","id":"56c9cef3-9027-44bb-b81d-5c83b71e972e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/custom-fields/{{customFieldsId}}","urlObject":{"path":["api","v1","custom-fields","{{customFieldsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"56c9cef3-9027-44bb-b81d-5c83b71e972e"},{"name":"Editar campo personalizado","id":"9c7247c5-8614-4dde-a32b-2df5e483b662","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\",\r\n    \"type\": \"text\",\r\n    \"allowed\": \"contacts\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/custom-fields/{{customFieldsId}}","urlObject":{"path":["api","v1","custom-fields","{{customFieldsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c7247c5-8614-4dde-a32b-2df5e483b662"},{"name":"Criar campo personalizado","id":"b0a6b65e-0c32-418b-a850-2eada56a4f4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\",\r\n    \"type\": \"text\",\r\n    \"allowed\": \"contacts\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/custom-fields","urlObject":{"path":["api","v1","custom-fields"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b0a6b65e-0c32-418b-a850-2eada56a4f4c"},{"name":"Excluir campo personalizado","id":"028f4231-a154-43a9-b507-b986a46385a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/custom-fields/{{customFieldsId}}","urlObject":{"path":["api","v1","custom-fields","{{customFieldsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"028f4231-a154-43a9-b507-b986a46385a4"}],"id":"cf5b67cd-8eb7-4ad4-a8bb-ca1484d487e4","description":"<p>A ferramenta de Campos Personalizados é utilizada para adicionar campos de preenchimento nos registros de contatos. Com ela é possível criar um pequeno banco de dados para informações mais simples, mas que podem ajudar no dia a dia, como por exemplo, um e-mail do cliente, CPF ou até um número de matrícula.</p>\n","_postman_id":"cf5b67cd-8eb7-4ad4-a8bb-ca1484d487e4","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Cargos","item":[{"name":"Listar cargos","id":"30d1160d-ad73-4230-9c1a-4ad8a88fa60d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/roles?perPage=40","urlObject":{"path":["api","v1","roles"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"30d1160d-ad73-4230-9c1a-4ad8a88fa60d"},{"name":"Buscar cargo","id":"fbd1d5ad-8a03-4ba7-be5d-142c60d7c287","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/roles/{{roleId}}","urlObject":{"path":["api","v1","roles","{{roleId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fbd1d5ad-8a03-4ba7-be5d-142c60d7c287"},{"name":"Buscar permissões do cargo","id":"f06e3fa9-abaf-43b0-8d2d-2e10dc08ba8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}}}/api/v1/roles/{{roleId}}?include=permissions","urlObject":{"path":["api","v1","roles","{{roleId}}"],"host":["{{URL}}}}"],"query":[{"key":"include","value":"permissions"}],"variable":[]}},"response":[],"_postman_id":"f06e3fa9-abaf-43b0-8d2d-2e10dc08ba8c"},{"name":"Buscar cargos do usuário","id":"3723ee00-38e9-4789-9087-8d7464ebd3aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/users/{{roleId}}?include=roles","urlObject":{"path":["api","v1","users","{{roleId}}"],"host":["{{URL}}"],"query":[{"key":"include","value":"roles"}],"variable":[]}},"response":[],"_postman_id":"3723ee00-38e9-4789-9087-8d7464ebd3aa"},{"name":"Editar cargo","id":"0a513fa8-a76d-4778-94a0-cfabb65aaf29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"displayName\": \"{{name}}\",\r\n  \"isAdmin\": {{false}},\r\n  \"permissions\": [] \r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/roles/{{roleId}}","urlObject":{"path":["api","v1","roles","{{roleId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a513fa8-a76d-4778-94a0-cfabb65aaf29"},{"name":"Criar cargo","id":"ec88a37c-7638-4546-ba93-79291e7a02e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"displayName\": \"{{name}}\",\r\n  \"isAdmin\": {{false}},\r\n  \"permissions\": [] \r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/roles","urlObject":{"path":["api","v1","roles"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec88a37c-7638-4546-ba93-79291e7a02e1"},{"name":"Excluir cargo","id":"a8cdca62-1137-45d4-a690-4679c6c3f579","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/roles/{{roleId}}","urlObject":{"path":["api","v1","roles","{{roleId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8cdca62-1137-45d4-a690-4679c6c3f579"}],"id":"b0380cf6-2ddc-4ce4-8f69-79afcdc80ced","description":"<p>Os cargos funcionam como uma hierarquia de acesso dentro da plataforma. Aqui serão configuradas as permissões que o Administrador oferece aos seus usuários.</p>\n<p>A plataforma já vem configurada para que o Administrador tenha acesso total e o Operador tem um acesso mais limitado, basicamente tem permissão de uso no Chat e visualização de algumas ferramentas.</p>\n","_postman_id":"b0380cf6-2ddc-4ce4-8f69-79afcdc80ced","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Central de notificações","item":[{"name":"Listar central de notificações","id":"e96dd82c-5aec-44d8-8952-79d51d9e61ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/notifications?perPage=40","urlObject":{"path":["api","v1","notifications"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"e96dd82c-5aec-44d8-8952-79d51d9e61ad"},{"name":"Marcar todas as notificações como lidas","id":"562446e3-d270-44e1-9332-1e5ebecc4f6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/notifications/read-all","urlObject":{"path":["api","v1","notifications","read-all"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"562446e3-d270-44e1-9332-1e5ebecc4f6c"}],"id":"151646ea-d631-4018-a1fc-27d5efe8bf34","_postman_id":"151646ea-d631-4018-a1fc-27d5efe8bf34","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Chamados","item":[{"name":"Buscar chamados do contato","id":"638c2fd2-324f-47a5-9fb0-524b681a6f86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?where[contactId]={{contactId}}","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"where[contactId]","value":"{{contactId}}"}],"variable":[]}},"response":[],"_postman_id":"638c2fd2-324f-47a5-9fb0-524b681a6f86"},{"name":"Buscar pelo contactid todos os chamados do cliente trazendo quem encerrou/transferiu","id":"1c270835-1f0e-48ed-910e-9f34802d59ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"where\":{\"contactId\":\"{{contactId}}\"},\"attributes\":[\"id\",\"isOpen\",\"protocol\",\"origin\",\"startedAt\",\"endedAt\"],\"include\":[{\"model\":\"ticketTransfers\",\"attributes\":[\"action\",\"fromDistribution\"],\"include\":[{\"model\":\"byUser\",\"attributes\":[\"id\",\"name\",\"email\",\"status\"]}]}],\"perPage\":50}\n","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"where\":{\"contactId\":\"{{contactId}}\"},\"attributes\":[\"id\",\"isOpen\",\"protocol\",\"origin\",\"startedAt\",\"endedAt\"],\"include\":[{\"model\":\"ticketTransfers\",\"attributes\":[\"action\",\"fromDistribution\"],\"include\":[{\"model\":\"byUser\",\"attributes\":[\"id\",\"name\",\"email\",\"status\"]}]}],\"perPage\":50}\n"}],"variable":[]}},"response":[],"_postman_id":"1c270835-1f0e-48ed-910e-9f34802d59ac"},{"name":"Transferência de chamado","id":"3b817a63-c735-4bca-9a6f-17040f766ea1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"departmentId\": \"{{departmentId}}\",\r\n    \"userId\": \"{{userId}}\", //id do usuário SE for abrir direto para ele\r\n    \"comments\": \"{{comments}}\" //comentario interno\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/ticket/transfer","urlObject":{"path":["api","v1","contacts","{{contactId}}","ticket","transfer"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b817a63-c735-4bca-9a6f-17040f766ea1"},{"name":"Transferência de Transferência em massa","id":"d1199a01-3567-423a-8c81-a6457d1b0847","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"departmentId\": \"{{departmentId}}\", //id do departamento que vai receber os chamados\n    \"userId\": \"{{userId}}\", //id do usuário que vai receber os chamados\n    \"comments\": \"{{comments}}\", //comentário da transferência\n    \"ticketsSelectedId\": [\n        \"{{idTicket}}\", //id dos chamados\n        \"{{idTicket}}\",\n        \"{{idTicket}}\",\n        \"{{idTicket}}\",\n        \"{{idTicket}}\",\n        \"{{idTicket}}\",\n        \"{{idTicket}}\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/ticket/bulk-transfer","urlObject":{"path":["api","v1","contacts","ticket","bulk-transfer"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1199a01-3567-423a-8c81-a6457d1b0847"},{"name":"Abertura de chamado","id":"8e95287a-6273-49f1-a039-d490375647c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"departmentId\": \"{{departmentId}}\",\r\n    \"userId\": \"{{userId}}\",\r\n    \"comments\": \"{{comments}}\" //comentario interno\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/ticket/transfer","urlObject":{"path":["api","v1","contacts","{{contactId}}","ticket","transfer"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e95287a-6273-49f1-a039-d490375647c6"},{"name":"Fechar chamado","id":"aca5d971-eea3-4c14-bec3-84ff3e18feff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/ticket/close","urlObject":{"path":["api","v1","contacts","{{contactId}}","ticket","close"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aca5d971-eea3-4c14-bec3-84ff3e18feff"},{"name":"Fechar um chamado com assunto","id":"e8fd417d-9d32-4f82-b1a7-da1ffc1a64e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"ticketTopicIds\": \"{{ticketTopicIds}}\" //ID do chamado\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/ticket/close","urlObject":{"path":["api","v1","contacts","{{contactId}}","ticket","close"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8fd417d-9d32-4f82-b1a7-da1ffc1a64e3"}],"id":"cbee7692-ea25-4ad4-8efb-94fc376b6769","description":"<p>Acontecerá todo o atendimento entre atendente e contato. Abaixo estão as imagens da estrutura do bate papo e todas as ferramentas disponíveis:</p>\n<img src=\"https://content.pstmn.io/02abd137-00c0-4f7f-9a5d-0aa5585a1cf7/aW1hZ2UucG5n\" width=\"505\" height=\"497\" />","_postman_id":"cbee7692-ea25-4ad4-8efb-94fc376b6769","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Conexões","item":[{"name":"Listar conexões","id":"ced867ea-cee1-41a1-93c9-ee8881816231","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/services?perPage=35","urlObject":{"path":["api","v1","services"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"35"}],"variable":[]}},"response":[],"_postman_id":"ced867ea-cee1-41a1-93c9-ee8881816231"},{"name":"Buscar conexão","id":"70e8888c-2fb6-41fc-b64b-b3c9d0fd2e16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/services/{{serviceId}}","urlObject":{"path":["api","v1","services","{{serviceId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"70e8888c-2fb6-41fc-b64b-b3c9d0fd2e16"},{"name":"Buscar conexões ativas","id":"4b7367a6-ca46-4fed-b8ef-a363d4d404a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/services?query={\"where\":{\"archivedAt\":{\"$eq\":null}},\"order\":[[\"name\",\"asc\"]],\"page\":1,\"perPage\":50}","urlObject":{"path":["api","v1","services"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"where\":{\"archivedAt\":{\"$eq\":null}},\"order\":[[\"name\",\"asc\"]],\"page\":1,\"perPage\":50}"}],"variable":[]}},"response":[],"_postman_id":"4b7367a6-ca46-4fed-b8ef-a363d4d404a5"},{"name":"Editar conexão","id":"255183e9-0615-4672-a525-f5b9ee61a56a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"{{serviceId}}\", //id da conexão\r\n    \"name\": \"{{name}}\",\r\n    \"archivedAt\": null,\r\n    \"type\": \"{{type}}\", //tipo (e-mail, telegram, etc)\r\n    \"deletedAt\": null,\r\n    \"accountId\": \"{{accountId}}\", //id da conta\r\n    \"botId\": \"{{botId}}\", //id do robo\r\n    \"defaultDepartmentId\": \"{{defaultDepartmentId}}\" //id departamento padrão\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/services/{{serviceId}}","urlObject":{"path":["api","v1","services","{{serviceId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"255183e9-0615-4672-a525-f5b9ee61a56a"},{"name":"Arquivar conexão","id":"c7e0fd2d-07f1-4d13-a7ef-e30fd8d9247f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"archive\": true,\r\n    \"type\": \"{{tipo}}\" //tipo (e-mail, telegram, etc)\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/services/{{serviceId}}/archive","urlObject":{"path":["api","v1","services","{{serviceId}}","archive"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7e0fd2d-07f1-4d13-a7ef-e30fd8d9247f"},{"name":"Criar conexão","id":"2cac396c-0998-4e1d-8264-f5467b1f5eb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"{{name}}\",\r\n    \"type\":\"{{type}}\", //tipo (e-mail, telegram, etc)\r\n    \"botId\": \"{{teste}}\", //id do robo\r\n    \"defaultDepartmentId\": \"{{teste}}\" //id departamento padrão\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/services","urlObject":{"path":["api","v1","services"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2cac396c-0998-4e1d-8264-f5467b1f5eb3"},{"name":"Desligar conexão","id":"4f1225ed-6c4d-4630-8226-e18ebc1e6fc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}api/v1/services/{{serviceId}}/shutdown","urlObject":{"path":["v1","services","{{serviceId}}","shutdown"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f1225ed-6c4d-4630-8226-e18ebc1e6fc3"},{"name":"Iniciar conexão","id":"ee4d3485-edcd-4a83-8cc5-2e5c4a1ce824","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/api/v1/services/{{serviceId}}/start","urlObject":{"path":["api","v1","services","{{serviceId}}","start"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee4d3485-edcd-4a83-8cc5-2e5c4a1ce824"},{"name":"Reiniciar conexão","id":"13920b9b-447b-4553-a97d-21d2276a92dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}api/v1/services/{{serviceId}}/restart","urlObject":{"path":["v1","services","{{serviceId}}","restart"],"host":["{{URL}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"13920b9b-447b-4553-a97d-21d2276a92dd"},{"name":"Gerar QR Code","id":"25114f2d-1c6f-4de9-b4e8-900659b8ce85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/api/v1/services/{{serviceId}}/logout","urlObject":{"path":["api","v1","services","{{serviceId}}","logout"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"25114f2d-1c6f-4de9-b4e8-900659b8ce85"},{"name":"Excluir conexão","id":"0a6b7f3e-03cb-43a6-b161-cba08b387397","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/services/{{serviceId}}","urlObject":{"path":["api","v1","services","{{serviceId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a6b7f3e-03cb-43a6-b161-cba08b387397"}],"id":"3eb1a91f-bfea-4ed7-8fd5-3c026091dc06","description":"<p>A Digisac disponibiliza as seguintes conexões:</p>\n<img src=\"https://content.pstmn.io/b1fb5d74-918e-40af-8318-e854fcf0d3cf/aW1hZ2UucG5n\" width=\"612\" height=\"172\" />","_postman_id":"3eb1a91f-bfea-4ed7-8fd5-3c026091dc06","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Contatos","item":[{"name":"Listar todos os contatos","id":"8b9b2d47-f109-40ca-bd60-16e105d128f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts?perPage=40","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"8b9b2d47-f109-40ca-bd60-16e105d128f8"},{"name":"Listar contatos da conexão","id":"c9760417-4eca-4b96-bf3e-c5a5f750de09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts?where[serviceId]={{serviceId}}?perPage=40","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[{"key":"where[serviceId]","value":"{{serviceId}}?perPage=40"}],"variable":[]}},"response":[],"_postman_id":"c9760417-4eca-4b96-bf3e-c5a5f750de09"},{"name":"Buscar contato","id":"3dc9a521-1b2e-4721-984b-8c875bb91ebe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3dc9a521-1b2e-4721-984b-8c875bb91ebe"},{"name":"Buscar contato por número de uma conexão específica","id":"83b0807e-ea03-42a0-90c7-7f3dcfbd63e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/api/v1/contacts?where[data.number][$iLike]=%{{number}}%&where[serviceId]={{serviceId}}","urlObject":{"path":["api","v1","contacts"],"host":["{{url}}"],"query":[{"key":"where[data.number][$iLike]","value":"%{{number}}%"},{"key":"where[serviceId]","value":"{{serviceId}}"}],"variable":[]}},"response":[],"_postman_id":"83b0807e-ea03-42a0-90c7-7f3dcfbd63e5"},{"name":"Buscar tags vinculadas a um contato","id":"6f66d33a-bca8-47c2-8821-5015b66ed5eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts/{{contactId}}?include[0]=tags&include[1]","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[{"key":"include[0]","value":"tags"},{"key":"include[1]","value":null}],"variable":[]}},"response":[],"_postman_id":"6f66d33a-bca8-47c2-8821-5015b66ed5eb"},{"name":"Buscar contatos vinculados ao Campo Personalizado","id":"2982a6a7-0445-4c65-85c1-b798a2ed3beb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts?query={\"include\":[{\"model\":\"customFieldValues\",\"include\":[{\"model\":\"customField\",\"where\":{\"name\":\"{{customFieldName}}\"}}]}]}","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"include\":[{\"model\":\"customFieldValues\",\"include\":[{\"model\":\"customField\",\"where\":{\"name\":\"{{customFieldName}}\"}}]}]}"}],"variable":[]}},"response":[],"_postman_id":"2982a6a7-0445-4c65-85c1-b798a2ed3beb"},{"name":"Busca de contatos que possuem X campos personalizados preenchidos","id":"f93f977f-ff21-4a4c-87d8-5103f95a3b8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts?query={\"include\":[{\"model\":\"customFieldValues\",\"include\":[{\"model\":\"customField\",\"where\":{\"$or\":[{\"name\":\"{{customFieldName1}}\"},{\"name\":\"{{customFieldName2}}\"},{\"name\":\"{{customFieldName3}}\"},{\"name\":\"{{customFieldName4}}\"}]}}]}]}","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"include\":[{\"model\":\"customFieldValues\",\"include\":[{\"model\":\"customField\",\"where\":{\"$or\":[{\"name\":\"{{customFieldName1}}\"},{\"name\":\"{{customFieldName2}}\"},{\"name\":\"{{customFieldName3}}\"},{\"name\":\"{{customFieldName4}}\"}]}}]}]}"}],"variable":[]}},"response":[],"_postman_id":"f93f977f-ff21-4a4c-87d8-5103f95a3b8e"},{"name":"Buscar contatos vinculados a Organização","id":"5c6e8425-5ccb-48ed-8303-c0cd62d5cb72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts?query={\"include\":[{\"model\":\"person\",\"required\":\"true\",\"where\":{\"id\":\"{{organizationId}}\"}}],\"perPage\":\"30\"}","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"include\":[{\"model\":\"person\",\"required\":\"true\",\"where\":{\"id\":\"{{organizationId}}\"}}],\"perPage\":\"30\"}"}],"variable":[]}},"response":[],"_postman_id":"5c6e8425-5ccb-48ed-8303-c0cd62d5cb72"},{"name":"Buscar contatos vinculados a Pessoa","id":"a3e61e58-253a-4ad1-a51c-3ddf59a85f59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts?query={\"include\":[{\"model\":\"person\",\"required\":\"true\",\"where\":{\"id\":\"{{personId}}\"}}],\"perPage\":\"30\"}","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"include\":[{\"model\":\"person\",\"required\":\"true\",\"where\":{\"id\":\"{{personId}}\"}}],\"perPage\":\"30\"}"}],"variable":[]}},"response":[],"_postman_id":"a3e61e58-253a-4ad1-a51c-3ddf59a85f59"},{"name":"Editar contato","id":"9af123ee-a826-49b7-8041-4139511b09a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n\"internalName\": \"{{name}}\",\r\n\"number\": \"{{number}}\",\r\n\"serviceId\": \"{{serviceid}}\", //id conexão\r\n\"defaultDepartmentId\": null,\r\n\"tagIds\": [\"{{tagIds}}\", \"{{tagIds}}\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9af123ee-a826-49b7-8041-4139511b09a2"},{"name":"Editar tag do contato","id":"430086bc-2abf-447d-a20c-7563d34d7e99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n\"tagIds\": [\"{{tagIds}}\", \"{{tagIds}}\"] //id tag\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"430086bc-2abf-447d-a20c-7563d34d7e99"},{"name":"Editar campo personalizado de um contato","id":"03bdec7a-fa0c-4320-9d5b-f2ad3c3a1210","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"customFields\": [\r\n        {\r\n            \"id\": \"{{customFieldsId}}\",\r\n            \"value\": \"{{texto}}\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"03bdec7a-fa0c-4320-9d5b-f2ad3c3a1210"},{"name":"Incluir tags em um contato existente","id":"acd37280-7c6e-4e11-9ba0-0163691bc963","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\"tagIds\": [\"{{tagIds}}\", \"{{tagIds}}\"] //id tag\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"acd37280-7c6e-4e11-9ba0-0163691bc963"},{"name":"Cadastrar contato","id":"cd75727d-0e4c-4dfd-b1ac-4c5ba06713ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"internalName\": \"{{name}}\",\r\n\"number\": \"{{number}}\", //número contato\r\n\"serviceId\": \"{{serviceid}}\", //id conexão\r\n\"defaultDepartmentId\": null,\r\n\"tagIds\": [\"{{tagIds}}\"], //id tag\r\n\"customFields\": [ //campos personalizados\r\n        {\r\n            \"id\": \"{{customFieldId}}\", //id campo personalizado\r\n            \"value\": \"{{value}}\" //texto\r\n        }\r\n]\r\n}\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd75727d-0e4c-4dfd-b1ac-4c5ba06713ab"},{"name":"Cadastrar múltiplos contatos","id":"e9e534f7-0b70-4ba8-b02c-cd9004dc620d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"internalName\": \"{{name}}\", //Nome do contato\r\n        \"number\": \"{{number}}\", //Número do contato\r\n        \"serviceId\": \"{{serviceid}}\", //ID da conexão\r\n        \"defaultDepartmentId\": null,\r\n        \"tagIds\": [\r\n            \"{{tagIds}}\" //ID da TAG\r\n        ]\r\n    },\r\n    {\r\n        \"internalName\": \"{{name}}\",\r\n        \"number\": \"{{number}}\",\r\n        \"serviceId\": \"{{serviceid}}\",\r\n        \"defaultDepartmentId\": null,\r\n        \"tagIds\": [\r\n            \"{{tagIds}}\"\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/many","urlObject":{"path":["api","v1","contacts","many"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9e534f7-0b70-4ba8-b02c-cd9004dc620d"},{"name":"Exportar contatos","id":"c6cfd679-48d4-436d-9cc6-aa6f2b00f501","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"where\": {\r\n    \"visible\": true,\r\n    \"isGroup\": {\r\n      \"$eq\": false\r\n    },\r\n    \"isBroadcast\": {\r\n      \"$eq\": false\r\n    },\r\n    \"serviceId\": \"{{serviceId}}\" //id conexão\r\n  },\r\n  \"include\": [\r\n    \"avatar\",\r\n    \"tags\",\r\n    {\r\n      \"model\": \"service\",\r\n      \"required\": true\r\n    },\r\n    \"person\"\r\n  ],\r\n  \"order\": [\r\n    [\r\n      \"name\",\r\n      \"ASC\"\r\n    ]\r\n  ],\r\n  \"page\": 1,\r\n  \"perPage\": 15,\r\n  \"type\": \"comma\",\r\n  \"serviceType\": \"whatsapp\" //tipo de conexão (e-mail, telegram, etc)\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/export/csv","urlObject":{"path":["api","v1","contacts","export","csv"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6cfd679-48d4-436d-9cc6-aa6f2b00f501"},{"name":"Total de contatos com filtros","id":"621b4fc4-fad7-4d66-a182-9cc714a460c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"query\": {\r\n    \"isFiltered\": false,\r\n    \"departmentIds\": [ \r\n      {{departmentIds}} //id departamento - Opcional\r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/count","description":"<p>Realizar uma requisição nessa rota retornará a quantidade de<br />chamados do usuário em aberto e a quantidade de chamados na fila dos<br />departamentos em que estiver vinculado.</p>\n","urlObject":{"path":["api","v1","contacts","count"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"621b4fc4-fad7-4d66-a182-9cc714a460c3"},{"name":"Sincroniza contato","id":"e4e51912-0234-4f29-b389-37768a8a77fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/sync","description":"<p>Inicia a sincronização do contato e busca novas mensagens.</p>\n","urlObject":{"path":["api","v1","contacts","{{contactId}}","sync"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e4e51912-0234-4f29-b389-37768a8a77fc"},{"name":"Bloquear contato","id":"601a649a-4c74-46d6-80f6-2c37adc650ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/api/v1/contacts/{{contactId}}/block","urlObject":{"path":["api","v1","contacts","{{contactId}}","block"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"601a649a-4c74-46d6-80f6-2c37adc650ca"},{"name":"Desbloquear contato","id":"f20860c6-704c-4658-9c1b-f97ec7093605","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"block\": false,\r\n    \"description\": \"{{description}}\" //descrição (texto explicando o motivo)\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/block","urlObject":{"path":["api","v1","contacts","{{contactId}}","block"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f20860c6-704c-4658-9c1b-f97ec7093605"},{"name":"Excluir contato","id":"8166a937-8598-41f2-83bb-111b3a3552af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8166a937-8598-41f2-83bb-111b3a3552af"},{"name":"Exclui multiplos contatos","id":"9145bee6-2e0f-4866-8b9c-ea53a8ffd537","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n  \"where\": {\r\n    \"id\": [\r\n      \"{{contactId}}\", //ID dos contatos que deseja excluir\r\n      \"{{contactId}}\"\r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/many","urlObject":{"path":["api","v1","contacts","many"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9145bee6-2e0f-4866-8b9c-ea53a8ffd537"}],"id":"fac65718-d390-4023-85a5-b3748c18672b","description":"<p>Contatos são os números dos seus clientes que serão salvos dentro da Digisac.</p>\n","_postman_id":"fac65718-d390-4023-85a5-b3748c18672b","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Controle de ausência","item":[{"name":"Listar ausências","id":"3266db61-8504-4acd-98ca-413cc29d99d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/absence?filters[createdAt]={{2024-04-09T12:50:49.385}}Z&filters[endedAt]={{2024-04-16T12:50:49.385}}Z&include=user&page=1000&perPage=40","urlObject":{"path":["api","v1","absence"],"host":["{{URL}}"],"query":[{"key":"filters[createdAt]","value":"{{2024-04-09T12:50:49.385}}Z"},{"key":"filters[endedAt]","value":"{{2024-04-16T12:50:49.385}}Z"},{"key":"include","value":"user"},{"key":"page","value":"1000"},{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"3266db61-8504-4acd-98ca-413cc29d99d0"}],"id":"bb732aaa-aa27-4fed-bf25-9732d3002d9f","_postman_id":"bb732aaa-aa27-4fed-bf25-9732d3002d9f","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Créditos SMS","item":[{"name":"Listagem de créditos","id":"7227a386-d942-434c-b17f-c66dccd02cba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/credit-movements?perPage=40","urlObject":{"path":["api","v1","credit-movements"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"7227a386-d942-434c-b17f-c66dccd02cba"},{"name":"Balanço","id":"5b7d56ab-3ec5-4e8f-8d64-d4dc7fc9ed0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/credit-movements/balances","urlObject":{"path":["api","v1","credit-movements","balances"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b7d56ab-3ec5-4e8f-8d64-d4dc7fc9ed0d"},{"name":"Buscar uma movimentação expecífica ","id":"48534442-3dbe-4ce3-8998-93ce9d31021d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/credit-movements/{{movementId}}","urlObject":{"path":["api","v1","credit-movements","{{movementId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"48534442-3dbe-4ce3-8998-93ce9d31021d"}],"id":"bd214266-ab9f-4634-8178-0641dc26d6d0","description":"<p>Os créditos são utilizados para fazer o envio de mensagens via SMS pela plataforma. Esta área é o local para consultar a quantidade de créditos disponíveis para o envio de campanhas.</p>\n","_postman_id":"bd214266-ab9f-4634-8178-0641dc26d6d0","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Departamentos","item":[{"name":"Listar departamentos","id":"4defc18f-f5f9-4191-9022-a5f3f50d26f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/departments?perPage=40","urlObject":{"path":["api","v1","departments"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"4defc18f-f5f9-4191-9022-a5f3f50d26f3"},{"name":"Buscar departamento","id":"4cc54519-fd37-4784-8b7e-4d7d440e6ded","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/departments/{{departmentId}}","urlObject":{"path":["api","v1","departments","{{departmentId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4cc54519-fd37-4784-8b7e-4d7d440e6ded"},{"name":"Editar departamento","id":"cfd338c6-a034-42f8-97fd-45af49a8110c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\" //nome\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/departments/{{departmentId}}","urlObject":{"path":["api","v1","departments","{{departmentId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cfd338c6-a034-42f8-97fd-45af49a8110c"},{"name":"Criar departamento","id":"fea6b6e0-0bca-4301-b426-1aa454f27e86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\" //nome\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/departments","urlObject":{"path":["api","v1","departments"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fea6b6e0-0bca-4301-b426-1aa454f27e86"},{"name":"Arquivar departamento","id":"c168fff4-683b-4f10-8a98-68b4fe2918b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"archive\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/departments/{{departmentId}}/archive","urlObject":{"path":["api","v1","departments","{{departmentId}}","archive"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c168fff4-683b-4f10-8a98-68b4fe2918b4"},{"name":"Excluir departamento","id":"9f469fee-b097-4e70-8a28-965fd05d3e5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/departments/{{departmentId}}","urlObject":{"path":["api","v1","departments","{{departmentId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f469fee-b097-4e70-8a28-965fd05d3e5f"}],"id":"98933ad9-2fd8-40fa-87bf-0c15c88e383c","description":"<p>Os departamentos se referem às áreas da empresa que realizarão os atendimentos (ex.: Suporte, Comercial, Atendimento).</p>\n<p>Obs.: em cada departamento, é possível vincular mais de um usuário cadastrado.</p>\n","_postman_id":"98933ad9-2fd8-40fa-87bf-0c15c88e383c","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Distribuição de chamados","item":[{"name":"Listas distribuições de chamados","id":"10c69f1b-1a79-480d-9556-68ffc6927c4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/distribution?perPage=40","urlObject":{"path":["api","v1","distribution"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"10c69f1b-1a79-480d-9556-68ffc6927c4b"},{"name":"Buscar distribuição de chamados","id":"07b77829-cf81-4932-9f9f-39a0620f7529","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/distribution/{{distributionId}}","urlObject":{"path":["api","v1","distribution","{{distributionId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"07b77829-cf81-4932-9f9f-39a0620f7529"},{"name":"Editar distribuição de chamados","id":"f228da5e-3792-4f2e-86c8-1802a0115710","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\",\r\n    \"maxNum\": 1, //máximo de chamados por Atendente e Departamento\r\n    \"timeToRedistribute\": 5,//tempo máximo em minutos que os chamados permanecerão na fila do usuário offline.\r\n    \"departments\": [\r\n        {\r\n            \"id\": \"[{{departmentId}}], [{{departmentId}}]\" //id departamento\r\n        }\r\n    ],\r\n    \"roles\": [\r\n        {\r\n            \"id\": \"[{{roleId}}], [{{roleId}}]\" //id cargo\r\n        }\r\n    ],\r\n    \"redistributeAll\": false, //redistribuir todos os chamados\r\n    \"redistributeAssignedTickets\": false, //redistribuir somente chamados não respondidos\r\n    \"distributeQueue\": true //true = distribuir em Fila ou false = Distribuição Padrão\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/distribution/{{distributionId}}","urlObject":{"path":["api","v1","distribution","{{distributionId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f228da5e-3792-4f2e-86c8-1802a0115710"},{"name":"Criar distribuição de chamados - Fila","id":"3fabf03b-490e-4071-85ce-fa27b08eeae9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\",\r\n    \"maxNum\": 1, //máximo de chamados por Atendente e Departamento\r\n    \"timeToRedistribute\": 5, //tempo máximo em minutos que os chamados permanecerão na fila do usuário offline.\r\n    \"departments\": [\r\n        {\r\n            \"id\": \"[{{departmentId}}], [{{departmentId}}]\" //id departamento\r\n        }\r\n    ],\r\n    \"roles\": [\r\n        {\r\n            \"id\": \"[{{roleId}}], [{{roleId}}]\" //id cargo\r\n        }\r\n    ],\r\n    \"redistributeAll\": false, //redistribuir todos os chamados\r\n    \"redistributeAssignedTickets\": false, //redistribuir somente chamados não respondidos\r\n    \"distributeQueue\": true //true = Distribuir em fila\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/distribution","urlObject":{"path":["api","v1","distribution"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3fabf03b-490e-4071-85ce-fa27b08eeae9"},{"name":"Criar distribuição de chamados - Padrão","id":"65d5da28-2eab-4d6a-a475-01d5e501b29c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\",\r\n    \"maxNum\": 1, //máximo de chamados por Atendente e Departamento\r\n    \"timeToRedistribute\": 5, //tempo máximo em minutos que os chamados permanecerão na fila do usuário offline.\r\n    \"departments\": [\r\n        {\r\n            \"id\": \"[{{departmentId}}], [{{departmentId}}]\" //id departamento\r\n        }\r\n    ],\r\n    \"roles\": [\r\n        {\r\n            \"id\": \"[{{roleId}}], [{{roleId}}]\" //id cargo\r\n        }\r\n    ],\r\n    \"redistributeAll\": false, //redistribuir todos os chamados\r\n    \"redistributeAssignedTickets\": false, //redistribuir somente chamados não respondidos\r\n    \"distributeQueue\": false //false = Distribuição padrão\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/distribution","urlObject":{"path":["api","v1","distribution"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"65d5da28-2eab-4d6a-a475-01d5e501b29c"},{"name":"Excluir distribuição de chamados","id":"6c3838e4-80c4-4172-a95c-c295f5f90259","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/distribution/{{distributionId}}","urlObject":{"path":["api","v1","distribution","{{distributionId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6c3838e4-80c4-4172-a95c-c295f5f90259"}],"id":"abfcceae-cdc7-43ce-907f-7bcbc60cfe6b","description":"<p>A distribuição de chamados tem a intenção de realizar a ramificação de atendimentos de maneira igualitária e automática para usuários de determinados departamentos.</p>\n","_postman_id":"abfcceae-cdc7-43ce-907f-7bcbc60cfe6b","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Estatísticas de atendimento","item":[{"name":"Buscar estatísticas por período","id":"9c8de58a-ae95-4378-853b-6d4afd733ca8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-01-01T23:59:59.999Z}}&endPeriod={{2023-01-02T23:59:59.999Z}}&grouping=&departmentId=all&userId=all&periodType=openDate&departmentParticipation=last&userParticipation=last&status=all","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-01-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2023-01-02T23:59:59.999Z}}"},{"key":"grouping","value":""},{"key":"departmentId","value":"all"},{"key":"userId","value":"all"},{"key":"periodType","value":"openDate"},{"key":"departmentParticipation","value":"last"},{"key":"userParticipation","value":"last"},{"key":"status","value":"all"}],"variable":[]}},"response":[],"_postman_id":"9c8de58a-ae95-4378-853b-6d4afd733ca8"},{"name":"Buscar estatísticas por conexão","id":"467401b2-b73c-4ac5-97dc-f90cd3890251","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&serviceId={{serviceId}}","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"serviceId","value":"{{serviceId}}"}],"variable":[]}},"response":[],"_postman_id":"467401b2-b73c-4ac5-97dc-f90cd3890251"},{"name":"Buscar estatísticas por departamento","id":"e2de869b-4e70-4077-9ec2-114350596840","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&grouping=&departmentId={{departmentId}}","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"grouping","value":""},{"key":"departmentId","value":"{{departmentId}}"}],"variable":[]}},"response":[],"_postman_id":"e2de869b-4e70-4077-9ec2-114350596840"},{"name":"Buscar estatísticas por usuário","id":"9b519f56-4887-4c06-9716-fb4fe9a0e8cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&userId={{userId}}","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}},"urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"userId","value":"{{userId}}"}],"variable":[]}},"response":[],"_postman_id":"9b519f56-4887-4c06-9716-fb4fe9a0e8cf"},{"name":"Buscar estatísticas por dpt + usuário","id":"0c96db73-1585-4f89-a7b8-14b35173314a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&grouping=&departmentId={{departmentId}}&userId={{userId}}","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"grouping","value":""},{"key":"departmentId","value":"{{departmentId}}"},{"key":"userId","value":"{{userId}}"}],"variable":[]}},"response":[],"_postman_id":"0c96db73-1585-4f89-a7b8-14b35173314a"},{"name":"Buscar estatísticas por data de abertura","id":"b85bbe84-ea28-449d-abda-cdf45d9e04d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&periodType=open","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"periodType","value":"open"}],"variable":[]}},"response":[],"_postman_id":"b85bbe84-ea28-449d-abda-cdf45d9e04d1"},{"name":"Buscar estatísticas por data de fechamento","id":"04e6fec1-67f3-4c3f-852d-7f62b7e5334a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&periodType=close","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"periodType","value":"close"}],"variable":[]}},"response":[],"_postman_id":"04e6fec1-67f3-4c3f-852d-7f62b7e5334a"},{"name":"Buscar estatísticas dos chamados abertos","id":"9f1eda59-6313-467a-bea8-f1c8185f7007","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&status=open","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"status","value":"open"}],"variable":[]}},"response":[],"_postman_id":"9f1eda59-6313-467a-bea8-f1c8185f7007"},{"name":"Buscar estatísticas dos chamados fechados","id":"49c8ac20-3449-4204-9203-8bc8608c1621","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&status=close","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"status","value":"close"}],"variable":[]}},"response":[],"_postman_id":"49c8ac20-3449-4204-9203-8bc8608c1621"},{"name":"Buscar estatísticas com todos os filtros ativos","id":"f7321994-7a2c-4e86-b174-1bc0dd17d3a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&grouping=&departmentId={{departmentId}}&userId={{userId}}&periodType={{open/close}}Date&departmentParticipation={{last/middle}}&userParticipation={{last/middle}}&status={{all/open/close}}&serviceId={{serviceId}}","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"grouping","value":""},{"key":"departmentId","value":"{{departmentId}}"},{"key":"userId","value":"{{userId}}"},{"key":"periodType","value":"{{open/close}}Date"},{"key":"departmentParticipation","value":"{{last/middle}}"},{"key":"userParticipation","value":"{{last/middle}}"},{"key":"status","value":"{{all/open/close}}"},{"key":"serviceId","value":"{{serviceId}}"}],"variable":[]}},"response":[],"_postman_id":"f7321994-7a2c-4e86-b174-1bc0dd17d3a2"}],"id":"b895cd8d-92ca-444f-9139-3552d7d3b3d3","description":"<p>Essa ferramenta permite que seja visualizado uma média de como estão os atendimentos com os clientes de uma maneira geral ou individualizada de acordo com os filtros gerados.</p>\n","_postman_id":"b895cd8d-92ca-444f-9139-3552d7d3b3d3","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Estatísticas de avaliações","item":[{"name":"Buscar avaliações sem filtro","id":"54506e2f-cb31-4363-b9f7-48101534bd6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/answers","urlObject":{"path":["api","v1","answers"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"54506e2f-cb31-4363-b9f7-48101534bd6a"},{"name":"Buscar avaliações por período","id":"19605645-f3b7-4905-9a8d-b8fce559301f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/answers/overview?startPeriod={{2024-01-01T23:59:59.999Z}}&endPeriod={{2023-01-02T23:59:59.999Z}}","urlObject":{"path":["api","v1","answers","overview"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-01-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2023-01-02T23:59:59.999Z}}"}],"variable":[]}},"response":[],"_postman_id":"19605645-f3b7-4905-9a8d-b8fce559301f"},{"name":"Buscar avaliações por conexão","id":"dc95b075-2992-419d-bf7a-d8eac5cd30a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/answers/overview?serviceId={{serviceId}}&periodType={{all/close/open}}&from={{2024-07-30T18:01:07.341Z}}&to={{2024-08-06T18:01:07.341Z}}&type={{csat/nps}}","urlObject":{"path":["api","v1","answers","overview"],"host":["{{URL}}"],"query":[{"key":"serviceId","value":"{{serviceId}}"},{"key":"periodType","value":"{{all/close/open}}"},{"key":"from","value":"{{2024-07-30T18:01:07.341Z}}"},{"key":"to","value":"{{2024-08-06T18:01:07.341Z}}"},{"key":"type","value":"{{csat/nps}}"}],"variable":[]}},"response":[],"_postman_id":"dc95b075-2992-419d-bf7a-d8eac5cd30a8"},{"name":"Buscar avaliações por departamento","id":"e3e79964-dd7b-4558-a620-18a016c16ce2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/answers/overview?departmentId={{departmentId}}&from={{2024-07-30T18:01:07.341Z}}&to={{2024-08-06T18:01:07.341Z}}&type={{csat/nps}}","urlObject":{"path":["api","v1","answers","overview"],"host":["{{URL}}"],"query":[{"key":"departmentId","value":"{{departmentId}}"},{"key":"from","value":"{{2024-07-30T18:01:07.341Z}}"},{"key":"to","value":"{{2024-08-06T18:01:07.341Z}}"},{"key":"type","value":"{{csat/nps}}"}],"variable":[]}},"response":[],"_postman_id":"e3e79964-dd7b-4558-a620-18a016c16ce2"},{"name":"Buscar avaliações por usuário","id":"34628893-12e2-44ae-9d87-352228411402","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/answers/overview?userId={{userId}}&from={{2024-07-30T18:01:07.341Z}}&to={{2024-08-06T18:01:07.341Z}}&type={{csat/nps}}","urlObject":{"path":["api","v1","answers","overview"],"host":["{{URL}}"],"query":[{"key":"userId","value":"{{userId}}"},{"key":"from","value":"{{2024-07-30T18:01:07.341Z}}"},{"key":"to","value":"{{2024-08-06T18:01:07.341Z}}"},{"key":"type","value":"{{csat/nps}}"}],"variable":[]}},"response":[],"_postman_id":"34628893-12e2-44ae-9d87-352228411402"},{"name":"Buscar avaliações por dpt + usuário","id":"86e0780c-dc42-48c7-8d28-5ffb17eb4e20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/answers/overview?userId={{userId}}&departmentId={{departmentId}}&from={{2024-07-30T18:01:07.341Z}}&to={{2024-08-06T18:01:07.341Z}}&type={{csat/nps}}","urlObject":{"path":["api","v1","answers","overview"],"host":["{{URL}}"],"query":[{"key":"userId","value":"{{userId}}"},{"key":"departmentId","value":"{{departmentId}}"},{"key":"from","value":"{{2024-07-30T18:01:07.341Z}}"},{"key":"to","value":"{{2024-08-06T18:01:07.341Z}}"},{"key":"type","value":"{{csat/nps}}"}],"variable":[]}},"response":[],"_postman_id":"86e0780c-dc42-48c7-8d28-5ffb17eb4e20"},{"name":"Buscar avaliações com todos os filtros ativos","id":"64de24af-8fb2-4614-8b5b-726f21776f19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/answers/overview?userId={{userId}}&departmentId={{departmentId}}&serviceId={{serviceId}}&periodType={{all/close/open}}&from={{2024-07-30T18:01:07.341Z}}&to={{2024-08-06T18:01:07.341Z}}&type={{csat/nps}}","urlObject":{"path":["api","v1","answers","overview"],"host":["{{URL}}"],"query":[{"key":"userId","value":"{{userId}}"},{"key":"departmentId","value":"{{departmentId}}"},{"key":"serviceId","value":"{{serviceId}}"},{"key":"periodType","value":"{{all/close/open}}"},{"key":"from","value":"{{2024-07-30T18:01:07.341Z}}"},{"key":"to","value":"{{2024-08-06T18:01:07.341Z}}"},{"key":"type","value":"{{csat/nps}}"}],"variable":[]}},"response":[],"_postman_id":"64de24af-8fb2-4614-8b5b-726f21776f19"}],"id":"ca1a568e-95ae-43c7-9ce1-f690d339976b","_postman_id":"ca1a568e-95ae-43c7-9ce1-f690d339976b","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Feriados","item":[{"name":"Listar feriados","id":"e94b8755-c686-4c0b-9f93-9b9150b37a6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/holiday?perPage=40","urlObject":{"path":["api","v1","holiday"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"e94b8755-c686-4c0b-9f93-9b9150b37a6f"},{"name":"Buscar feriado","id":"cc4ab72b-9b2c-4441-91f7-15ef6e50e270","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/holiday/{{holidayId}}","urlObject":{"path":["api","v1","holiday","{{holidayId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc4ab72b-9b2c-4441-91f7-15ef6e50e270"},{"name":"Editar feriado","id":"4ce0a885-a801-4a21-942f-020ab31bb385","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\", //nome feriado\r\n    \"from\": \"{{2024-07-25T03:00:00.000Z}}\", //data e hora inicial\r\n    \"to\": \"{{2024-07-27T02:59:00.000Z}}\", //data e hora final\r\n    \"message\": \"{{massage}}\" //mensagem de texto do feriado\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/holiday/{{holidayId}}","urlObject":{"path":["api","v1","holiday","{{holidayId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ce0a885-a801-4a21-942f-020ab31bb385"},{"name":"Criar feriado","id":"6451437e-231a-48ad-ba9c-4ec3e0873d2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\", //nome feriado\r\n    \"from\": \"{{2024-07-25T03:00:00.000Z}}\", //data e hora inicial\r\n    \"to\": \"{{2024-07-27T02:59:00.000Z}}\", //data e hora final\r\n    \"message\": \"{{massage}}\" //mensagem de texto do feriado\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/holiday","urlObject":{"path":["api","v1","holiday"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6451437e-231a-48ad-ba9c-4ec3e0873d2d"},{"name":"Excluir feriado","id":"41d8a9c3-7b31-461c-8379-d9737e1b440b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/holiday/{{holidayId}}","urlObject":{"path":["api","v1","holiday","{{holidayId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"41d8a9c3-7b31-461c-8379-d9737e1b440b"}],"id":"f1f1bc75-0b80-42b4-bb54-1359640791c5","description":"<p>Com ícone feriados é possível determinar, como o próprio nome diz, dias de feriados, nos quais o robô realizará interação com essas datas e identificará ser um dia de “não trabalho”, enviando assim, uma mensagem de ausência para todos os clientes que entrarem em contato naquele dia especifico.</p>\n","_postman_id":"f1f1bc75-0b80-42b4-bb54-1359640791c5","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Funil de vendas","item":[{"name":"Listar funis de vendas","id":"6ae2bbc6-2d2e-40c0-979d-ae4c2985c01c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/pipelines?perPage=30","urlObject":{"path":["api","v1","pipelines"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"30"}],"variable":[]}},"response":[],"_postman_id":"6ae2bbc6-2d2e-40c0-979d-ae4c2985c01c"},{"name":"Buscar funil de vendas","id":"817e8fab-4e01-4f25-86f1-0999cb70aa9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/pipelines/{{pipelineId}}","urlObject":{"path":["api","v1","pipelines","{{pipelineId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"817e8fab-4e01-4f25-86f1-0999cb70aa9f"},{"name":"Criar funil de vendas","id":"0eb5e160-3ace-4b8a-b7ab-6f95162331db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"{{name}}\", //nome\n    \"type\": \"sales\",\n    \"goBack\": false //false ou true\n    // \"goBack\": false = Apenas avançar\n    //\"goBack\": true = Avançar e recuar\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/pipelines","urlObject":{"path":["api","v1","pipelines"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0eb5e160-3ace-4b8a-b7ab-6f95162331db"},{"name":"Editar funil de vendas","id":"a2813054-fa9f-4bd6-ba6a-0bbca9dce9e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"{{name}}\", //nome\n    \"type\": \"sales\",\n    \"goBack\": false //false ou true\n    // \"goBack\": false = Apenas avançar\n    //\"goBack\": true = Avançar e recuar\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/pipelines/{{pipelineId}}","urlObject":{"path":["api","v1","pipelines","{{pipelineId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a2813054-fa9f-4bd6-ba6a-0bbca9dce9e2"},{"name":"Apagar funil de vendas","id":"32779b57-740e-415d-abe1-779b7385b701","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/pipelines/{{pipelineId}}","urlObject":{"path":["api","v1","pipelines","{{pipelineId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"32779b57-740e-415d-abe1-779b7385b701"},{"name":"Listar oportunidades","id":"c2203ff1-921b-4b96-b3ad-670147aba3e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{Token}}"}],"url":"{{URL}}/api/v1/cards?query={\"where\":{\"pipelineId\":\"{{pipelineId}}\"}}","urlObject":{"path":["api","v1","cards"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"where\":{\"pipelineId\":\"{{pipelineId}}\"}}"}],"variable":[]}},"response":[],"_postman_id":"c2203ff1-921b-4b96-b3ad-670147aba3e9"},{"name":"Buscar oportunidades","id":"76699f9e-7cae-423b-8f64-16aaca570a66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{Token}}"}],"url":"{{URL}}/api/v1/cards/{{cardsId}}","urlObject":{"path":["api","v1","cards","{{cardsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"76699f9e-7cae-423b-8f64-16aaca570a66"},{"name":"Criar oportunidade","id":"8195ab2a-f195-4bee-9891-7606df7d22a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{Token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"{{title}}\",\n    \"description\": \"{{description}}\",\n    \"accountId\": \"{{accountId}}\",\n    \"contactId\": \"{{contactId}}\",\n    \"pipelineId\": \"{{pipelineId}}\",\n    \"pipelineStageId\": \"{{pipelineStageId}}\",\n    \"ownerId\": \"{{ownerId}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/v1/cards","urlObject":{"path":["v1","cards"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8195ab2a-f195-4bee-9891-7606df7d22a0"},{"name":"Editar oportunidade","id":"aa24a801-b87a-4154-b745-6a725fce034d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{Token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"{{title}}\",\n    \"description\": \"\",\n    \"accountId\": \"{{accountId}}\",\n    \"contactId\": \"{{contactId}}\",\n    \"pipelineId\": \"{{pipelineId}}\",\n    \"pipelineStageId\": \"{{pipelineStageId}}\",\n    \"organization\": \"\",\n    \"organizationSegment\": \"\",\n    \"statusId\": null,\n    \"reasonId\": null,\n    \"originChannel\": \"\",\n    \"originCampaign\": \"\",\n    \"order\": 1,\n    \"ownerId\": \"{{ownerId}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/v1/cards/{{cardsId}}","urlObject":{"path":["v1","cards","{{cardsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa24a801-b87a-4154-b745-6a725fce034d"},{"name":"Apagar oportunidade","id":"e8510ef7-6948-4f81-b28b-b00342995d0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{Token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/v1/cards/{{cardsId}}","urlObject":{"path":["v1","cards","{{cardsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8510ef7-6948-4f81-b28b-b00342995d0e"}],"id":"4c71dbd8-8a64-4758-a5d3-c9d8a761e1d2","_postman_id":"4c71dbd8-8a64-4758-a5d3-c9d8a761e1d2","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Grupos WhatsApp","item":[{"name":"Listar grupos por conexão WhatsApp","id":"5a525358-db7d-4122-98d5-6d6ee5759010","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/whatsapp/groups/service/{{serviceId}}","urlObject":{"path":["api","v1","whatsapp","groups","service","{{serviceId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a525358-db7d-4122-98d5-6d6ee5759010"},{"name":"Adicionar participante","id":"37619b59-f4a2-460a-b458-46cc72145295","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{Token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"[{\n    \"number\": \"{{number}}}}\" // número de quem será adicionado\n}]","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/add-members","urlObject":{"path":["api","v1","contacts","{{contactId}}","add-members"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"37619b59-f4a2-460a-b458-46cc72145295"},{"name":"Atribuir cargo de administrador","id":"a5d88626-d5b0-42db-92e4-d575d62bb7fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{Token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    \"{{contactId}}\" // id do contato de quem será promovido a administrador\n] ","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/promote-members","urlObject":{"path":["api","v1","contacts","{{contactId}}","promote-members"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5d88626-d5b0-42db-92e4-d575d62bb7fe"},{"name":"Criar novo grupo","id":"2ac5e181-1bce-40f0-bb40-e0ab2293a4ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{Token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"serviceId\": \"{{serviceId}}\", // id da conexão\n  \"internalName\": \"{{groupName}}\", // nome do grupo\n  \"isGroup\": true\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ac5e181-1bce-40f0-bb40-e0ab2293a4ac"},{"name":"Remover permissões de administrador","id":"246bd1b9-fde4-49c8-afdd-6809a072e271","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{Token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    \"{{contactId}}\" // id do contato de quem será retirado o cargo de administrador\n] ","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/demote-members","urlObject":{"path":["api","v1","contacts","{{contactId}}","demote-members"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"246bd1b9-fde4-49c8-afdd-6809a072e271"}],"id":"7c18a691-3681-4b69-952c-605a39d4e75a","_postman_id":"7c18a691-3681-4b69-952c-605a39d4e75a","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Histórico de chamados","item":[{"name":"Buscar chamados abertos por contactid","id":"25e2fcca-d577-48a8-a456-06d04e5879c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"where\":{\"isOpen\":true},\"include\":[{\"model\":\"contact\",\"required\":true,\"where\":{\"visible\":true,\"id\":\"{{contactId}}\"}}]}","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"where\":{\"isOpen\":true},\"include\":[{\"model\":\"contact\",\"required\":true,\"where\":{\"visible\":true,\"id\":\"{{contactId}}\"}}]}"}],"variable":[]}},"response":[],"_postman_id":"25e2fcca-d577-48a8-a456-06d04e5879c5"},{"name":"Buscar chamados abertos por departamento","id":"ed2c208b-06c9-4ac9-b4d4-adbcb12750fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{Token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"where\":{\"isOpen\":true,\"departmentId\":\"{{departmentId}}\"},\"include\":[{\"model\":\"contact\",\"required\":true,\"where\":{\"visible\":true}}],\"order\":[[\"updatedAt\",\"DESC\"]],\"page\":1,\"perPage\":15}","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"where\":{\"isOpen\":true,\"departmentId\":\"{{departmentId}}\"},\"include\":[{\"model\":\"contact\",\"required\":true,\"where\":{\"visible\":true}}],\"order\":[[\"updatedAt\",\"DESC\"]],\"page\":1,\"perPage\":15}"}],"variable":[]}},"response":[],"_postman_id":"ed2c208b-06c9-4ac9-b4d4-adbcb12750fd"},{"name":"Buscar por um chamado específico","id":"a42ac1ee-0409-4ec0-8fbb-fd64b3246a09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets/{{ticketId}}?include[0][model]=contact&include[0][include][0]=avatar&include[0][include][1]=thumbAvatar&include[1]=department&include[2]=user&include[3]=ticketTopics","urlObject":{"path":["api","v1","tickets","{{ticketId}}"],"host":["{{URL}}"],"query":[{"key":"include[0][model]","value":"contact"},{"key":"include[0][include][0]","value":"avatar"},{"key":"include[0][include][1]","value":"thumbAvatar"},{"key":"include[1]","value":"department"},{"key":"include[2]","value":"user"},{"key":"include[3]","value":"ticketTopics"}],"variable":[]}},"response":[],"_postman_id":"a42ac1ee-0409-4ec0-8fbb-fd64b3246a09"},{"name":"Buscar chamados por período","id":"9236ff67-8a81-4805-8966-d32e9831e72b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?startPeriod={{2024-01-01T23:59:59.999Z}}&endPeriod={{2023-01-02T23:59:59.999Z}}","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-01-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2023-01-02T23:59:59.999Z}}"}],"variable":[]}},"response":[],"_postman_id":"9236ff67-8a81-4805-8966-d32e9831e72b"},{"name":"Buscar chamados abertos por conexão","id":"105fa8b3-d2e0-4c92-9c86-204cc7e24369","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":true},\"include\":[{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":true},\"include\":[{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}"}],"variable":[]}},"response":[],"_postman_id":"105fa8b3-d2e0-4c92-9c86-204cc7e24369"},{"name":"Buscar chamados fechados por conexão","id":"32e7a638-2981-4a8f-b768-032aee6fe55c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":false},\"include\":[{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":false},\"include\":[{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}"}],"variable":[]}},"response":[],"_postman_id":"32e7a638-2981-4a8f-b768-032aee6fe55c"},{"name":"Buscar chamados abertos + fechados por conexão","id":"0122c6d4-cdcc-4090-8e8b-c920d8e5895c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":{\"$in\":[true,false]}},\"include\":[{\"model\":\"contact\",\"attributes\":[\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":{\"$in\":[true,false]}},\"include\":[{\"model\":\"contact\",\"attributes\":[\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}"}],"variable":[]}},"response":[],"_postman_id":"0122c6d4-cdcc-4090-8e8b-c920d8e5895c"},{"name":"Buscar todos os chamados da plataforma","id":"ce4ba033-5ad0-44dd-b731-cd64808a593f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{},\"include\":[{\"model\":\"account\"},{\"model\":\"firstMessage\",\"attributes\":[\"id\",\"type\",\"text\",\"timestamp\",\"isFromMe\",\"sent\",\"data\",\"accountId\",\"serviceId\",\"contactId\",\"fromId\",\"toId\",\"userId\",\"ticketId\",\"isFromBot\",\"isFromSync\",\"visible\",\"ticketUserId\",\"ticketDepartmentId\",\"origin\",\"botId\",\"campaignId\"]},{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true},{\"model\":\"tags\",\"attributes\":[\"id\",\"label\",\"accountId\"]},{\"model\":\"person\",\"attributes\":[\"id\",\"name\",\"document\",\"accountId\"]},{\"model\":\"thumbAvatar\"}]},{\"model\":\"user\",\"attributes\":[\"id\",\"name\",\"email\",\"isSuperAdmin\",\"active\",\"accountId\",\"isFirstLogin\",\"status\",\"timetableId\",\"archivedAt\",\"phoneNumber\",\"data\",\"language\",\"isActiveInternalChat\"]},{\"model\":\"department\",\"attributes\":[\"id\",\"name\",\"accountId\",\"archivedAt\",\"distributionId\"]},{\"model\":\"ticketTopics\",\"attributes\":[\"id\",\"name\",\"archivedAt\"]}]}&perPage=30","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{},\"include\":[{\"model\":\"account\"},{\"model\":\"firstMessage\",\"attributes\":[\"id\",\"type\",\"text\",\"timestamp\",\"isFromMe\",\"sent\",\"data\",\"accountId\",\"serviceId\",\"contactId\",\"fromId\",\"toId\",\"userId\",\"ticketId\",\"isFromBot\",\"isFromSync\",\"visible\",\"ticketUserId\",\"ticketDepartmentId\",\"origin\",\"botId\",\"campaignId\"]},{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true},{\"model\":\"tags\",\"attributes\":[\"id\",\"label\",\"accountId\"]},{\"model\":\"person\",\"attributes\":[\"id\",\"name\",\"document\",\"accountId\"]},{\"model\":\"thumbAvatar\"}]},{\"model\":\"user\",\"attributes\":[\"id\",\"name\",\"email\",\"isSuperAdmin\",\"active\",\"accountId\",\"isFirstLogin\",\"status\",\"timetableId\",\"archivedAt\",\"phoneNumber\",\"data\",\"language\",\"isActiveInternalChat\"]},{\"model\":\"department\",\"attributes\":[\"id\",\"name\",\"accountId\",\"archivedAt\",\"distributionId\"]},{\"model\":\"ticketTopics\",\"attributes\":[\"id\",\"name\",\"archivedAt\"]}]}"},{"key":"perPage","value":"30"}],"variable":[]}},"response":[],"_postman_id":"ce4ba033-5ad0-44dd-b731-cd64808a593f"},{"name":"Exportar histórico de chamados em PDF","id":"ec8c14ab-d5e5-4bb7-a5e4-a57955817963","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/pdf/tickets/{{ticketId}}/pt-BR?pdf=1&lng=pt-BR","urlObject":{"path":["pdf","tickets","{{ticketId}}","pt-BR"],"host":["{{URL}}"],"query":[{"key":"pdf","value":"1"},{"key":"lng","value":"pt-BR"}],"variable":[]}},"response":[],"_postman_id":"ec8c14ab-d5e5-4bb7-a5e4-a57955817963"},{"name":"Exportar histórico de chamados em TXT","id":"ec571434-bd80-448e-9d6c-2972597cb1d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"protocol\": \"{{protocolNumber}}\" //Número do protocolo\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tickets/export","urlObject":{"path":["api","v1","tickets","export"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec571434-bd80-448e-9d6c-2972597cb1d3"},{"name":"Exportar histórico de chamados em CSV","id":"f919a824-8e76-40bb-933c-da0a6221cd8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/api/v1/tickets/export-history?query={\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{},\"include\":[{\"model\":\"firstMessage\",\"attributes\":[\"id\",\"type\",\"text\",\"timestamp\",\"isFromMe\",\"sent\",\"data\",\"accountId\",\"serviceId\",\"contactId\",\"fromId\",\"toId\",\"userId\",\"ticketId\",\"isFromBot\",\"isFromSync\",\"visible\",\"ticketUserId\",\"ticketDepartmentId\",\"origin\",\"botId\",\"campaignId\"]},{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true},{\"model\":\"tags\",\"attributes\":[\"id\",\"label\",\"accountId\"]},{\"model\":\"person\",\"attributes\":[\"id\",\"name\",\"document\",\"accountId\"]}]},{\"model\":\"user\",\"attributes\":[\"id\",\"name\",\"email\",\"isSuperAdmin\",\"active\",\"accountId\",\"isFirstLogin\",\"status\",\"timetableId\",\"archivedAt\",\"phoneNumber\",\"data\",\"language\",\"isActiveInternalChat\"]},{\"model\":\"department\",\"attributes\":[\"id\",\"name\",\"accountId\",\"archivedAt\",\"distributionId\"]},{\"model\":\"ticketTopics\",\"attributes\":[\"id\",\"name\",\"archivedAt\"]}]}","urlObject":{"path":["api","v1","tickets","export-history"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{},\"include\":[{\"model\":\"firstMessage\",\"attributes\":[\"id\",\"type\",\"text\",\"timestamp\",\"isFromMe\",\"sent\",\"data\",\"accountId\",\"serviceId\",\"contactId\",\"fromId\",\"toId\",\"userId\",\"ticketId\",\"isFromBot\",\"isFromSync\",\"visible\",\"ticketUserId\",\"ticketDepartmentId\",\"origin\",\"botId\",\"campaignId\"]},{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true},{\"model\":\"tags\",\"attributes\":[\"id\",\"label\",\"accountId\"]},{\"model\":\"person\",\"attributes\":[\"id\",\"name\",\"document\",\"accountId\"]}]},{\"model\":\"user\",\"attributes\":[\"id\",\"name\",\"email\",\"isSuperAdmin\",\"active\",\"accountId\",\"isFirstLogin\",\"status\",\"timetableId\",\"archivedAt\",\"phoneNumber\",\"data\",\"language\",\"isActiveInternalChat\"]},{\"model\":\"department\",\"attributes\":[\"id\",\"name\",\"accountId\",\"archivedAt\",\"distributionId\"]},{\"model\":\"ticketTopics\",\"attributes\":[\"id\",\"name\",\"archivedAt\"]}]}"}],"variable":[]}},"response":[],"_postman_id":"f919a824-8e76-40bb-933c-da0a6221cd8f"},{"name":"Exportar histórico de chamados de uma conexão específica em CSV","id":"1e15c823-2891-490b-b101-6079e2725aab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/api/v1/tickets/export-history?query={\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{},\"include\":[{\"model\":\"firstMessage\",\"attributes\":[\"id\",\"type\",\"text\",\"timestamp\",\"isFromMe\",\"sent\",\"data\",\"accountId\",\"serviceId\",\"contactId\",\"fromId\",\"toId\",\"userId\",\"ticketId\",\"isFromBot\",\"isFromSync\",\"visible\",\"ticketUserId\",\"ticketDepartmentId\",\"origin\",\"botId\",\"campaignId\"]},{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{servieId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true},{\"model\":\"tags\",\"attributes\":[\"id\",\"label\",\"accountId\"]},{\"model\":\"person\",\"attributes\":[\"id\",\"name\",\"document\",\"accountId\"]}]},{\"model\":\"user\",\"attributes\":[\"id\",\"name\",\"email\",\"isSuperAdmin\",\"active\",\"accountId\",\"isFirstLogin\",\"status\",\"timetableId\",\"archivedAt\",\"phoneNumber\",\"data\",\"language\",\"isActiveInternalChat\"]},{\"model\":\"department\",\"attributes\":[\"id\",\"name\",\"accountId\",\"archivedAt\",\"distributionId\"]},{\"model\":\"ticketTopics\",\"attributes\":[\"id\",\"name\",\"archivedAt\"]}]}","urlObject":{"path":["api","v1","tickets","export-history"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{},\"include\":[{\"model\":\"firstMessage\",\"attributes\":[\"id\",\"type\",\"text\",\"timestamp\",\"isFromMe\",\"sent\",\"data\",\"accountId\",\"serviceId\",\"contactId\",\"fromId\",\"toId\",\"userId\",\"ticketId\",\"isFromBot\",\"isFromSync\",\"visible\",\"ticketUserId\",\"ticketDepartmentId\",\"origin\",\"botId\",\"campaignId\"]},{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{servieId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true},{\"model\":\"tags\",\"attributes\":[\"id\",\"label\",\"accountId\"]},{\"model\":\"person\",\"attributes\":[\"id\",\"name\",\"document\",\"accountId\"]}]},{\"model\":\"user\",\"attributes\":[\"id\",\"name\",\"email\",\"isSuperAdmin\",\"active\",\"accountId\",\"isFirstLogin\",\"status\",\"timetableId\",\"archivedAt\",\"phoneNumber\",\"data\",\"language\",\"isActiveInternalChat\"]},{\"model\":\"department\",\"attributes\":[\"id\",\"name\",\"accountId\",\"archivedAt\",\"distributionId\"]},{\"model\":\"ticketTopics\",\"attributes\":[\"id\",\"name\",\"archivedAt\"]}]}"}],"variable":[]}},"response":[],"_postman_id":"1e15c823-2891-490b-b101-6079e2725aab"}],"id":"df0441ba-a7f4-4573-a378-45353fc59dd3","description":"<p>O Histórico de Chamados é um dos relatórios de análise de atendimentos mais completos da plataforma, principalmente pelos seus filtros.</p>\n","_postman_id":"df0441ba-a7f4-4573-a378-45353fc59dd3","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Integrações","item":[{"name":"Listar integrações","id":"936f0cc8-8f20-4e0d-b8ed-b7ad9dd8088a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/integrations?perPage=40","urlObject":{"path":["api","v1","integrations"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"936f0cc8-8f20-4e0d-b8ed-b7ad9dd8088a"},{"name":"Buscar integração","id":"49125557-191b-4516-9da7-60ff60ec1fc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/integrations/{{integrationId}}","urlObject":{"path":["api","v1","integrations","{{integrationId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"49125557-191b-4516-9da7-60ff60ec1fc5"}],"id":"d1285d7d-6fd8-4373-9697-321ae44e78d9","description":"<p>A função de integrações tem como objetivo incorporar algum site dentro da plataforma Digisac. Com esta função, o usuário conseguirá acessar o site integrado sem precisar sair da própria plataforma.</p>\n","_postman_id":"d1285d7d-6fd8-4373-9697-321ae44e78d9","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Idioma da plataforma","item":[{"name":"Editar idioma da plataforma","id":"f0266f5e-5d32-4c75-8efb-52aeff93773d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"language\": \"pt-BR\" //pt-BR / en-US / es\r\n}\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/me","description":"<p>Só funciona para o usuário do token</p>\n","urlObject":{"path":["api","v1","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0266f5e-5d32-4c75-8efb-52aeff93773d"}],"id":"6453b0ee-354e-4be3-ad49-085eb12035e6","description":"<p>No painel de navegação, é possível escolher a língua descrita na Digisac, as opções são: Português (Brasil), Inglês e Espanhol.  </p>\n<img src=\"https://content.pstmn.io/030ffd0b-b855-4a65-9c28-57a6724599f7/aW1hZ2UucG5n\" alt height=\"105\" width=\"588\" />","_postman_id":"6453b0ee-354e-4be3-ad49-085eb12035e6","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Mensagens","item":[{"name":"Listar mensagens","id":"c2db9a2c-2629-48fc-a564-6e79096e3154","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/messages?perPage=40","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"c2db9a2c-2629-48fc-a564-6e79096e3154"},{"name":"Buscar total de mensagens do contato","id":"f813cfdd-ce86-4c32-8c0b-7ce32ca18bcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/messages?where[contactId]={{contactId}}","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[{"key":"where[contactId]","value":"{{contactId}}"}],"variable":[]}},"response":[],"_postman_id":"f813cfdd-ce86-4c32-8c0b-7ce32ca18bcd"},{"name":"Buscar mensagem include=file","id":"8d7e595d-e3ac-4c51-bfd2-fe04568cee88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[{"key":"sec-ch-ua-platform","value":"\"Linux\""},{"key":"Authorization","value":"Bearer 862e41d205efb57031aa24309b80c0c92c2b0314"},{"key":"branch","value":"default"},{"key":"Referer","value":""}],"url":"{{URL}}/api/v1/messages/{{messageId}}?include[0]=file","urlObject":{"path":["api","v1","messages","{{messageId}}"],"host":["{{URL}}"],"query":[{"key":"include[0]","value":"file"}],"variable":[]}},"response":[],"_postman_id":"8d7e595d-e3ac-4c51-bfd2-fe04568cee88"},{"name":"Enviar mensagem para contato já cadastrado","id":"bfc83943-d04c-4ca5-9862-4de2e90ef5b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\", //texto\r\n    \"type\": \"chat\",\r\n    \"contactId\": \"{{contactId}}\", //ID contato\r\n    \"userId\": \"{{userId}}\", //ID usuário\r\n    \"origin\": \"bot\" // bot or user\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bfc83943-d04c-4ca5-9862-4de2e90ef5b5"},{"name":"Enviar mensagem para contato não cadastrado","id":"c8e879db-e3cd-4870-a1c8-5ab1a3c1123c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\", //texto\r\n    \"type\": \"chat\",\r\n    \"serviceId\": \"{{serviceId}}\", // ID conexão\r\n    \"number\": \"{{number}}\", //número do contato\r\n    \"userId\": \"{{userId}}\", //ID usuário\r\n    \"origin\": \"bot\" // bot or user\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c8e879db-e3cd-4870-a1c8-5ab1a3c1123c"},{"name":"Enviar mensagem SEM abrir o chamado","id":"9efdcde1-e9e3-47a6-a257-37e3b8d18aff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\",\r\n    \"type\": \"chat\",\r\n    \"contactId\": \"{{contactId}}\",\r\n    \"userId\": \"{{userId}}\",\r\n    \"dontOpenTicket\": \"true\", //este parametro faz com que o chamado não seja aberto no momento do envio da mensagem\r\n    \"origin\": \"bot\" // bot or user\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9efdcde1-e9e3-47a6-a257-37e3b8d18aff"},{"name":"Enviar comentário","id":"ea418412-e599-4e8b-a6c5-7df87896499f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\", //texto\r\n    \"type\": \"comment\", // chat or comment\r\n    \"contactId\": \"{{contactId}}\", //id contato\r\n    \"userId\": \"{{userId}}\", //id usuário\r\n    \"origin\": \"bot\" // bot or user\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea418412-e599-4e8b-a6c5-7df87896499f"},{"name":"Enviar de mensagem usando bot e sem abrir chamado","id":"482a14c3-9075-4dae-80d1-055fbf35d052","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"text\": \"{{text}}\",\r\n\"number\": \"{{number}}\", //número do contato\r\n\"serviceId\": \"{{serviceid}}\", //id conexão\r\n\"origin\": \"bot\",\r\n\"dontOpenticket\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"482a14c3-9075-4dae-80d1-055fbf35d052"},{"name":"Enviar imagem","id":"5e83b95e-1f28-4f48-b3c4-c90765f05673","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\", //Texto\r\n    \"number\": \"{{number}}\", //Número do contato\r\n    \"serviceId\": \"{{serviceId}}\", //ID conexão\r\n    \"file\": {\r\n        \"base64\": \"{{base64}}\", //Converter a imagem em base64\r\n        \"mimetype\": \"image/jpeg\",\r\n        \"name\": \"{{name}}\" //Nome imagem\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5e83b95e-1f28-4f48-b3c4-c90765f05673"},{"name":"Enviar PDF","id":"16b59fda-6c63-49f0-96c9-f1f7c1e85604","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\", //Texto\r\n    \"number\": \"{{number}}\", //Número do contato\r\n    \"serviceId\": \"{{serviceId}}\", //ID conexão\r\n    \"file\": {\r\n        \"base64\": \"{{base64}}\", //Converter o PDF em base64\r\n        \"mimetype\": \"application/pdf\",\r\n        \"name\": \"{{name}}\" //Nome arquivo PDF\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}},"urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"16b59fda-6c63-49f0-96c9-f1f7c1e85604"},{"name":"Enviar áudio","id":"b21cefbf-6a3c-4363-bce8-4be82e7ba43a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"number\": \"{{número}}\", //Número do contato\n    \"serviceId\": \"{{serviceid}}\", //ID conexão\n    \"file\": {\n        \"base64\": \"{{base64}}\", //Converter o áudio em base64\n        \"mimetype\": \"audio/mpeg\" \n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b21cefbf-6a3c-4363-bce8-4be82e7ba43a"},{"name":"Reagir a uma mensagem","id":"6dd20a44-c94e-4d9f-a852-51314caf3474","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reactionEmojiRendered\": \"🙏\" //Colocar o emoji (reação)\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages/{{messageId}}/send-reaction","urlObject":{"path":["api","v1","messages","{{messageId}}","send-reaction"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6dd20a44-c94e-4d9f-a852-51314caf3474"},{"name":"Editar mensagem","id":"9ff8bb4a-2549-447d-8031-129720598089","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{Token}}"},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"mentionedList\": [],\n\"contactId\": \"{{contactId}}\",\n\"text\": \"{{text}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages/messageId","urlObject":{"path":["api","v1","messages","messageId"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ff8bb4a-2549-447d-8031-129720598089"}],"id":"8522e933-1243-4309-a0c4-a2a3cfcfbab8","_postman_id":"8522e933-1243-4309-a0c4-a2a3cfcfbab8","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Mensagens interativas","item":[{"name":"Listar mensagens interativas","id":"dcb0453c-7a64-4160-8dd3-3c0a517e8872","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/interactive-messages?perPage=40","urlObject":{"path":["api","v1","interactive-messages"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"dcb0453c-7a64-4160-8dd3-3c0a517e8872"},{"name":"Buscar mensagem interativa","id":"a7082da1-1cbe-48dd-9465-da67425c994a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/interactive-messages/{{interactiveMessagesId}}","urlObject":{"path":["api","v1","interactive-messages","{{interactiveMessagesId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7082da1-1cbe-48dd-9465-da67425c994a"},{"name":"Criar mensagem interativa em lista","id":"4baa8707-7525-49c7-9f37-ef76f6191548","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\",\r\n    \"file\": null,\r\n    \"interactive\": {\r\n        \"type\": \"list\", //lista\r\n        \"action\": {\r\n            \"button\": \"{{name_list}}\",\r\n            \"sections\": [\r\n                {\r\n                    \"title\": \"{{title_list}}\",\r\n                    \"rows\": [\r\n                        {\r\n                            \"title\": \"{{name_row1}}\"\r\n                        },\r\n                        {\r\n                            \"title\": \"{{name_row2}}\"\r\n                        }\r\n                    ]\r\n                }\r\n            ]\r\n        },\r\n        \"body\": //corpo\r\n        {\r\n            \"text\": \"{{body}}\"\r\n        },\r\n        \"footer\": //rodapé\r\n        {\r\n            \"text\": \"{{footer}}\"\r\n        },\r\n        \"header\": //cabeçalho\r\n        {\r\n            \"type\": \"text\",\r\n            \"text\": \"{{text}}\"\r\n        }\r\n    },\r\n    \"departments\": //id departamento\r\n    [\r\n        {\r\n            \"id\": \"{{departmentId}}\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/interactive-messages","urlObject":{"path":["api","v1","interactive-messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4baa8707-7525-49c7-9f37-ef76f6191548"},{"name":"Criar mensagem interativa com imagem","id":"6dd7acbe-91a3-42fe-ab4a-855f664a77f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"{{name}}\", //nome\n    \"interactive\": {\n        \"body\": {\n            \"text\": \"{{text}}\" //texto\n        },\n        \"type\": \"button\", //tipo\n        \"action\": {\n            \"buttons\": [\n                {\n                    \"type\": \"reply\",\n                    \"reply\": {\n                        \"title\": \"{{Button1}}\" //texto botão 1\n                    }\n                },\n                {\n                    \"type\": \"reply\",\n                    \"reply\": {\n                        \"title\": \"{{Button2}}\" //texto botão 2\n                    }\n                }\n            ]\n        },\n        \"header\": {\n            \"type\": \"image\",\n            \"image\": {\n                \"id\": \"{{id}}\" //base64Url image_id\n            }\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/interactive-messages","urlObject":{"path":["api","v1","interactive-messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6dd7acbe-91a3-42fe-ab4a-855f664a77f4"},{"name":"Enviar mensagem interativa com botão","id":"0ba95cb0-2249-42c1-997f-4a314e396066","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"chat\",\r\n    \"interactiveMessage\": {\r\n        \"name\": \"{{name}}\",\r\n        \"interactive\": {\r\n            \"type\": \"button\",\r\n            \"action\": {\r\n                \"buttons\": [\r\n                    {\r\n                        \"type\": \"reply\",\r\n                        \"reply\": {\r\n                            \"title\": \"{{button1}}\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"reply\",\r\n                        \"reply\": {\r\n                            \"title\": \"{{button2}}\"\r\n                        }\r\n                    }\r\n                ]\r\n            },\r\n            \"body\": {\r\n                \"text\": \"{{text}}\"\r\n            }\r\n        },\r\n        \"departments\": [\r\n            {\r\n                \"id\": \"{{departmentId}}\"\r\n            }\r\n        ]\r\n    },\r\n    \"contactId\": \"{{contactId}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ba95cb0-2249-42c1-997f-4a314e396066"},{"name":"Enviar mensagem interativa","id":"0fcb8eeb-a1bc-40ad-bbdc-cc4bb4e879d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"\r\n//exemplo de um modelo de body:\r\n\r\n{\r\n  \"contactId\": \"{{contactId}}\", //id contato\r\n  \"interactiveMessage\": {\r\n    \"interactive\": {\r\n      \"body\": { \r\n        \"text\": \"{{Bem vindo, Teste.}}\"  //texto mensagem interativa\r\n    },\r\n      \"type\": \"button\",\r\n      \"action\": {\r\n        \"buttons\": [\r\n          {\r\n            \"type\": \"reply\",\r\n            \"reply\": {\r\n              \"title\": \"{{Sim}}\" //titulo botão\r\n            }\r\n          },\r\n          {\r\n            \"type\": \"reply\",\r\n            \"reply\": {\r\n              \"title\": \"{{Não}}\" //titulo botão\r\n            }\r\n          }\r\n        ]\r\n      }\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0fcb8eeb-a1bc-40ad-bbdc-cc4bb4e879d9"},{"name":"Excluir mensagem interativa","id":"37bc463b-0464-48fc-b459-8bb717a7a725","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/interactive-messages/{{interactiveMessagesId}}","urlObject":{"path":["api","v1","interactive-messages","{{interactiveMessagesId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"37bc463b-0464-48fc-b459-8bb717a7a725"}],"id":"caeb8bb4-9038-4027-9e6c-34894e870f4b","description":"<p>As mensagens interativas são mensagens pré-definidas pelo administrador da plataforma com o intuito de engajar os clientes com botões, links e chamadas para ação. São como os templates, porém é possível personaliza-las de acordo com a necessidade durante o túnel de atendimento aberto sem gerar custo adicional sobre este envio.</p>\n","_postman_id":"caeb8bb4-9038-4027-9e6c-34894e870f4b","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Meus dados","item":[{"name":"Buscar meus dados","id":"950e12b5-2037-40b7-9949-285936fa949a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/me","urlObject":{"path":["api","v1","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"950e12b5-2037-40b7-9949-285936fa949a"}],"id":"7e3653d9-f98d-482a-88c2-123eae0595d8","_postman_id":"7e3653d9-f98d-482a-88c2-123eae0595d8","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Notificação","item":[{"name":"Marcar como não lido","id":"b9ce024e-7979-48b6-95fb-0edde970084a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"serviceid\": \"{{serviceid}}\", //ID conexão\r\n    \"data\": {\r\n        \"unread\": true //true or false\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9ce024e-7979-48b6-95fb-0edde970084a"},{"name":"Notificação mensagens receptivas","id":"0ff1949d-085c-4bc3-8ed7-1b6670ed9c20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"unread\": \"1\" //quantidade de notificações receptivas\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ff1949d-085c-4bc3-8ed7-1b6670ed9c20"},{"name":"Silenciar contato","id":"236a7de7-91ce-4d1c-8326-d57fa553abc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n\"isSilenced\": true // true or false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"236a7de7-91ce-4d1c-8326-d57fa553abc2"}],"id":"a3940afb-5501-4bf3-9537-5e1adae0f5d0","_postman_id":"a3940afb-5501-4bf3-9537-5e1adae0f5d0","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Organizações","item":[{"name":"Listar organizações","id":"983771a5-57dc-4e08-a479-5ba24f325d40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/organizations?perPage=40","urlObject":{"path":["api","v1","organizations"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"983771a5-57dc-4e08-a479-5ba24f325d40"},{"name":"Buscar organização","id":"7518453a-5422-4502-b427-ed1c114e62e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/organizations/{{organizationId}}","urlObject":{"path":["api","v1","organizations","{{organizationId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7518453a-5422-4502-b427-ed1c114e62e4"},{"name":"Editar organização","id":"855cc37d-95dc-4a5e-8ee9-123f50597a33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": {{name}}    \r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/organizations/{{organizationId}}","urlObject":{"path":["api","v1","organizations","{{organizationId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"855cc37d-95dc-4a5e-8ee9-123f50597a33"},{"name":"Criar organização","id":"0d42b36a-dbf7-4dc2-8544-edd2867ab02a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"{{name}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/organizations","urlObject":{"path":["api","v1","organizations"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d42b36a-dbf7-4dc2-8544-edd2867ab02a"},{"name":"Excluir organização","id":"9d10f729-cf56-4e6b-af98-670f90092844","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/organizations/{{organizationId}}","urlObject":{"path":["api","v1","organizations","{{organizationId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d10f729-cf56-4e6b-af98-670f90092844"}],"id":"ce64c9da-985b-4fcd-b70c-17f722ec1795","description":"<p>Organizações é uma forma de liberar o acesso da plataforma a um terceiro, vinculando a um agrupamento de Pessoas, permitindo o acesso a esse terceiro (usuário) de somente visualizar as conversas de um agrupamento de Pessoas em especifico.</p>\n","_postman_id":"ce64c9da-985b-4fcd-b70c-17f722ec1795","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Pessoas","item":[{"name":"Listar pessoas","id":"7e249e56-e4fd-4c47-a59b-a065c7830e51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/people?perPage=40","urlObject":{"path":["api","v1","people"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"7e249e56-e4fd-4c47-a59b-a065c7830e51"},{"name":"Buscar pessoa","id":"94ddb143-e0ea-4b6f-bed5-4ccbb6d18a77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/people/{{peopleId}}","urlObject":{"path":["api","v1","people","{{peopleId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"94ddb143-e0ea-4b6f-bed5-4ccbb6d18a77"},{"name":"Editar pessoa","id":"adc31299-d348-4922-9367-54f05d30b599","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\",\r\n    \"document\": \"{{document}}\", //documento\r\n    \"organizationIds\": [\"{{organizationId}}\", \"{{organizationId}}\"] //id organização\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/people/{{peopleId}}","urlObject":{"path":["api","v1","people","{{peopleId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"adc31299-d348-4922-9367-54f05d30b599"},{"name":"Criar pessoa","id":"a7401c09-0848-480e-801f-38c6aaed6efb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\",\r\n    \"document\": \"{{document}}\", //documento\r\n    \"organizationIds\": [\"{{organizationId}}\", \"{{organizationId}}\"] //id organização\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/people","urlObject":{"path":["api","v1","people"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7401c09-0848-480e-801f-38c6aaed6efb"},{"name":"Excluir pessoa","id":"9b8c80a7-6cf4-4d22-8538-6f89c70a0989","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/people/{{peopleId}}","urlObject":{"path":["api","v1","people","{{peopleId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b8c80a7-6cf4-4d22-8538-6f89c70a0989"}],"id":"5dba8b93-3452-4fd8-9a7f-dfea5abebb89","description":"<p>Pessoas são como um agrupamento de contatos, ou seja, é um facilitador para encontrar contatos vinculados em um mesmo grupo diretamente nas conversas internas do Chat.</p>\n","_postman_id":"5dba8b93-3452-4fd8-9a7f-dfea5abebb89","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Planos","item":[{"name":"Listar planos","id":"388d00fd-2956-44cb-bd41-096f3f8ab681","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/plans","urlObject":{"path":["api","v1","plans"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"388d00fd-2956-44cb-bd41-096f3f8ab681"},{"name":"Buscar plano","id":"e13bad92-e99f-45f3-99c0-606bbbc0de8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/plans/{{planId}}","urlObject":{"path":["api","v1","plans","{{planId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e13bad92-e99f-45f3-99c0-606bbbc0de8e"}],"id":"aefcd18f-f527-4fd6-8240-77793bb7a7a2","description":"<p>Para um maior controle de sua fatura e para que tenha mais autonomia, com a ferramenta do meu plano você pode ter acesso a sua situação financeira, descrição dos itens disponíveis em seu plano, emissão de 2ª via, histórico de fatura. Além disso, você pode realizar tanto aumento quanto redução a quantidade de usuários e conexões disponíveis.</p>\n","_postman_id":"aefcd18f-f527-4fd6-8240-77793bb7a7a2","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Redefinir senha","item":[{"name":"Solicitar uma nova senha","id":"c40b0f70-870e-47e9-a70c-714e906beb5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\" //e-mail de acesso do usuário que deseja redefinir a senha\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/reset-password/request","urlObject":{"path":["api","v1","reset-password","request"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c40b0f70-870e-47e9-a70c-714e906beb5f"}],"id":"fd8336a0-ee62-467a-8c67-16525191fd3f","_postman_id":"fd8336a0-ee62-467a-8c67-16525191fd3f","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Respostas rápidas","item":[{"name":"Listar respostas rápidas","id":"d8ecc227-4d22-4d0a-9201-7566f1321db8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/quick-replies?perPage=40","urlObject":{"path":["api","v1","quick-replies"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"d8ecc227-4d22-4d0a-9201-7566f1321db8"},{"name":"Listar textos e departamentos das respostas rápidas","id":"4798eac0-a1fd-4199-9da4-88d6eb6552a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/quick-replies?query={\"attributes\":[\"id\",\"text\"],\"include\":[{\"model\":\"departments\",\"attributes\":[\"name\",\"id\"],\"through\":{\"attributes\":[]}}],\"perPage\":40}","urlObject":{"path":["api","v1","quick-replies"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"attributes\":[\"id\",\"text\"],\"include\":[{\"model\":\"departments\",\"attributes\":[\"name\",\"id\"],\"through\":{\"attributes\":[]}}],\"perPage\":40}"}],"variable":[]}},"response":[],"_postman_id":"4798eac0-a1fd-4199-9da4-88d6eb6552a4"},{"name":"Listar somente os textos das respostas rápidas","id":"58b1a640-f46e-43d9-8faa-4a9b3b3a9e8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/quick-replies?query={\"attributes\":[\"text\"],\"perPage\":40}","urlObject":{"path":["api","v1","quick-replies"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"attributes\":[\"text\"],\"perPage\":40}"}],"variable":[]}},"response":[],"_postman_id":"58b1a640-f46e-43d9-8faa-4a9b3b3a9e8a"},{"name":"Buscar resposta rápida","id":"373e7b56-0d84-4912-bd20-b7973c951970","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/quick-replies/{{quickRepliesId}}","urlObject":{"path":["api","v1","quick-replies","{{quickRepliesId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"373e7b56-0d84-4912-bd20-b7973c951970"},{"name":"Editar resposta rápida ","id":"bfa20187-ee9c-41b5-a2f6-eacb483f860e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\",\r\n    \"departmentIds\":  [\"{{departmentId}}\", \"{{departmentId}}\"] //id departamento\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/quick-replies/{{quickRepliesId}}","urlObject":{"path":["api","v1","quick-replies","{{quickRepliesId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bfa20187-ee9c-41b5-a2f6-eacb483f860e"},{"name":"Criar resposta rápida","id":"7c0a99b2-f3a7-459d-ac6e-31252ffc2dcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{test}}\",\r\n    \"departmentIds\":  [\"{{departmentId}}\", \"{{departmentId}}\"] //id departamento\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/quick-replies","urlObject":{"path":["api","v1","quick-replies"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c0a99b2-f3a7-459d-ac6e-31252ffc2dcf"},{"name":"Excluir resposta rápida","id":"78b0efa2-ac81-49e3-b3bc-6e9474aca1b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/quick-replies/{{quickRepliesId}}","urlObject":{"path":["api","v1","quick-replies","{{quickRepliesId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"78b0efa2-ac81-49e3-b3bc-6e9474aca1b6"}],"id":"328b7dc3-6799-4dd4-8a98-39636ad5cb66","description":"<p>A ferramenta de Respostas Rápidas pode ser utilizada para agilizar o atendimento com o cliente, com ela pode-se criar vários textos que normalmente são enviados com frequência aos clientes, como por exemplo: um endereço, uma conta de banco, um formulário ou até alguma mensagem de apresentação dos atendentes.</p>\n","_postman_id":"328b7dc3-6799-4dd4-8a98-39636ad5cb66","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Robôs","item":[{"name":"Listar bots V1 / V2 / V3","id":"282a9004-a0f9-4a08-96ce-56ca87502473","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/bots?perPage=40","urlObject":{"path":["api","v1","bots"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"282a9004-a0f9-4a08-96ce-56ca87502473"},{"name":"Listar bots V1 / V2","id":"218ce4cc-1bbe-4318-8f5e-1041a56fce26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/bots?query={\"where\":{\"settings\":{\"botCreatedVersion\":{\"$or\":[null,\"v1\",\"v2\"]}}},\"order\":[[\"name\",\"ASC\"]],\"page\":1,\"perPage\":40}","urlObject":{"path":["api","v1","bots"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"where\":{\"settings\":{\"botCreatedVersion\":{\"$or\":[null,\"v1\",\"v2\"]}}},\"order\":[[\"name\",\"ASC\"]],\"page\":1,\"perPage\":40}"}],"variable":[]}},"response":[],"_postman_id":"218ce4cc-1bbe-4318-8f5e-1041a56fce26"},{"name":"Listar bots V3","id":"2d1d5c15-5dc8-4bdd-a2e9-08a4f8760bdf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/bots?query={\"where\":{\"settings\":{\"botCreatedVersion\":\"v3\"}},\"order\":[[\"name\",\"ASC\"]],\"page\":1,\"perPage\":40}","urlObject":{"path":["api","v1","bots"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"where\":{\"settings\":{\"botCreatedVersion\":\"v3\"}},\"order\":[[\"name\",\"ASC\"]],\"page\":1,\"perPage\":40}"}],"variable":[]}},"response":[],"_postman_id":"2d1d5c15-5dc8-4bdd-a2e9-08a4f8760bdf"},{"name":"Buscar bot","id":"c31f932c-2fef-45c9-80be-17e652d14cab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/bots/{{botId}}","urlObject":{"path":["api","v1","bots","{{botId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c31f932c-2fef-45c9-80be-17e652d14cab"},{"name":"Editar bot","id":"163d1cff-b046-4651-a3a3-267c1db3aba2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"//Copiar o retorno do GET \"Buscar bot\" aqui e altera-lo","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/bots/{{botId}}","urlObject":{"path":["api","v1","bots","{{botId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"163d1cff-b046-4651-a3a3-267c1db3aba2"},{"name":"Excluir bot","id":"7510935b-00dd-49b8-a42a-00c1f31bb783","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/bots/{{botId}}","urlObject":{"path":["api","v1","bots","{{botId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7510935b-00dd-49b8-a42a-00c1f31bb783"}],"id":"1cc7e1d7-30c9-4958-86ef-13b7f9ecabe2","description":"<p>Os robôs de atendimento, ou mais conhecidos como Chatbot ou somente Bot, realizam o atendimento inicial com os seus clientes. Ele é receptivo, por isso, é necessário que ele receba uma mensagem do contato para ser acionado.</p>\n","_postman_id":"1cc7e1d7-30c9-4958-86ef-13b7f9ecabe2","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Tags","item":[{"name":"Listar tags","id":"282d12b0-0a60-4b0e-a07e-f7b5c72f2616","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tags?perPage=40","urlObject":{"path":["api","v1","tags"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"282d12b0-0a60-4b0e-a07e-f7b5c72f2616"},{"name":"Buscar tag","id":"ad118a92-518d-47be-89a6-0bfb73108da1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tags/{{tagId}}","urlObject":{"path":["api","v1","tags","{{tagId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad118a92-518d-47be-89a6-0bfb73108da1"},{"name":"Buscar tags vinculadas a um contato","id":"73b0824c-c7db-4d98-be94-6fbc14e8bb55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts/{{contactId}}?include[0]=tags&include[1]","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[{"key":"include[0]","value":"tags"},{"key":"include[1]","value":null}],"variable":[]}},"response":[],"_postman_id":"73b0824c-c7db-4d98-be94-6fbc14e8bb55"},{"name":"Editar tag","id":"8573d98a-633d-4be2-8718-0dc0d0dde95c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"label\": \"{{name}}\", //nome da tag\r\n    \"backgroundColor\": \"{{#40C3FF}}\", //# da cor da Tag\r\n    \"departments\": [] //ID dos departamentos\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tags/{{tagId}}","urlObject":{"path":["api","v1","tags","{{tagId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8573d98a-633d-4be2-8718-0dc0d0dde95c"},{"name":"Criar tag","id":"fd70e43e-e2f7-4c38-aaab-c4e99e4e88e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"label\": \"{{name}}\", //nome da tag\r\n    \"backgroundColor\": \"{{#40C3FF}}\", //# da cor da Tag\r\n    \"departments\": [] //ID dos departamentos\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tags","urlObject":{"path":["api","v1","tags"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fd70e43e-e2f7-4c38-aaab-c4e99e4e88e8"},{"name":"Adicona uma tag a multiplos contatos","id":"5307638c-bbe2-4cad-93e2-a71f92736b40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"where\": {\r\n    \"id\": [\r\n      \"{{contactId}}\", //id contato\r\n      \"{{contactId}}\",\r\n      \"{{contactId}}\"\r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tags/{{tagId}}/contacts","urlObject":{"path":["api","v1","tags","{{tagId}}","contacts"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5307638c-bbe2-4cad-93e2-a71f92736b40"},{"name":"Remove uma tag a multiplos contatos","id":"765e1573-296e-4d9f-9e54-e5b6cdd4a95c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n  \"where\": {\r\n    \"id\": [\r\n      \"{{id do contato}}\",\r\n      \"{{id do contato}}\"\r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tags/{{tagId}}/contacts","urlObject":{"path":["api","v1","tags","{{tagId}}","contacts"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"765e1573-296e-4d9f-9e54-e5b6cdd4a95c"},{"name":"Excluir tag","id":"8e3c3a0e-7007-4dac-ad93-5674bd00b317","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/tags/{{tagId}}","urlObject":{"path":["api","v1","tags","{{tagId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e3c3a0e-7007-4dac-ad93-5674bd00b317"}],"id":"fe879f83-dbdd-470f-bf65-0b3993295fb4","description":"<p>As Tags são como etiquetas que têm como finalidade classificar os seus contatos através de palavras-chave.</p>\n","_postman_id":"fe879f83-dbdd-470f-bf65-0b3993295fb4","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Templates","item":[{"name":"Listar templates","id":"38eb808b-8708-4064-a7e5-42acaa7f0903","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/whatsapp-business-templates?perPage=40","urlObject":{"path":["api","v1","whatsapp-business-templates"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"38eb808b-8708-4064-a7e5-42acaa7f0903"},{"name":"Buscar template","id":"1298961a-89ec-460c-9ee0-d6644b7527ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/whatsapp-business-templates/{{templateId}}","urlObject":{"path":["api","v1","whatsapp-business-templates","{{templateId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1298961a-89ec-460c-9ee0-d6644b7527ec"},{"name":"Total de templates cadastrados","id":"a3730ec9-74d5-4aaf-ab13-3f002a1e03ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/whatsapp-business-templates/count","urlObject":{"path":["api","v1","whatsapp-business-templates","count"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a3730ec9-74d5-4aaf-ab13-3f002a1e03ae"},{"name":"Editar template","id":"e14ee88a-49cf-430b-b550-504e36a6232d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"// //Copiar o retorno do GET \"Buscar template\" aqui e altera-lo","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/whatsapp-business-templates/{{templateId}}","urlObject":{"path":["api","v1","whatsapp-business-templates","{{templateId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e14ee88a-49cf-430b-b550-504e36a6232d"},{"name":"Enviar template para aprovação","id":"0b0c8f6c-684f-4406-9a37-381d6a66be42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/api/v1/whatsapp-business-templates/{{hsmId}}/send-to-review","urlObject":{"path":["api","v1","whatsapp-business-templates","{{hsmId}}","send-to-review"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b0c8f6c-684f-4406-9a37-381d6a66be42"},{"name":"Sincronizar templates com o provedor","id":"5f021a1b-ba8d-4e85-b52b-618d010fb9e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/api/v1/whatsapp-business-templates/refresh-templates","urlObject":{"path":["api","v1","whatsapp-business-templates","refresh-templates"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f021a1b-ba8d-4e85-b52b-618d010fb9e7"},{"name":"Enviar template com botão","id":"ef613faa-a354-4f61-8aca-b3d8873b3d43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"chat\",\r\n    \"number\": \"{{number}}\", //Número do contato\r\n    \"serviceId\": \"{{serviceId}}\", //ID conexão\r\n    \"hsmId\": \"{{hsmId}}\", //ID HSM\r\n    \"files\": [],\r\n    \"uploadingFiles\": false,\r\n    \"replyTo\": null,\r\n    \"parameters\": [],\r\n    \"file\": {}\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef613faa-a354-4f61-8aca-b3d8873b3d43"},{"name":"Enviar template com URL no botão","id":"a6288561-e37c-43d7-b3df-dcd9764e14a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"chat\",\r\n    \"contactId\": \"{{contactId}}\", //ID do contato\r\n    \"hsmId\": \"{{hsmId}}\", //ID do template\r\n    \"files\": [],\r\n    \"uploadingFiles\": false,\r\n    \"replyTo\": null,\r\n    \"parameters\": [\r\n        {\r\n            \"type\": \"body\",\r\n            \"parameters\": [\r\n                {\r\n                    \"type\": \"text\",\r\n                    \"text\": \"{{text}}\" //Texto\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"type\": \"button\",\r\n            \"sub_type\": \"url\",\r\n            \"index\": 0,\r\n            \"parameters\": [\r\n                {\r\n                    \"type\": \"text\",\r\n                    \"text\": \"{{text}}\" //Parâmetro na rota (URL)\r\n                }\r\n            ]\r\n        }\r\n    ],\r\n    \"file\": {}\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a6288561-e37c-43d7-b3df-dcd9764e14a1"},{"name":"Envio de template com dois parâmetros","id":"1e4e07bf-40e4-4973-be8a-f62927641f28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"chat\",\n  \"number\": \"{{number}}\", //número do contato\n  \"serviceId\": \"{{serviceId}}\", //id da conexão\n  \"hsmId\": \"{{hsmId}}\", //id do template\n  \"files\": [],\n  \"uploadingFiles\": false,\n  \"replyTo\": null,\n  \"parameters\": [\n    {\n      \"type\": \"body\",\n      \"parameters\": [\n        {\n          \"type\": \"text\",\n          \"text\": \"{{text1}}\" //texto 1\n        },\n        {\n          \"type\": \"text\",\n          \"text\": \"{{text2}}\" //texto 2\n        }\n      ]\n    }\n  ],\n  \"file\": {}\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e4e07bf-40e4-4973-be8a-f62927641f28"},{"name":"Criar template somente com texto","id":"a9a1dbff-541c-4074-ac1c-e19daf8772ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"{{name}}\", //Nome do template\r\n  \"internalName\": \"{{internalName}}\", //Nome interno que irá aparecer no front da plataforma\r\n  \"components\": [],\r\n  \"serviceId\": \"{{serviceId}}\", //ID da conexão\r\n  \"messageType\": \"text_only\", //Tipo da mensagem\r\n  \"language\": \"pt_BR\", //Idioma\r\n  \"category\": \"{{category}}\", //Categoria do template, por exemplo: MARKETING\r\n  \"namespace\": \"\",\r\n  \"status\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/whatsapp-business-templates","urlObject":{"path":["api","v1","whatsapp-business-templates"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a9a1dbff-541c-4074-ac1c-e19daf8772ff"},{"name":"Excluir template","id":"ba40aa41-e941-4f87-bb61-b142a86c09d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/whatsapp-business-templates/{{templateId}}","urlObject":{"path":["api","v1","whatsapp-business-templates","{{templateId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba40aa41-e941-4f87-bb61-b142a86c09d1"}],"id":"19ae01db-7a93-496d-ae71-06291d0edd82","description":"<p>Os TEMPLATES são textos padrões aprovados pelo Whatsapp utilizados para iniciar um atendimento ativo através da conexão oficial do Whatsapp – WABA (mencionada no tópico de conexões).</p>\n","_postman_id":"19ae01db-7a93-496d-ae71-06291d0edd82","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Termos de aceite","item":[{"name":"Listar termos de aceite","id":"d3d023c9-b76b-4634-8dea-b6a5428881dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/acceptance-terms?perPage=40","urlObject":{"path":["api","v1","acceptance-terms"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"d3d023c9-b76b-4634-8dea-b6a5428881dd"},{"name":"Buscar termo de aceite","id":"24de91c4-8712-4bf5-86f3-3bd4eccf8051","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/acceptance-terms/{{termsId}}","urlObject":{"path":["api","v1","acceptance-terms","{{termsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"24de91c4-8712-4bf5-86f3-3bd4eccf8051"},{"name":"Editar termo de aceite","id":"d419b9ce-fd0b-4b2a-b65f-f70309060429","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\",\r\n    \"textField\": \"{{text}}\", //texto\r\n    \"file\": {}\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/acceptance-terms/{{termsId}}","urlObject":{"path":["api","v1","acceptance-terms","{{termsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d419b9ce-fd0b-4b2a-b65f-f70309060429"},{"name":"Criar termo de aceite","id":"a33a336d-fc39-47b4-82ab-ed2a8266f754","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{nome}}\",\r\n    \"textField\": \"{{texto}}\", //Texto\r\n    \"file\": {}\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/acceptance-terms","urlObject":{"path":["api","v1","acceptance-terms"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a33a336d-fc39-47b4-82ab-ed2a8266f754"},{"name":"Excluir termo de aceite","id":"2b7c363f-6e59-4605-926c-7ede87a9ded7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/acceptance-terms/{{termsId}}","urlObject":{"path":["api","v1","acceptance-terms","{{termsId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b7c363f-6e59-4605-926c-7ede87a9ded7"}],"id":"c70ff5ad-6b7f-4852-9cab-69d8b6bc65f9","description":"<p>Esta funcionalidade tem o objetivo de solicitar ao cliente que aceite ou não continuar um atendimento, de acordo com as normas e regras de sua empresa.</p>\n","_postman_id":"c70ff5ad-6b7f-4852-9cab-69d8b6bc65f9","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Tokens","item":[{"name":"Listar tokens","id":"acb06e5d-70a0-4935-b6c9-ed8d6c5ff981","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/me/tokens?perPage30","urlObject":{"path":["api","v1","me","tokens"],"host":["{{URL}}"],"query":[{"key":"perPage30","value":null}],"variable":[]}},"response":[],"_postman_id":"acb06e5d-70a0-4935-b6c9-ed8d6c5ff981"},{"name":"Buscar token","id":"89d8bcf3-2c94-4198-b7e2-955890fb1d52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/me/tokens/{{tokenId}}","urlObject":{"path":["api","v1","me","tokens","{{tokenId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"89d8bcf3-2c94-4198-b7e2-955890fb1d52"},{"name":"Editar token","id":"75ef2138-bb62-4a19-a12e-ad1c2fd27c30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/me/tokens/{{tokenId}}","urlObject":{"path":["api","v1","me","tokens","{{tokenId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"75ef2138-bb62-4a19-a12e-ad1c2fd27c30"},{"name":"Criar token","id":"4a51e37b-5cb6-4937-9605-1361725d4ede","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{name}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/me/tokens","urlObject":{"path":["api","v1","me","tokens"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a51e37b-5cb6-4937-9605-1361725d4ede"},{"name":"Excluir token","id":"d1acaeee-ef94-4621-8516-00815c2201e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/me/tokens/{{tokenId}}","urlObject":{"path":["api","v1","me","tokens","{{tokenId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1acaeee-ef94-4621-8516-00815c2201e0"}],"id":"4d2fc921-a2dc-49d3-b81c-1f61cea78080","description":"<p>Tokens de acesso pessoal.</p>\n","_postman_id":"4d2fc921-a2dc-49d3-b81c-1f61cea78080","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Usuários","item":[{"name":"Listar usuários","id":"6ccea22e-f391-4547-b926-e0ae383c5b4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/users?perPage=40","urlObject":{"path":["api","v1","users"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"6ccea22e-f391-4547-b926-e0ae383c5b4f"},{"name":"Listar usuários com seus departamentos","id":"bae681fa-62a7-4bff-b088-08e8bcba58bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/users?query={\"include\":[{\"model\":\"departments\",\"attributes\":[\"id\",\"name\"]}],\"page\":1,\"perPage\":15}","urlObject":{"path":["api","v1","users"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"include\":[{\"model\":\"departments\",\"attributes\":[\"id\",\"name\"]}],\"page\":1,\"perPage\":15}"}],"variable":[]}},"response":[],"_postman_id":"bae681fa-62a7-4bff-b088-08e8bcba58bf"},{"name":"Buscar usuário","id":"6dcb4fd7-9bc3-41f9-8644-654b3ba1fe87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/users/{{userId}}","urlObject":{"path":["api","v1","users","{{userId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6dcb4fd7-9bc3-41f9-8644-654b3ba1fe87"},{"name":"Editar usuário","id":"295c7a12-a635-47e2-94e4-d64e2a098e34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n\"accountId\": \"{{accountId}}\",\r\n\"email\": \"{{e-mail}}\",\r\n\"name\": \"{{name}}\",\r\n\"isAdmin\": true //true or false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/{{userId}}","urlObject":{"path":["api","v1","users","{{userId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"295c7a12-a635-47e2-94e4-d64e2a098e34"},{"name":"Criar usuário","id":"9c139c79-6ffc-40cb-a5c1-2aaa5c088e32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"accountId\": \"{{accountId}}\", //id conta\r\n\"email\": {{email}}, \r\n\"password\": \"{{password}}\", //senha\r\n\"name\": \"{{name}}\",\r\n\"rolesId\": \"{{roleId}}\", //id cargo\r\n\"organizationIds\":[],\r\n\"departmentsId\": \"{{departmentsId}}\" //id departamento\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users","urlObject":{"path":["api","v1","users"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c139c79-6ffc-40cb-a5c1-2aaa5c088e32"},{"name":"Arquiva usuário","id":"377154f0-3139-4881-bbeb-384c31156ceb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"archive\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/users/{{userId}}/archive","urlObject":{"path":["api","v1","users","{{userId}}","archive"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"377154f0-3139-4881-bbeb-384c31156ceb"}],"id":"d39b3f89-95ef-4ed2-bd9c-45bd64ebf174","description":"<p>Os usuários são os responsáveis por realizar o atendimento ao cliente. É necessário que cada um tenha o seu login e senha individual para que consigam acessar a Digisac, e a função de criar esses usuários é do administrador.</p>\n","_postman_id":"d39b3f89-95ef-4ed2-bd9c-45bd64ebf174","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Versões","item":[{"name":"Versão da plataforma","id":"e5385ff4-3616-4f34-acda-7633b08cfa41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/versions","urlObject":{"path":["api","v1","versions"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e5385ff4-3616-4f34-acda-7633b08cfa41"}],"id":"38b6ed3f-f84e-4d56-8862-72d6d10e947b","_postman_id":"38b6ed3f-f84e-4d56-8862-72d6d10e947b","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"Webhooks","item":[{"name":"Listar webhooks","id":"706e18ed-2bc3-4733-b3dc-bb5e44f02ba7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/me/webhooks?perPage=40","urlObject":{"path":["api","v1","me","webhooks"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"706e18ed-2bc3-4733-b3dc-bb5e44f02ba7"},{"name":"Buscar webhook","id":"63301ce1-7dfb-4d54-8321-3942e3ae602e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/me/webhooks/{{webhookId}}","urlObject":{"path":["api","v1","me","webhooks","{{webhookId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"63301ce1-7dfb-4d54-8321-3942e3ae602e"},{"name":"Editar webhook","id":"0866b003-7c9d-4dde-9745-25b80c97883a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"active\": {{true or false}},\r\n    \"name\": \"{{name}}}}\",\r\n    \"url\": \"{{url}}\",\r\n    \"events\": [\r\n        \"{{message.created}}\",\r\n        \"{{message.updated}}\"\r\n    ],\r\n    \"type\": \"{{general}}\", //tipo\r\n    \"userId\": \"{{userId}}\",\r\n    \"updatedAt\": \"{{date}}\",\r\n    \"createdAt\": \"{{date}}\",\r\n    \"deletedAt\": null\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/me/webhooks/{{webhookId}}","urlObject":{"path":["api","v1","me","webhooks","{{webhookId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0866b003-7c9d-4dde-9745-25b80c97883a"},{"name":"Criar webhook","id":"ee4733a3-fa5d-438e-9079-3dce49b2ee84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"active\": {{true or falsze}},\r\n    \"name\": \"{{name}}\",\r\n    \"url\": \"{{url}}\",\r\n    \"events\": [\r\n        \"{{message.created}}\",\r\n        \"{{message.updated}}\"\r\n    ],\r\n    \"type\": \"{{general}}\",\r\n    \"userId\": \"{{userId}}\",\r\n    \"accountId\": \"{{accountId}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/me/webhooks","urlObject":{"path":["api","v1","me","webhooks"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee4733a3-fa5d-438e-9079-3dce49b2ee84"},{"name":"Teste Webhook","id":"bf6ec354-bb70-4976-a614-e6ea00b4a509","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \r\n    \"teste\": \"teste\" \r\n}","options":{"raw":{"language":"json"}}},"url":"{{link_Completo_Webhook}}","urlObject":{"host":["{{link_Completo_Webhook}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf6ec354-bb70-4976-a614-e6ea00b4a509"}],"id":"77ed9e68-3e86-488c-adc5-7e114dd0d35f","_postman_id":"77ed9e68-3e86-488c-adc5-7e114dd0d35f","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}},{"name":"WhatsApp","item":[{"name":"Validação WhatsApp","id":"79ad91f4-ab9d-43b1-8250-c9c0382db4d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts/exists?numbers[]={{contactNumber}}&serviceId={{serviceId}}","urlObject":{"path":["api","v1","contacts","exists"],"host":["{{URL}}"],"query":[{"key":"numbers[]","value":"{{contactNumber}}"},{"key":"serviceId","value":"{{serviceId}}"}],"variable":[]}},"response":[],"_postman_id":"79ad91f4-ab9d-43b1-8250-c9c0382db4d7"}],"id":"d03e30d7-1fcf-4d46-9203-308d15662d57","_postman_id":"d03e30d7-1fcf-4d46-9203-308d15662d57","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","name":"⚙️ Gerais","type":"folder"}}}],"id":"00f2cf80-98df-49f8-91a1-bafef3617d3e","description":"<p>Nesta collection, você vai encontrar uma série de requisições de API para usar no seu ambiente Digisac. Explore à vontade! 😉</p>\n","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"79e17feb-effd-459e-83db-21f70b82ce33","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"8a888c76-c0db-4cfd-9fe6-fc396ac3ef1a","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"00f2cf80-98df-49f8-91a1-bafef3617d3e"},{"name":"🛠️ Populares","item":[{"name":"Agora","item":[{"name":"Buscar departamentos (Agora)","id":"fc833a29-cccb-494c-9266-3e91f0ce1fba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/now/departments-resume","urlObject":{"path":["api","v1","now","departments-resume"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fc833a29-cccb-494c-9266-3e91f0ce1fba"},{"name":"Buscar atendentes (Agora)","id":"def31b21-6d46-4059-bdb5-344ad86b43ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/now/attendance-resume","urlObject":{"path":["api","v1","now","attendance-resume"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"def31b21-6d46-4059-bdb5-344ad86b43ce"},{"name":"Buscar todos os dados (Agora)","id":"e5d37470-0d7a-45fb-9673-1d687e6f66d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/now/resume","urlObject":{"path":["api","v1","now","resume"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e5d37470-0d7a-45fb-9673-1d687e6f66d1"}],"id":"b671748e-eecb-4f4f-80e8-8e40c82dc575","description":"<p>Nesta função é possível visualizar em tempo real todos os atendimentos que estão acontecendo na plataforma por atendente e departamento.</p>\n","_postman_id":"b671748e-eecb-4f4f-80e8-8e40c82dc575","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","name":"🛠️ Populares","type":"folder"}}},{"name":"Autorização","item":[{"name":"Gerar Token de acesso","id":"5538c73c-a550-47d2-8d71-a707cbdcf609","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"grant_type\": \"password\",\r\n    \"client_id\": \"api\",\r\n    \"client_secret\": \"secret\",\r\n    \"username\": \"{{e-mail}}\", //e-mail de login do usuário\r\n    \"password\": \"{{password}}\" //senha de login do usuário\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/oauth/token","urlObject":{"path":["api","v1","oauth","token"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5538c73c-a550-47d2-8d71-a707cbdcf609"}],"id":"68233432-08c0-4ce8-bc24-21bccdbf265a","description":"<p>Gerar o Token de acesso em sua plataforma.</p>\n","_postman_id":"68233432-08c0-4ce8-bc24-21bccdbf265a","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","name":"🛠️ Populares","type":"folder"}}},{"name":"Chamados","item":[{"name":"Buscar chamados do contato","id":"2adfb727-de93-4e0f-b268-43dabcf7efb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/tickets?where[contactId]={{contactId}}","urlObject":{"path":["tickets"],"host":["{{URL}}"],"query":[{"key":"where[contactId]","value":"{{contactId}}"}],"variable":[]}},"response":[],"_postman_id":"2adfb727-de93-4e0f-b268-43dabcf7efb9"},{"name":"Buscar pelo contactid todos os chamados do cliente trazendo quem encerrou/transferiu","id":"9d827ce6-8149-4d5b-a433-34e3088548bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"where\":{\"contactId\":\"{{contactId}}\"},\"attributes\":[\"id\",\"isOpen\",\"protocol\",\"origin\",\"startedAt\",\"endedAt\"],\"include\":[{\"model\":\"ticketTransfers\",\"attributes\":[\"action\",\"fromDistribution\"],\"include\":[{\"model\":\"byUser\",\"attributes\":[\"id\",\"name\",\"email\",\"status\"]}]}],\"perPage\":50}\n","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"where\":{\"contactId\":\"{{contactId}}\"},\"attributes\":[\"id\",\"isOpen\",\"protocol\",\"origin\",\"startedAt\",\"endedAt\"],\"include\":[{\"model\":\"ticketTransfers\",\"attributes\":[\"action\",\"fromDistribution\"],\"include\":[{\"model\":\"byUser\",\"attributes\":[\"id\",\"name\",\"email\",\"status\"]}]}],\"perPage\":50}\n"}],"variable":[]}},"response":[],"_postman_id":"9d827ce6-8149-4d5b-a433-34e3088548bd"},{"name":"Transferência de chamado","id":"32310c75-6bfb-41ad-be92-11297a7ecc54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"departmentId\": \"{{departmentId}}\", //id departamento\r\n    \"userId\": \"{{userId}}\", //id do usuário SE for abrir direto para ele\r\n    \"comments\": \"{{comments}}\" //comentario interno\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1//contacts/{{contactId}}/ticket/transfer","urlObject":{"path":["api","v1","","contacts","{{contactId}}","ticket","transfer"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"32310c75-6bfb-41ad-be92-11297a7ecc54"},{"name":"Abertura de chamado","id":"74971c07-ded3-4918-be43-157fcf2ba8ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"departmentId\": \"{{departmentId}}\", //id departamento\r\n    \"userId\": \"{{userId}}\", //id do usuário SE for abrir direto para ele\r\n    \"comments\": \"{{comments}}\" //comentario interno\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/contacts/{{contactId}}/ticket/transfer","urlObject":{"path":["contacts","{{contactId}}","ticket","transfer"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"74971c07-ded3-4918-be43-157fcf2ba8ba"},{"name":"Fechar chamado","id":"5d7a8936-67d1-4f9a-81e5-2d0b93fff368","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/ticket/close","urlObject":{"path":["api","v1","contacts","{{contactId}}","ticket","close"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5d7a8936-67d1-4f9a-81e5-2d0b93fff368"},{"name":"Fechar um chamado com assunto","id":"a97895b5-9e67-47ca-a7d9-a2d6c0585e54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"ticketTopicIds\": \"{{ticketTopicIds}}\" //ID do chamado\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/ticket/close","urlObject":{"path":["api","v1","contacts","{{contactId}}","ticket","close"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a97895b5-9e67-47ca-a7d9-a2d6c0585e54"}],"id":"e981f65c-801b-46bb-904c-e38d4f004594","description":"<p>Acontecerá todo o atendimento entre atendente e contato. Abaixo estão as imagens da estrutura do bate papo e todas as ferramentas disponíveis:</p>\n<img src=\"https://content.pstmn.io/02abd137-00c0-4f7f-9a5d-0aa5585a1cf7/aW1hZ2UucG5n\" width=\"505\" height=\"497\" />","_postman_id":"e981f65c-801b-46bb-904c-e38d4f004594","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","name":"🛠️ Populares","type":"folder"}}},{"name":"Contatos","item":[{"name":"Listar todos os contatos","id":"16f82ce9-2aeb-4589-bf50-4e4d578177d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts?perPage=40","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[{"key":"perPage","value":"40"}],"variable":[]}},"response":[],"_postman_id":"16f82ce9-2aeb-4589-bf50-4e4d578177d6"},{"name":"Listar contatos da conexão","id":"f8e8c7bb-f51b-419f-9b13-183884521efe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts?where[serviceId]={{serviceId}}?perPage=40","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[{"key":"where[serviceId]","value":"{{serviceId}}?perPage=40"}],"variable":[]}},"response":[],"_postman_id":"f8e8c7bb-f51b-419f-9b13-183884521efe"},{"name":"Buscar contato","id":"9bed67c6-72c4-4751-b926-7ea37276c142","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9bed67c6-72c4-4751-b926-7ea37276c142"},{"name":"Buscar contato por número de uma conexão específica","id":"107728ac-36f7-47ab-a56e-c53b0ee3fbcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/api/v1/contacts?where[data.number][$iLike]=%{{number}}%&where[serviceId]={{serviceId}}","urlObject":{"path":["api","v1","contacts"],"host":["{{url}}"],"query":[{"key":"where[data.number][$iLike]","value":"%{{number}}%"},{"key":"where[serviceId]","value":"{{serviceId}}"}],"variable":[]}},"response":[],"_postman_id":"107728ac-36f7-47ab-a56e-c53b0ee3fbcd"},{"name":"Buscar tags vinculadas a um contato","id":"d3931cc7-da31-4f94-b544-c8305eef262a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts/{{contactId}}?include[0]=tags&include[1]","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[{"key":"include[0]","value":"tags"},{"key":"include[1]","value":null}],"variable":[]}},"response":[],"_postman_id":"d3931cc7-da31-4f94-b544-c8305eef262a"},{"name":"Buscar contatos que possuem campo personalizado específico","id":"5ebf7747-3b41-4347-ae45-160cf873cbdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts?query={\"include\":[{\"model\":\"customFieldValues\",\"include\":[{\"model\":\"customField\",\"where\":{\"name\":\"{{customFieldName}}\"}}]}]}","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"include\":[{\"model\":\"customFieldValues\",\"include\":[{\"model\":\"customField\",\"where\":{\"name\":\"{{customFieldName}}\"}}]}]}"}],"variable":[]}},"response":[],"_postman_id":"5ebf7747-3b41-4347-ae45-160cf873cbdc"},{"name":"Buscar campos personalizados de um contato específico","id":"f869f0a8-cc83-461d-af06-0f19ba7f98de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts/{{contactId}}?query={\"include\":[{\"model\":\"customFieldValues\",\"include\":[{\"model\":\"customField\",\"where\":{\"name\":\"{{customFieldName}}\"}}]}]}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"include\":[{\"model\":\"customFieldValues\",\"include\":[{\"model\":\"customField\",\"where\":{\"name\":\"{{customFieldName}}\"}}]}]}"}],"variable":[]}},"response":[],"_postman_id":"f869f0a8-cc83-461d-af06-0f19ba7f98de"},{"name":"Busca de contatos que possuem X campos personalizados preenchidos","id":"224cb25f-8b64-4e5a-9880-c77baf0640a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts?query={\"include\":[{\"model\":\"customFieldValues\",\"include\":[{\"model\":\"customField\",\"where\":{\"$or\":[{\"name\":\"{{customFieldName1}}\"},{\"name\":\"{{customFieldName2}}\"},{\"name\":\"{{customFieldName3}}\"},{\"name\":\"{{customFieldName4}}\"}]}}]}]}","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"include\":[{\"model\":\"customFieldValues\",\"include\":[{\"model\":\"customField\",\"where\":{\"$or\":[{\"name\":\"{{customFieldName1}}\"},{\"name\":\"{{customFieldName2}}\"},{\"name\":\"{{customFieldName3}}\"},{\"name\":\"{{customFieldName4}}\"}]}}]}]}"}],"variable":[]}},"response":[],"_postman_id":"224cb25f-8b64-4e5a-9880-c77baf0640a5"},{"name":"Verifica a existência de um contato","id":"e07933ab-0356-4dc3-9083-2049f75af6e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/contacts/exists?numbers[]={{phoneNumber}}&serviceId={{serviceId}}","urlObject":{"path":["api","v1","contacts","exists"],"host":["{{URL}}"],"query":[{"key":"numbers[]","value":"{{phoneNumber}}"},{"key":"serviceId","value":"{{serviceId}}"}],"variable":[]}},"response":[],"_postman_id":"e07933ab-0356-4dc3-9083-2049f75af6e2"},{"name":"Editar contato","id":"ac2eb751-3cec-437a-a0e3-74077a10d4c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n\"internalName\": \"{{name}}\",\r\n\"number\": \"{{number}}\",\r\n\"serviceId\": \"{{serviceid}}\", //id conexão\r\n\"defaultDepartmentId\": null,\r\n\"tagIds\": [\"{{tagIds}}\", \"{{tagIds}}\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac2eb751-3cec-437a-a0e3-74077a10d4c4"},{"name":"Editar tag do contato","id":"c3ca67c2-5c7d-4304-b79b-c11176dd8f15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n\"tagIds\": [\"{{tagIds}}\", \"{{tagIds}}\"] //id tag\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3ca67c2-5c7d-4304-b79b-c11176dd8f15"},{"name":"Editar campo personalizado de um contato","id":"5146415d-d5ff-4901-a6ae-955d836da172","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"customFields\": [\r\n        {\r\n            \"id\": \"{{customFieldsId}}\",\r\n            \"value\": \"{{texto}}\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5146415d-d5ff-4901-a6ae-955d836da172"},{"name":"Incluir tags em um contato existente Copy","id":"da07c3bc-84d2-44e8-8317-e386beabf7db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\"tagIds\": [\"{{tagIds}}\", \"{{tagIds}}\"] //id tag\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"da07c3bc-84d2-44e8-8317-e386beabf7db"},{"name":"Cadastrar contato","id":"bd013997-dd23-4c3d-b4a9-3c78376757f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"internalName\": \"{{name}}\",\r\n\"number\": \"{{number}}\", //número contato\r\n\"serviceId\": \"{{serviceid}}\", //id conexão\r\n\"defaultDepartmentId\": null,\r\n\"tagIds\": [\"{{tagIds}}\"], //id tag\r\n\"customFields\": [ //campos personalizados\r\n        {\r\n            \"customFieldId\": \"{{customFieldId}}\", //id campo personalizado\r\n            \"value\": \"{{value}}\" //texto\r\n        }\r\n]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts","urlObject":{"path":["api","v1","contacts"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd013997-dd23-4c3d-b4a9-3c78376757f5"},{"name":"Cadastrar múltiplos contatos","id":"a668cdb9-bf1f-4819-a24f-52ddb4eb1a31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"internalName\": \"{{name}}\", //Nome do contato\r\n        \"number\": \"{{number}}\", //Número do contato\r\n        \"serviceId\": \"{{serviceid}}\", //ID da conexão\r\n        \"defaultDepartmentId\": null,\r\n        \"tagIds\": [\r\n            \"{{tagIds}}\" //ID da TAG\r\n        ]\r\n    },\r\n    {\r\n        \"internalName\": \"{{name}}\",\r\n        \"number\": \"{{number}}\",\r\n        \"serviceId\": \"{{serviceid}}\",\r\n        \"defaultDepartmentId\": null,\r\n        \"tagIds\": [\r\n            \"{{tagIds}}\"\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/many","urlObject":{"path":["api","v1","contacts","many"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a668cdb9-bf1f-4819-a24f-52ddb4eb1a31"},{"name":"Exportar contatos","id":"7f735a67-fa15-4bf9-930a-317164209058","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"where\": {\r\n    \"visible\": true,\r\n    \"isGroup\": {\r\n      \"$eq\": false\r\n    },\r\n    \"isBroadcast\": {\r\n      \"$eq\": false\r\n    },\r\n    \"serviceId\": \"{{serviceId}}\" //id conexão\r\n  },\r\n  \"include\": [\r\n    \"avatar\",\r\n    \"tags\",\r\n    {\r\n      \"model\": \"service\",\r\n      \"required\": true\r\n    },\r\n    \"person\"\r\n  ],\r\n  \"order\": [\r\n    [\r\n      \"name\",\r\n      \"ASC\"\r\n    ]\r\n  ],\r\n  \"page\": 1,\r\n  \"perPage\": 15,\r\n  \"type\": \"comma\",\r\n  \"serviceType\": \"whatsapp\" //tipo de conexão (e-mail, telegram, etc)\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/export/csv","urlObject":{"path":["api","v1","contacts","export","csv"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7f735a67-fa15-4bf9-930a-317164209058"},{"name":"Total de contatos com filtros","id":"41722619-e863-4c3e-8606-584e88818dda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"query\": {\r\n    \"isFiltered\": false,\r\n    \"departmentIds\": [ \r\n      {{departmentIds}} //id departamento - Opcional\r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/count","description":"<p>Realizar uma requisição nessa rota retornará a quantidade de<br />chamados do usuário em aberto e a quantidade de chamados na fila dos<br />departamentos em que estiver vinculado.</p>\n","urlObject":{"path":["api","v1","contacts","count"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"41722619-e863-4c3e-8606-584e88818dda"},{"name":"Sincroniza contato","id":"44da5fbf-56dd-4b64-8bca-6e3ecc1a8342","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/sync","description":"<p>Inicia a sincronização do contato e busca novas mensagens.</p>\n","urlObject":{"path":["api","v1","contacts","{{contactId}}","sync"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"44da5fbf-56dd-4b64-8bca-6e3ecc1a8342"},{"name":"Bloquear contato","id":"d4845467-7ebe-4760-b738-249a87109e35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/api/v1/contacts/{{contactId}}/block","urlObject":{"path":["api","v1","contacts","{{contactId}}","block"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4845467-7ebe-4760-b738-249a87109e35"},{"name":"Desbloquear contato","id":"4ec5c1f0-264a-4ebb-924f-caf98a2cd740","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"block\": false,\r\n    \"description\": \"{{description}}\" //descrição (texto explicando o motivo)\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/{{contactId}}/block","urlObject":{"path":["api","v1","contacts","{{contactId}}","block"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ec5c1f0-264a-4ebb-924f-caf98a2cd740"},{"name":"Excluir contato","id":"362dc839-fab6-41e0-b065-32ee9f104880","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/contacts/{{contactId}}","urlObject":{"path":["api","v1","contacts","{{contactId}}"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"362dc839-fab6-41e0-b065-32ee9f104880"},{"name":"Exclui multiplos contatos","id":"fed39ffc-1d2b-4bc0-8fee-b39886aac790","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n  \"where\": {\r\n    \"id\": [\r\n      \"{{contactId}}\", //ID dos contatos que deseja excluir\r\n      \"{{contactId}}\"\r\n    ]\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/contacts/many","urlObject":{"path":["api","v1","contacts","many"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fed39ffc-1d2b-4bc0-8fee-b39886aac790"}],"id":"a95dc7f0-b1ae-487a-8dd1-6e2b546fd7cb","description":"<p>Contatos são os números dos seus clientes que serão salvos dentro da Digisac.</p>\n","_postman_id":"a95dc7f0-b1ae-487a-8dd1-6e2b546fd7cb","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","name":"🛠️ Populares","type":"folder"}}},{"name":"Estatísticas de atendimento","item":[{"name":"Buscar estatísticas por período","id":"555441ba-b7b6-40bc-8497-c18b5aec872e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-01-01T23:59:59.999Z}}&endPeriod={{2023-01-02T23:59:59.999Z}}","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-01-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2023-01-02T23:59:59.999Z}}"}],"variable":[]}},"response":[],"_postman_id":"555441ba-b7b6-40bc-8497-c18b5aec872e"},{"name":"Buscar estatísticas pela conexão","id":"1c5a3f9c-aba6-43ad-9e07-c2d334b190bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&serviceId={{serviceId}}","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"serviceId","value":"{{serviceId}}"}],"variable":[]}},"response":[],"_postman_id":"1c5a3f9c-aba6-43ad-9e07-c2d334b190bc"},{"name":"Buscar estatísticas por departamento","id":"8ff7a884-97fa-4c7f-874a-2da4aab55d71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&grouping=&departmentId={{departmentId}}","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"grouping","value":""},{"key":"departmentId","value":"{{departmentId}}"}],"variable":[]}},"response":[],"_postman_id":"8ff7a884-97fa-4c7f-874a-2da4aab55d71"},{"name":"Buscar estatísticas por usuário","id":"0b0c1a57-fe5f-4da8-a2df-1e36a25af9e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&userId={{userId}}","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","name":"🛠️ Populares","type":"folder"}},"urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"userId","value":"{{userId}}"}],"variable":[]}},"response":[],"_postman_id":"0b0c1a57-fe5f-4da8-a2df-1e36a25af9e8"},{"name":"Buscar estatísticas por departamento + usuário","id":"81c66f30-d645-4b5c-a545-6013dc6552c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&grouping=&departmentId={{departmentId}}&userId={{userId}}","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"grouping","value":""},{"key":"departmentId","value":"{{departmentId}}"},{"key":"userId","value":"{{userId}}"}],"variable":[]}},"response":[],"_postman_id":"81c66f30-d645-4b5c-a545-6013dc6552c6"},{"name":"Buscar estatísticas pelo status dos chamados","id":"4ec44c2e-e4dc-4cfb-ba8d-fcb7f80e19ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&status={{all/open/close}}","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"status","value":"{{all/open/close}}"}],"variable":[]}},"response":[],"_postman_id":"4ec44c2e-e4dc-4cfb-ba8d-fcb7f80e19ca"},{"name":"Buscar estatísticas com todos os filtros ativos","id":"db9746cb-f44d-4c05-a6c2-61c9459bdb4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/dashboard/general?startPeriod={{2024-07-01T23:59:59.999Z}}&endPeriod={{2024-07-30T23:59:59.999Z}}&grouping=&departmentId={{departmentId}}&userId={{userId}}&periodType={{open/close}}Date&departmentParticipation={{last/middle}}&userParticipation={{last/middle}}&status={{all/open/close}}&serviceId={{serviceId}}","urlObject":{"path":["api","v1","dashboard","general"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-07-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2024-07-30T23:59:59.999Z}}"},{"key":"grouping","value":""},{"key":"departmentId","value":"{{departmentId}}"},{"key":"userId","value":"{{userId}}"},{"key":"periodType","value":"{{open/close}}Date"},{"key":"departmentParticipation","value":"{{last/middle}}"},{"key":"userParticipation","value":"{{last/middle}}"},{"key":"status","value":"{{all/open/close}}"},{"key":"serviceId","value":"{{serviceId}}"}],"variable":[]}},"response":[],"_postman_id":"db9746cb-f44d-4c05-a6c2-61c9459bdb4b"}],"id":"73cf61d7-12fa-4ae4-a228-346ef84a5012","description":"<p>Essa ferramenta permite que seja visualizado uma média de como estão os atendimentos com os clientes de uma maneira geral ou individualizada de acordo com os filtros gerados.</p>\n","_postman_id":"73cf61d7-12fa-4ae4-a228-346ef84a5012","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","name":"🛠️ Populares","type":"folder"}}},{"name":"Histórico de chamados","item":[{"name":"Buscar por um chamado específico","id":"92d1615e-3c95-48a9-a5a0-39500755114c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets/{{ticketId}}?include[0][model]=contact&include[0][include][0]=avatar&include[0][include][1]=thumbAvatar&include[1]=department&include[2]=user&include[3]=ticketTopics","urlObject":{"path":["api","v1","tickets","{{ticketId}}"],"host":["{{URL}}"],"query":[{"key":"include[0][model]","value":"contact"},{"key":"include[0][include][0]","value":"avatar"},{"key":"include[0][include][1]","value":"thumbAvatar"},{"key":"include[1]","value":"department"},{"key":"include[2]","value":"user"},{"key":"include[3]","value":"ticketTopics"}],"variable":[]}},"response":[],"_postman_id":"92d1615e-3c95-48a9-a5a0-39500755114c"},{"name":"Buscar chamados por período","id":"19d23c76-ebdc-4fc6-a59d-65789665a977","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?startPeriod={{2024-01-01T23:59:59.999Z}}&endPeriod={{2023-01-02T23:59:59.999Z}}","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"startPeriod","value":"{{2024-01-01T23:59:59.999Z}}"},{"key":"endPeriod","value":"{{2023-01-02T23:59:59.999Z}}"}],"variable":[]}},"response":[],"_postman_id":"19d23c76-ebdc-4fc6-a59d-65789665a977"},{"name":"Buscar chamados abertos por conexão","id":"f312b1c4-b2bd-4ad7-a8c6-5e04aac298a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":true},\"include\":[{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":true},\"include\":[{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}"}],"variable":[]}},"response":[],"_postman_id":"f312b1c4-b2bd-4ad7-a8c6-5e04aac298a0"},{"name":"Buscar chamados fechados por conexão","id":"09e51e88-81d7-4a43-ba7d-14ce0c77bf5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":false},\"include\":[{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":false},\"include\":[{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}"}],"variable":[]}},"response":[],"_postman_id":"09e51e88-81d7-4a43-ba7d-14ce0c77bf5a"},{"name":"Buscar chamados abertos + fechados por conexão","id":"4b2f83c9-ea20-412d-b16f-51536dee03c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":{\"$in\":[true,false]}},\"include\":[{\"model\":\"contact\",\"attributes\":[\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{\"isOpen\":{\"$in\":[true,false]}},\"include\":[{\"model\":\"contact\",\"attributes\":[\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true,\"serviceId\":\"{{serviceId}}\"},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true}]}],\"page\":1,\"perPage\":20}"}],"variable":[]}},"response":[],"_postman_id":"4b2f83c9-ea20-412d-b16f-51536dee03c6"},{"name":"Buscar todos os chamados da plataforma","id":"0f1c0916-1a7d-4cad-8628-1a56e80c6b82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/tickets?query={\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{},\"include\":[{\"model\":\"account\"},{\"model\":\"firstMessage\",\"attributes\":[\"id\",\"type\",\"text\",\"timestamp\",\"isFromMe\",\"sent\",\"data\",\"accountId\",\"serviceId\",\"contactId\",\"fromId\",\"toId\",\"userId\",\"ticketId\",\"isFromBot\",\"isFromSync\",\"visible\",\"ticketUserId\",\"ticketDepartmentId\",\"origin\",\"botId\",\"campaignId\"]},{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true},{\"model\":\"tags\",\"attributes\":[\"id\",\"label\",\"accountId\"]},{\"model\":\"person\",\"attributes\":[\"id\",\"name\",\"document\",\"accountId\"]},{\"model\":\"thumbAvatar\"}]},{\"model\":\"user\",\"attributes\":[\"id\",\"name\",\"email\",\"isSuperAdmin\",\"active\",\"accountId\",\"isFirstLogin\",\"status\",\"timetableId\",\"archivedAt\",\"phoneNumber\",\"data\",\"language\",\"isActiveInternalChat\"]},{\"model\":\"department\",\"attributes\":[\"id\",\"name\",\"accountId\",\"archivedAt\",\"distributionId\"]},{\"model\":\"ticketTopics\",\"attributes\":[\"id\",\"name\",\"archivedAt\"]}]}&perPage=30","urlObject":{"path":["api","v1","tickets"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{},\"include\":[{\"model\":\"account\"},{\"model\":\"firstMessage\",\"attributes\":[\"id\",\"type\",\"text\",\"timestamp\",\"isFromMe\",\"sent\",\"data\",\"accountId\",\"serviceId\",\"contactId\",\"fromId\",\"toId\",\"userId\",\"ticketId\",\"isFromBot\",\"isFromSync\",\"visible\",\"ticketUserId\",\"ticketDepartmentId\",\"origin\",\"botId\",\"campaignId\"]},{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true},{\"model\":\"tags\",\"attributes\":[\"id\",\"label\",\"accountId\"]},{\"model\":\"person\",\"attributes\":[\"id\",\"name\",\"document\",\"accountId\"]},{\"model\":\"thumbAvatar\"}]},{\"model\":\"user\",\"attributes\":[\"id\",\"name\",\"email\",\"isSuperAdmin\",\"active\",\"accountId\",\"isFirstLogin\",\"status\",\"timetableId\",\"archivedAt\",\"phoneNumber\",\"data\",\"language\",\"isActiveInternalChat\"]},{\"model\":\"department\",\"attributes\":[\"id\",\"name\",\"accountId\",\"archivedAt\",\"distributionId\"]},{\"model\":\"ticketTopics\",\"attributes\":[\"id\",\"name\",\"archivedAt\"]}]}"},{"key":"perPage","value":"30"}],"variable":[]}},"response":[],"_postman_id":"0f1c0916-1a7d-4cad-8628-1a56e80c6b82"},{"name":"Exportar histórico de chamados em PDF","id":"569a2d17-d3a9-474f-ba0d-e9bd556006f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URLbase}}/pdf/tickets/{{ticketId}}/pt-BR?pdf=1&lng=pt-BR","urlObject":{"path":["pdf","tickets","{{ticketId}}","pt-BR"],"host":["{{URLbase}}"],"query":[{"key":"pdf","value":"1"},{"key":"lng","value":"pt-BR"}],"variable":[]}},"response":[],"_postman_id":"569a2d17-d3a9-474f-ba0d-e9bd556006f3"},{"name":"Exportar histórico de chamados em TXT","id":"fa8cd5da-2e5b-4946-a5ac-70bacfd8a7b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer 8b7ec4c2a6e306b65ac8a6c676ce3d34d8d4094f"}],"body":{"mode":"raw","raw":"{\n    \"protocol\": \"{{protocolNumber}}\" //Número do protocolo\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/tickets/export","urlObject":{"path":["api","v1","tickets","export"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa8cd5da-2e5b-4946-a5ac-70bacfd8a7b7"},{"name":"Exportar histórico de chamados em CSV","id":"a345afef-a8d1-49d5-be3f-4ca9a751f157","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/api/v1/tickets/export-history?query={\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{},\"include\":[{\"model\":\"firstMessage\",\"attributes\":[\"id\",\"type\",\"text\",\"timestamp\",\"isFromMe\",\"sent\",\"data\",\"accountId\",\"serviceId\",\"contactId\",\"fromId\",\"toId\",\"userId\",\"ticketId\",\"isFromBot\",\"isFromSync\",\"visible\",\"ticketUserId\",\"ticketDepartmentId\",\"origin\",\"botId\",\"campaignId\"]},{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true},{\"model\":\"tags\",\"attributes\":[\"id\",\"label\",\"accountId\"]},{\"model\":\"person\",\"attributes\":[\"id\",\"name\",\"document\",\"accountId\"]}]},{\"model\":\"user\",\"attributes\":[\"id\",\"name\",\"email\",\"isSuperAdmin\",\"active\",\"accountId\",\"isFirstLogin\",\"status\",\"timetableId\",\"archivedAt\",\"phoneNumber\",\"data\",\"language\",\"isActiveInternalChat\"]},{\"model\":\"department\",\"attributes\":[\"id\",\"name\",\"accountId\",\"archivedAt\",\"distributionId\"]},{\"model\":\"ticketTopics\",\"attributes\":[\"id\",\"name\",\"archivedAt\"]}]}","urlObject":{"path":["api","v1","tickets","export-history"],"host":["{{URL}}"],"query":[{"key":"query","value":"{\"distinct\":true,\"order\":[[\"updatedAt\",\"DESC\"]],\"where\":{},\"include\":[{\"model\":\"firstMessage\",\"attributes\":[\"id\",\"type\",\"text\",\"timestamp\",\"isFromMe\",\"sent\",\"data\",\"accountId\",\"serviceId\",\"contactId\",\"fromId\",\"toId\",\"userId\",\"ticketId\",\"isFromBot\",\"isFromSync\",\"visible\",\"ticketUserId\",\"ticketDepartmentId\",\"origin\",\"botId\",\"campaignId\"]},{\"model\":\"contact\",\"attributes\":[\"id\",\"accountId\",\"name\",\"alternativeName\",\"internalName\",\"serviceId\",\"data\",\"note\",\"personId\",\"status\"],\"required\":true,\"where\":{\"visible\":true},\"include\":[{\"model\":\"service\",\"attributes\":[\"id\",\"name\",\"type\",\"accountId\",\"botId\",\"archivedAt\"],\"required\":true},{\"model\":\"tags\",\"attributes\":[\"id\",\"label\",\"accountId\"]},{\"model\":\"person\",\"attributes\":[\"id\",\"name\",\"document\",\"accountId\"]}]},{\"model\":\"user\",\"attributes\":[\"id\",\"name\",\"email\",\"isSuperAdmin\",\"active\",\"accountId\",\"isFirstLogin\",\"status\",\"timetableId\",\"archivedAt\",\"phoneNumber\",\"data\",\"language\",\"isActiveInternalChat\"]},{\"model\":\"department\",\"attributes\":[\"id\",\"name\",\"accountId\",\"archivedAt\",\"distributionId\"]},{\"model\":\"ticketTopics\",\"attributes\":[\"id\",\"name\",\"archivedAt\"]}]}"}],"variable":[]}},"response":[],"_postman_id":"a345afef-a8d1-49d5-be3f-4ca9a751f157"}],"id":"1c51a632-60d7-4e6b-971e-95131d6e1d9a","description":"<p>O Histórico de Chamados é um dos relatórios de análise de atendimentos mais completos da plataforma, principalmente pelos seus filtros.</p>\n","_postman_id":"1c51a632-60d7-4e6b-971e-95131d6e1d9a","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","name":"🛠️ Populares","type":"folder"}}},{"name":"Mensagens","item":[{"name":"Enviar mensagem","id":"f3785172-d86f-4a97-a8d8-bd11403e07a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\", //Texto\r\n    \"type\": \"chat\",\r\n    \"contactId\": \"{{contactId}}\", //ID contato\r\n    \"userId\": \"{{userId}}\", //ID usuário\r\n    \"origin\": \"bot\" // bot or user\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3785172-d86f-4a97-a8d8-bd11403e07a4"},{"name":"Enviar mensagem SEM abrir o chamado","id":"ee220fe2-53af-4ebf-8f57-ad2978a77a73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\",\r\n    \"type\": \"chat\",\r\n    \"contactId\": \"{{contactId}}\",\r\n    \"userId\": \"{{userId}}\",\r\n    \"dontOpenTicket\": \"true\", //este parametro faz com que o chamado não seja aberto no momento do envio da mensagem\r\n    \"origin\": \"bot\" // bot or user\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee220fe2-53af-4ebf-8f57-ad2978a77a73"},{"name":"Enviar comentário","id":"532a1823-f74a-419e-8f7c-50bb20f6f6ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\", //texto\r\n    \"type\": \"comment\", // chat or comment\r\n    \"contactId\": \"{{contactId}}\", //id contato\r\n    \"userId\": \"{{userId}}\", //id usuário\r\n    \"origin\": \"bot\" // bot or user\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"532a1823-f74a-419e-8f7c-50bb20f6f6ac"},{"name":"Enviar de mensagem usando bot e sem abrir chamado","id":"e2b1b3de-3a53-4656-8d6f-e1ce5f98164a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"text\": \"{{text}}\",\r\n\"number\": \"{{number}}\",\r\n\"serviceId\": \"{{serviceid}}\",\r\n\"origin\": \"bot\",\r\n\"dontOpenticket\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2b1b3de-3a53-4656-8d6f-e1ce5f98164a"},{"name":"Enviar imagem","id":"8df81596-b919-4560-a122-35452cee659e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\", //Texto\r\n    \"number\": \"{{number}}\", //Número do contato\r\n    \"serviceId\": \"{{serviceId}}\", //ID conexão\r\n    \"file\": {\r\n        \"base64\": \"{{base64}}\", //Converter a imagem em base64\r\n        \"mimetype\": \"image/jpeg\",\r\n        \"name\": \"{{name}}\" //Nome imagem\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8df81596-b919-4560-a122-35452cee659e"},{"name":"Enviar PDF","id":"11346076-6b1c-4aaa-adc6-8a6984f0e275","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"{{text}}\", //Texto\r\n    \"number\": \"{{number}}\", //Número do contato\r\n    \"serviceId\": \"{{serviceId}}\", //ID conexão\r\n    \"file\": {\r\n        \"base64\": \"{{base64}}\", //Converter o PDF em base64\r\n        \"mimetype\": \"application/pdf\",\r\n        \"name\": \"{{name}}\" //Nome arquivo PDF\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","name":"🛠️ Populares","type":"folder"}},"urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"11346076-6b1c-4aaa-adc6-8a6984f0e275"},{"name":"Enviar comentário","id":"126aa2a7-6158-49fa-adac-1724dd35cdf3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"text\": \"Olá\",\r\n    \"type\": \"comment\", // chat or comment\r\n    \"contactId\": \"{{contactId}}\", //id contato\r\n    \"userId\": \"{{userId}}\", //id usuário\r\n    \"origin\": \"bot\" // bot or user\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"126aa2a7-6158-49fa-adac-1724dd35cdf3"},{"name":"Enviar áudio","id":"5334f020-619d-477f-b23c-9bfb3c5e6d11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"number\": \"{{número}}\", //Número do contato\n    \"serviceId\": \"{{serviceid}}\", //ID conexão\n    \"file\": {\n        \"base64\": \"{{base64}}\", //Converter o áudio em base64\n        \"mimetype\": \"audio/mpeg\" \n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5334f020-619d-477f-b23c-9bfb3c5e6d11"}],"id":"567a8ccc-f124-4525-b7af-cefd84730598","_postman_id":"567a8ccc-f124-4525-b7af-cefd84730598","description":"","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":true,"source":{"_postman_id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","name":"🛠️ Populares","type":"folder"}}}],"id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee","description":"<p>Nesta collection, você encontrará as requisições de API mais populares e amplamente utilizadas no ambiente Digisac. Elas são as mais pedidas pelos nossos usuários e podem facilitar muito o seu trabalho! 🎯</p>\n","auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"b699e49d-7f7b-4f95-b597-6bf2fc662ff8","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"a075dbe5-5fbb-48b1-8f79-d09c64aa1ae2","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"4eaee871-5ca3-406b-93d9-c70bed7b6fee"}]}