{"info":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","description":"<html><head></head><body><p>Esta API permite criar aplicações parceiras ao ecossistema Poli.</p>\n<p>Nesta documentação, há exemplos de respostas e eventos da API.</p>\n<p>Toda request que retorna um objeto ou uma collection, por padrão, retorna exclusivamente os dados mais básicos, caso seja necessário, a request pode solicitar demais atributos passando como parâmetro ?include=</p>\n<p>Por exemplo: /users?include=attributes,status_of_service</p>\n<h2 id=\"host\">Host</h2>\n<p>O nosso domínio base é <code>https://foundation-api.poli.digital/v3</code></p>\n<h2 id=\"autenticação\">Autenticação</h2>\n<p>Para ter acesso, é preciso criar um aplicativo dentro da nossa plataforma e gerar um token.</p>\n<p>Existe duas formas de criar um aplicativo: público ou privado.</p>\n<ul>\n<li><p>Um aplicativo privado é de acesso restrito a empresa que a criou</p>\n</li>\n<li><p>Um aplicativo público pode entrar em nosso marketplace de integrações, podendo assim qualquer empresa interessada ter acesso. Neste caso o aplicativo poderá excutar o webhook de todas as empresas e precisará fazer a gestão \"multi-tenancy\"</p>\n</li>\n</ul>\n<p>O token precisa ser passado no Header como Authentication do tipo Bearer</p>\n<ul>\n<li>Após cadastrar um aplicativo, é preciso cadastrar um token. Caso necessário, também é possível cadastrar um webhook, informando quais eventos deseja receber.</li>\n</ul>\n<h2 id=\"filtro-pesquisa-ordenação-e-paginação\">Filtro, pesquisa, ordenação e paginação</h2>\n<p>Algumas coleções permitem pesquisar, filtrar, paginar e ordenar os itens. Para tal, use na URL as palávras mágicas:</p>\n<ul>\n<li><p>search</p>\n<ul>\n<li><p>Busca textual ampla em cima dos itens pesquisáveis. Útil para buscar nomes, emails, telefones e afins.</p>\n</li>\n<li><p>/accounts/{{account_uuid}}/users?include=attributes&amp;search=joão</p>\n</li>\n</ul>\n</li>\n<li><p>order</p>\n<ul>\n<li><p>Dado algum atributo, utilize a ordenação para filtrar de forma ascendente ou descendente (acrescentando o símbolo de negativo na frente)</p>\n</li>\n<li><p>/accounts/{{account_uuid}}/users?include=attributes&amp;order=created_at</p>\n</li>\n<li><p>/accounts/{{account_uuid}}/users?include=attributes&amp;order=-created_at</p>\n</li>\n</ul>\n</li>\n<li><p>page</p>\n<ul>\n<li><p>Para coleções com diversas páginas, utilize ?page= para escolher a página desejada. Por padrão, começamos na primeira página e podemos avançar até a última</p>\n</li>\n<li><p>/accounts/{{account_uuid}}/users?include=attributes&amp;page=2</p>\n</li>\n</ul>\n</li>\n<li><p>per_page</p>\n<ul>\n<li>Por padrão, a listagem exibe 15 itens por página. Este valor pode ser aumentado(até 100 itens) ou diminuído.</li>\n</ul>\n</li>\n<li><p>include</p>\n<ul>\n<li>Define os parâmetros que você receberá na sua request. É preciso definit item a item, como por exemplo <code>/users?include=status,status_of_service,email,attributes</code></li>\n</ul>\n</li>\n</ul>\n<h2 id=\"filtros-temporais-e-de-relacionamento\">Filtros temporais e de relacionamento</h2>\n<p>A partir de buscas específicas (como por exemplo o campo \"created_at\", ou \"uuid\"), especificar parâmetros relacionais, como \"maior que\", \"menor que\" e \"entre\". Abaixo estão as opções e como utilizá-los</p>\n<p>Em buscas por data, é preciso usar sempre no formato ISO, contendo ou não horário. Por exemplo, é aceito \"2024-07-26\" e \"2024-05-26T18:42:29.000000Z\"</p>\n<p>Além disso, <strong>um mesmo parâmetro NÃO pode ser usado duas vezes</strong>. Ou seja, se precisar de registros com a data de criação maior que 2024-06-01 e menor que 2024-07-01, é preciso usar <strong>between</strong>.</p>\n<ul>\n<li><p>lt</p>\n<ul>\n<li><p>Útil para buscas númericas e temporais, como \"retorne os registros com data <strong>menor que</strong> 2024-03-02\"</p>\n</li>\n<li><p><code>/contacts/{{ contact_uuid }}/messages?created_at=lt(2024-07-26T18:42:29.000000Z)</code></p>\n</li>\n</ul>\n</li>\n<li><p>gt</p>\n<ul>\n<li><p>Útil para buscas númericas e temporais, como \"retorne os registros com data <strong>maior que</strong> 2024-03-02\"</p>\n</li>\n<li><p><code>/contacts/{{ contact_uuid }}/messages?created_at=gt(2024-07-26T18:42:29.000000Z)</code></p>\n</li>\n</ul>\n</li>\n<li><p>between</p>\n<ul>\n<li><p>Útil para buscas númericas e temporais, como \"retorne os registros com data <strong>menor que</strong> 2024-03-01 e <strong>maior que</strong> 2024-04-01\"</p>\n</li>\n<li><p><code>/contacts/{{ contact_uuid }}/messages?created_at=between(2024-03-01,2024-04-01)</code></p>\n</li>\n</ul>\n</li>\n<li><p>in</p>\n<ul>\n<li>Útil para buscas com mais de um registro, e com assertividade <strong>exata</strong>. Por exemplo, \"mensagens com uuid dentro da lista [\"9a7e6be5-299b-4519-bc75-6276e7872306\", \"75dca1c2-0f76-49b4-a3a6-dad879a42c08\", \"75dca1c2-0f76-49b4-a3a6-dad879a42c08\"]</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"rate-limit\">Rate Limit</h2>\n<ul>\n<li>Toda a aplicação utiliza um mesmo rate limit de 60 requests por minutos. Otimize suas requests e crie fila na sua aplicação para não exceder este valor.</li>\n</ul>\n<h2 id=\"webhooks\">Webhooks</h2>\n<ul>\n<li><p>Prefira usar um serviço de filas em sua aplicação caso vá escutar eventos via webhook. Por mais que possuímos retries, a aplicação descartará eventos que não receberam sucesso do lado do cliente após algumas tentativas. A recomendação é tratar o evento de forma assíncrona.</p>\n</li>\n<li><p>Registre em seu webhook apenas eventos que você precisará escutar. O cadastro de mais itens pode sobrecarregar seu sistema e deixar a aplicação mais lenta.</p>\n</li>\n<li><p>Veja os <a href=\"https://developers.poli.digital/#67148bff-6d94-4ab9-9077-b8553efb30a2\">Eventos produzidos pelo ecossistema</a> na seção \"Webhook Events\"</p>\n</li>\n</ul>\n<h2 id=\"demais-recomendações\">Demais recomendações</h2>\n<ul>\n<li>Evite requests que trazem mais informações do que o necessário. Escolha o que precisa usando o ?include. Isso otimiza suas consultas trazendo resultados de forma mais rápidas</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24009576","collectionId":"1651d1ff-9b24-45af-8611-cff297997f9b","publishedId":"2s9YsDiuHY","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-08-28T19:30:37.000Z"},"item":[{"name":"Auth","item":[{"name":"Set XSFR-Token Cookie","event":[{"listen":"test","script":{"id":"422ac934-5c47-43a9-b018-07c9cf33dd63","exec":["pm.test(\"Response status code is 204\", function () {","  pm.expect(pm.response.code).to.equal(204);","});","","pm.test(\"Response body is empty or null\", function () {","    const responseData = xml2Json(pm.response.text());","    ","    pm.expect(responseData).to.be.null;","});","","pm.test(\"Presence of 'omniapi_session' cookie\", function () {","    pm.expect(pm.cookies.has('omniapi_session')).to.be.true;","});","","pm.test(\"Validate that the CSRF cookie is set\", function () {","    pm.expect(pm.cookies.has('XSRF-TOKEN')).to.be.true;","});","",""],"type":"text/javascript","packages":{}}}],"id":"6f4b2639-3247-415e-818b-936ed94df20e","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{host}}/sanctum/csrf-cookie","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["sanctum","csrf-cookie"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f4b2639-3247-415e-818b-936ed94df20e"},{"name":"Login","event":[{"listen":"test","script":{"id":"a0507928-7977-43f6-8817-ec4b73cfe642","exec":["pm.test(\"Response status code is 204\", function () {","  pm.expect(pm.response.code).to.equal(204);","});","","pm.test(\"Response body is null\", function () {","    const responseData = xml2Json(pm.response.text());","    ","    pm.expect(responseData).to.be.null;","});","","pm.test(\"Response body is empty\", function () {","    pm.expect(pm.response.text()).to.be.empty;","});","","pm.test(\"Response does not contain any specific error message\", function () {","    const responseData = xml2Json(pm.response.text());","    ","    pm.expect(responseData).to.be.null;","});"],"type":"text/javascript"}}],"id":"e278eb8f-5e20-41bf-a8f7-330e60c6bafd","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{},"followRedirects":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"{{user_email}}\",\n    \"password\": \"{{user_password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/auth/login","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["auth","login"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e278eb8f-5e20-41bf-a8f7-330e60c6bafd"},{"name":"Login Get Token","event":[{"listen":"test","script":{"id":"a0507928-7977-43f6-8817-ec4b73cfe642","exec":["pm.test(\"Response status code is 204\", function () {","  pm.expect(pm.response.code).to.equal(204);","});","","pm.test(\"Response body is null\", function () {","    const responseData = xml2Json(pm.response.text());","    ","    pm.expect(responseData).to.be.null;","});","","pm.test(\"Response body is empty\", function () {","    pm.expect(pm.response.text()).to.be.empty;","});","","pm.test(\"Response does not contain any specific error message\", function () {","    const responseData = xml2Json(pm.response.text());","    ","    pm.expect(responseData).to.be.null;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"c1fdf1e6-aa53-4f75-b4fd-11a314643f88","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{},"followRedirects":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"{{user_email}}\",\n    \"password\": \"{{user_password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/auth/login","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["auth","login"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1fdf1e6-aa53-4f75-b4fd-11a314643f88"},{"name":"Get Me","event":[{"listen":"test","script":{"id":"19c9eca4-5f54-4fbd-a1cf-0fdd1f399e4d","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.include.all.keys(","        'uuid', 'status', 'status_of_service', 'attributes', 'roles', ","        'permissions', 'addresses', 'active_account', 'accounts', 'metadata'","    );","});","","","pm.test(\"Each role in the 'roles' array has uuid, name, and label fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.roles).to.be.an('array');","    responseData.roles.forEach(function(role) {","        pm.expect(role).to.have.property('uuid').that.is.a('string');","        pm.expect(role).to.have.property('name').that.is.a('string');","        pm.expect(role).to.have.property('label').that.is.a('string');","    });","});"],"type":"text/javascript","packages":{}}}],"id":"05e439df-fa87-4189-801f-a52baf505de7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/auth/get-me","description":"<p>Dados do usuário autenticado</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["auth","get-me"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"05e439df-fa87-4189-801f-a52baf505de7"},{"name":"Logout","event":[{"listen":"test","script":{"id":"a0507928-7977-43f6-8817-ec4b73cfe642","exec":["pm.test(\"Response status code is 204\", function () {","  pm.expect(pm.response.code).to.equal(204);","});","","pm.test(\"Response body is null\", function () {","    const responseData = xml2Json(pm.response.text());","    ","    pm.expect(responseData).to.be.null;","});","","pm.test(\"Response body is empty\", function () {","    pm.expect(pm.response.text()).to.be.empty;","});","","pm.test(\"Response does not contain any specific error message\", function () {","    const responseData = xml2Json(pm.response.text());","    ","    pm.expect(responseData).to.be.null;","});"],"type":"text/javascript","packages":{}}}],"id":"3818fee2-c6e8-4773-b236-a379026205d5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{},"followRedirects":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{host}}/auth/logout","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["auth","logout"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3818fee2-c6e8-4773-b236-a379026205d5"}],"id":"d10344db-cd65-4f2f-ba57-b6ad6f121e75","description":"<p>É preciso criar um aplicativo e registrar o token com as atribuições do app.</p>\n<p>Este app poderá ser vinculado em outras contas para receber acesso</p>\n","_postman_id":"d10344db-cd65-4f2f-ba57-b6ad6f121e75","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Organizations","item":[{"name":"List","id":"e2a4ddac-3d56-4bd4-9691-4a1790332699","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/organizations?include=attributes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["organizations"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"}],"variable":[]}},"response":[],"_postman_id":"e2a4ddac-3d56-4bd4-9691-4a1790332699"},{"name":"Show","id":"6098d716-cdcd-4b6e-ba3c-e482889e50b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/organizations/{{organization_uuid}}?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["organizations","{{organization_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[],"_postman_id":"6098d716-cdcd-4b6e-ba3c-e482889e50b3"},{"name":"Create Organization","id":"87670352-e836-4568-bd70-e26e54854396","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Organization Root\", \n        \"phone\": \"(11) 99833-2344\",\n        \"email\": \"root@root.com\",\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        },\n        \"doc\": \"30.043.042/0001-12\",\n        \"segment\": \"Software\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/organizations?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["organizations"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"599b521f-84b1-4d8b-8970-daa47b777891","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Organization Root\", \n        \"phone\": \"(11) 99833-2344\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/organizations"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 13:22:08 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 13:22:08 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a804ddc-b884-457f-8fb4-da7e7bf87ec7\"\n}"},{"id":"eb1737c4-e471-47b6-b719-239475725a5f","name":"Success include all fields","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Organization Root\", \n        \"phone\": \"(11) 99833-2344\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/api/organizations?include=*","host":["{{host}}"],"path":["api","organizations"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 13:22:33 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 13:22:33 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a804e03-1a77-4e44-b5bb-9bfafba23e7a\",\n    \"attributes\": {\n        \"name\": \"Organization Root\",\n        \"doc\": null,\n        \"segment\": null,\n        \"picture\": null,\n        \"phone\": \"(11) 99833-2344\",\n        \"site\": null\n    },\n    \"addresses\": [\n        {\n            \"uuid\": \"9a804e03-1f13-414e-8fe5-497103d4540f\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"created_at\": \"2023-10-31T13:22:33.000000Z\",\n            \"updated_at\": \"2023-10-31T13:22:33.000000Z\"\n        }\n    ]\n}"}],"_postman_id":"87670352-e836-4568-bd70-e26e54854396"},{"name":"Update","id":"51b38fc4-f605-4d52-8185-37a38696a1f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Casas Bahia\",\n        \"phone\": \"0800 3003 4444\",\n        \"email\": \"casasbahia@casasbahia.com.br\",\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        },\n        \"doc\": \"30.043.042/0001-12\",\n        \"segment\": \"Varejo\",\n        \"site\": \"https://casasbahia.com.br\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/organizations/{{organization_uuid}}?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["organizations","{{organization_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[],"_postman_id":"51b38fc4-f605-4d52-8185-37a38696a1f5"},{"name":"Delete","id":"1e167b39-1b31-4d12-9fa3-8c592248504c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/organizations/{{organization_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["organizations","{{organization_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e167b39-1b31-4d12-9fa3-8c592248504c"},{"name":"Change Organization Subscription","id":"fe71253d-d90c-40fd-8ec9-463dccccd89b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"FREE_TRIAL\" // <CANCELED, ACTIVE, FREE_TRIAL, FREE_TRIAL_EXPIRED, IN_DEBT>\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/organizations/{{organization_uuid}}/subscription","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["organizations","{{organization_uuid}}","subscription"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ea14e6b4-68c2-4c3d-804d-ae1df7c0c302","name":"Activate account","originalRequest":{"method":"POST","header":[],"url":"{{host}}/api/accounts/{{account_id}}/activate"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account ACTIVE\"\n}"}],"_postman_id":"fe71253d-d90c-40fd-8ec9-463dccccd89b"}],"id":"027468a3-d60a-4f87-bb34-99072ca836c5","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'status', 'attributes', 'accounts', 'addresses', 'metadata'</code></p>\n<hr />\n","_postman_id":"027468a3-d60a-4f87-bb34-99072ca836c5","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Accounts","item":[{"name":"List all accounts from current user","event":[{"listen":"test","script":{"id":"ec678982-2553-45f7-bced-0ed57a7f6531","exec":["pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","pm.test(\"Links array is present and contains the expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.have.property('links').that.is.an('array').and.to.have.lengthOf(3);","});","","pm.test(\"Meta object contains the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.meta).to.be.an('object');","    pm.expect(responseData.meta).to.have.property('current_page');","    pm.expect(responseData.meta).to.have.property('from');","    pm.expect(responseData.meta).to.have.property('last_page');","    pm.expect(responseData.meta).to.have.property('total');","});"],"type":"text/javascript","packages":{}}}],"id":"62028d16-35df-4178-bfe0-9f10c04aabcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts?include=status,attributes,organization,addresses,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts"],"host":["{{host}}"],"query":[{"key":"include","value":"status,attributes,organization,addresses,metadata"}],"variable":[]}},"response":[{"id":"0ac574c0-051b-48b3-8509-604124393d66","name":"List all accounts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/api/accounts?include=*","host":["{{host}}"],"path":["api","accounts"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:38:34 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:38:34 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n            \"status\": \"CANCELED\",\n            \"attributes\": {\n                \"name\": \"Casas Bahia\",\n                \"doc\": \"10.100.111/0001-10\",\n                \"segment\": \"Empresa de Software\",\n                \"picture\": \"https://cdn.poli/9a54042e-5590-49d4-bf74-acf0a193d99d.png\",\n                \"phone\": \"0800 3003 4444\",\n                \"site\": \"https://casasbahia.com.br\"\n            },\n            \"addresses\": [],\n            \"metadata\": {\n                \"can_use_system\": false,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-08-29T20:53:40.000000Z\",\n                \"updated_at\": \"2023-10-30T18:38:25.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://localhost:8000/api/accounts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://localhost:8000/api/accounts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://localhost:8000/api/accounts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://localhost:8000/api/accounts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 1,\n        \"total\": 1\n    }\n}"}],"_postman_id":"62028d16-35df-4178-bfe0-9f10c04aabcf"},{"name":"Show specific account","id":"5213fd78-4af2-43bd-9dd9-de5c7037bc26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}?include=attributes,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,metadata"}],"variable":[]}},"response":[{"id":"099fa866-32d8-4f08-837c-776ba152dd23","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/api/accounts/{{account_id}}?include=*","host":["{{host}}"],"path":["api","accounts","{{account_id}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:36:43 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:36:43 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n    \"status\": \"CANCELED\",\n    \"attributes\": {\n        \"name\": \"Casas Bahia\",\n        \"doc\": \"10.100.111/0001-10\",\n        \"segment\": \"Empresa de Software\",\n        \"picture\": \"https://cdn.poli/9a54042e-5590-49d4-bf74-acf0a193d99d.png\",\n        \"phone\": \"0800 3003 4444\",\n        \"site\": \"https://casasbahia.com.br\"\n    },\n    \"addresses\": [],\n    \"metadata\": {\n        \"can_use_system\": false,\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2023-08-29T20:53:40.000000Z\",\n        \"updated_at\": \"2023-10-30T18:27:09.000000Z\"\n    }\n}"},{"id":"54a686c5-f1d2-4cd9-b24e-6df5df42aa2a","name":"Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/api/accounts/{{account_id}}?include=*","host":["{{host}}"],"path":["api","accounts","{{account_id}}"],"query":[{"key":"include","value":"*"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:36:06 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:36:06 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"text/html; charset=UTF-8","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5213fd78-4af2-43bd-9dd9-de5c7037bc26"},{"name":"Create Account","id":"042586d2-4782-4453-a988-30189d3017ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Evento com dispatch\",\n        \"segment\": \"Empresa de Software\",\n        \"doc\": \"00.000.000/0001-00\",\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        },\n        \"phone\": \"0800 3003 4444\",\n        \"site\": \"https://casasbahia.com.br\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        },\n        {\n            \"type\": \"Branch\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        },\n        {\n            \"type\": \"Branch\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"52e45624-0508-4860-a5f1-69fd79dec34b","name":"Create Account","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Evento com dispatch\",\n        \"segment\": \"Empresa de Software\",\n        \"doc\": \"00.000.000/0001-00\",\n        \"picture\": \"https://cdn.poli/9a54042e-5590-49d4-bf74-acf0a193d99d.png\",\n        \"phone\": \"0800 3003 4444\",\n        \"site\": \"https://casasbahia.com.br\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        },\n        {\n            \"type\": \"Branch\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        },\n        {\n            \"type\": \"Branch\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/api/accounts?include=attributes","host":["{{host}}"],"path":["api","accounts"],"query":[{"key":"include","value":"attributes"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:40:27 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:40:27 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a7ebcb7-938c-430a-aaf7-b17dd68714ec\",\n    \"status\": \"FREE_TRIAL\",\n    \"attributes\": {\n        \"name\": \"Empresa Teste\",\n        \"doc\": \"00.000.000/0001-00\",\n        \"segment\": \"Empresa de Software\",\n        \"picture\": \"https://cdn.poli/9a54042e-5590-49d4-bf74-acf0a193d99d.png\",\n        \"phone\": \"0800 3003 4444\",\n        \"site\": \"https://casasbahia.com.br\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"created_at\": \"2023-10-30T18:40:27.000000Z\",\n            \"updated_at\": \"2023-10-30T18:40:27.000000Z\"\n        },\n        {\n            \"type\": \"Branch\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"created_at\": \"2023-10-30T18:40:27.000000Z\",\n            \"updated_at\": \"2023-10-30T18:40:27.000000Z\"\n        },\n        {\n            \"type\": \"Branch\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"created_at\": \"2023-10-30T18:40:27.000000Z\",\n            \"updated_at\": \"2023-10-30T18:40:27.000000Z\"\n        }\n    ],\n    \"metadata\": {\n        \"can_use_system\": true,\n        \"deprecated_customer_id\": null,\n        \"created_at\": \"2023-10-30T18:40:27.000000Z\",\n        \"updated_at\": \"2023-10-30T18:40:27.000000Z\"\n    }\n}"},{"id":"5d46a6c2-a269-4d34-91c0-5cc0e746b7a8","name":"Create Account with minimum data","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"FREE_TRIAL\",\n    \"attributes\": {\n        \"name\": \"Evento com dispatch\",\n        \"segment\": \"Empresa de Software\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts?include=*","host":["{{host}}"],"path":["accounts"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.13","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Date","value":"Mon, 04 Dec 2023 20:50:28 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9ac553a8-c66c-41e9-9ba9-101b3b4215a4\",\n    \"status\": \"FREE_TRIAL\",\n    \"attributes\": {\n        \"name\": \"Evento com dispatch\",\n        \"doc\": null,\n        \"segment\": \"Empresa de Software\",\n        \"picture\": null,\n        \"phone\": null,\n        \"site\": null\n    },\n    \"addresses\": [],\n    \"applications\": [],\n    \"metadata\": {\n        \"can_use_system\": true,\n        \"deprecated_customer_id\": null,\n        \"created_at\": \"2023-12-04T20:50:28.000000Z\",\n        \"updated_at\": \"2023-12-04T20:50:28.000000Z\"\n    }\n}"}],"_postman_id":"042586d2-4782-4453-a988-30189d3017ad"},{"name":"Update Account","event":[{"listen":"test","script":{"id":"1897937e-475b-481c-8caf-11c482656e70","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.uuid).to.exist;","    pm.expect(responseData.status).to.exist;","    pm.expect(responseData.attributes).to.exist;","    pm.expect(responseData.account_channels).to.exist;","    pm.expect(responseData.addresses).to.exist;","    pm.expect(responseData.applications).to.exist;","    pm.expect(responseData.metadata).to.exist;","});","","","pm.test(\"Picture URL is in a valid format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.have.property('attributes');","    pm.expect(responseData.attributes.picture).to.be.a('object');","    pm.expect(responseData.attributes.picture.url).to.be.a('string');","});","",""],"type":"text/javascript"}}],"id":"c4574e29-e158-4afc-ba69-650fbbf38614","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Conta WL\",\n        \"doc\": \"10.100.111/0001-10\",\n        \"segment\": \"Empresa de Software\",\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        },\n        \"phone\": \"0800 3003 4444\",\n        \"site\": \"https://casasbahia.com.br\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"e96781bf-852f-43e2-8d6c-300a01453619","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Casas Bahia\",\n        \"doc\": \"10.100.111/0001-10\",\n        \"segment\": \"Empresa de Software\",\n        \"picture\": \"https://noticiasconcursos.com.br/wp-content/uploads/2022/10/noticiasconcursos.com.br-pix-a-cada-vitoria-casas-bahia-lanca-promocao-para-a-copa-do-mundo-veja-como-participar-novo-logo-casas-bahia-2-scaled-1.jpg\",\n        \"phone\": \"0800 3003 4444\",\n        \"site\": \"https://casasbahia.com.br\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/api/accounts/{{account_id}}?include=*","host":["{{host}}"],"path":["api","accounts","{{account_id}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:25:26 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:25:26 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n    \"status\": \"ACTIVE\",\n    \"attributes\": {\n        \"name\": \"Casas Bahia\",\n        \"doc\": \"10.100.111/0001-10\",\n        \"segment\": \"Empresa de Software\",\n        \"picture\": \"https://cdn.poli/9a54042e-5590-49d4-bf74-acf0a193d99d.png\",\n        \"phone\": \"0800 3003 4444\",\n        \"site\": \"https://casasbahia.com.br\"\n    },\n    \"addresses\": [],\n    \"metadata\": {\n        \"can_use_system\": true,\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2023-08-29T20:53:40.000000Z\",\n        \"updated_at\": \"2023-10-30T18:25:26.000000Z\"\n    }\n}"},{"id":"cb6782e1-962c-4e1d-b13c-f29c062ec323","name":"Account Not Found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Casas Bahia\",\n        \"doc\": \"10.100.111/0001-10\",\n        \"segment\": \"Empresa de Software\",\n        \"picture\": \"https://noticiasconcursos.com.br/wp-content/uploads/2022/10/noticiasconcursos.com.br-pix-a-cada-vitoria-casas-bahia-lanca-promocao-para-a-copa-do-mundo-veja-como-participar-novo-logo-casas-bahia-2-scaled-1.jpg\",\n        \"phone\": \"0800 3003 4444\",\n        \"site\": \"https://casasbahia.com.br\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/api/accounts/{{account_id}}?include=*","host":["{{host}}"],"path":["api","accounts","{{account_id}}"],"query":[{"key":"include","value":"*"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:30:23 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:30:23 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account not found\"\n}"}],"_postman_id":"c4574e29-e158-4afc-ba69-650fbbf38614"},{"name":"Change Account Subscription","id":"467b23b3-21ec-491e-9f06-2b9e4f4c80d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"FREE_TRIAL\" // <CANCELED, ACTIVE, FREE_TRIAL, FREE_TRIAL_EXPIRED, IN_DEBT>\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/subscription","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","subscription"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"2a0e2b49-05b3-4a9c-9e65-4a93006d2129","name":"Activate account","originalRequest":{"method":"POST","header":[],"url":"{{host}}/api/accounts/{{account_id}}/activate"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account ACTIVE\"\n}"}],"_postman_id":"467b23b3-21ec-491e-9f06-2b9e4f4c80d8"},{"name":"Delete Account","id":"2327435f-d1e1-4e9f-98bf-167c3cda096b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/accounts/{{account_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"33e69673-577e-4c99-968c-e9ea86b95bf3","name":"Delete Account","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/api/accounts/{{account_id}}"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:27:54 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:27:54 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account deleted successfully\"\n}"}],"_postman_id":"2327435f-d1e1-4e9f-98bf-167c3cda096b"}],"id":"7eed8e1d-7eae-4d8f-b899-aecfcf075208","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'status', 'attributes', 'organization', 'account_channels', 'addresses', 'applications', 'metadata'</code></p>\n<hr />\n","_postman_id":"7eed8e1d-7eae-4d8f-b899-aecfcf075208","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"AccountChannels","item":[{"name":"List all AccountChannels","id":"a3eb884a-c900-404b-b37a-086133c29e42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/account-channels/?include=metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","account-channels",""],"host":["{{host}}"],"query":[{"key":"include","value":"metadata"}],"variable":[]}},"response":[{"id":"0665c810-36d8-4246-9e65-04a9ce463b13","name":"List all account-channels","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/account-channels/?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","account-channels",""],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:38:34 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:38:34 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"077ade90-d68a-4f19-ae59-40a548288591\",\n            \"uid\": \"1@polichat.webchat\",\n            \"provider\": \"WEBCHAT\",\n            \"integrator\": \"SYSTEM\",\n            \"config\": null,\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_account_channel_id\": 1,\n                \"connection\": \"ACTIVE\",\n                \"display_on_webchat\": \"ACTIVE\",\n                \"created_at\": \"2023-08-29T20:53:40.000000Z\",\n                \"updated_at\": \"2023-08-29T20:53:40.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9af59811-c026-4bf2-a8c4-9ac719127d9d\",\n            \"uid\": \"5562982063914\",\n            \"provider\": \"WHATSAPP\",\n            \"integrator\": \"WEBCHAT\",\n            \"config\": {\n                \"status\": 203,\n                \"api\": {\n                    \"due\": 1689735599862,\n                    \"id\": \"3C020C759B62604AFB322E3076D63B5D\",\n                    \"token\": \"3C020C759B626148D9472E3076D63B5D\"\n                },\n                \"divergent\": false\n            },\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_account_channel_id\": 2,\n                \"connection\": \"ACTIVE\",\n                \"deprecated_revsync\": 1,\n                \"display_on_webchat\": \"ACTIVE\",\n                \"created_at\": \"2023-12-28T20:41:29.000000Z\",\n                \"updated_at\": \"2023-12-28T20:41:29.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9af5985f-e787-4a96-83f5-dcde1e77cab4\",\n            \"uid\": \"5562982063914\",\n            \"provider\": \"WHATSAPP\",\n            \"integrator\": \"WEBCHAT\",\n            \"config\": {\n                \"status\": 203,\n                \"api\": {\n                    \"due\": 1689735599862,\n                    \"id\": \"3C020C759B62604AFB322E3076D63B5D\",\n                    \"token\": \"3C020C759B626148D9472E3076D63B5D\"\n                },\n                \"divergent\": false\n            },\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_account_channel_id\": 3,\n                \"connection\": \"ACTIVE\",\n                \"deprecated_revsync\": 1,\n                \"display_on_webchat\": \"ACTIVE\",\n                \"created_at\": \"2023-12-28T20:42:20.000000Z\",\n                \"updated_at\": \"2023-12-28T20:42:20.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/account-channels?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/account-channels?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/account-channels?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/account-channels\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"a3eb884a-c900-404b-b37a-086133c29e42"},{"name":"Show specific AccountChannel","id":"16f72652-726f-4716-8c19-4f12db9ad5be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/account-channels/{{account_channel_uuid}}?include=config","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["account-channels","{{account_channel_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"config"}],"variable":[]}},"response":[{"id":"7546b3dd-397d-474c-b0f6-1eb61a96a422","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/account-channels/{{account_channel_uuid}}?include=*","host":["{{host}}"],"path":["account-channels","{{account_channel_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:36:43 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:36:43 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"077ade90-d68a-4f19-ae59-40a548288591\",\n    \"uid\": \"5562982063914\",\n    \"provider\": \"WEBCHAT\",\n    \"integrator\": \"SYSTEM\",\n    \"config\": null,\n    \"metadata\": {\n        \"deprecated_customer_id\": 1,\n        \"deprecated_account_channel_id\": 1,\n        \"connection\": \"ACTIVE\",\n        \"display_on_webchat\": \"ACTIVE\",\n        \"created_at\": \"2023-08-29T20:53:40.000000Z\",\n        \"updated_at\": \"2023-12-29T12:41:00.000000Z\"\n    }\n}"}],"_postman_id":"16f72652-726f-4716-8c19-4f12db9ad5be"},{"name":"Create AccountChannel","event":[{"listen":"test","script":{"id":"d01fdf8c-39e4-4d43-8fc1-bd0e4967956a","exec":["","pm.test(\"Response status code is 201\", function () {","    pm.expect(pm.response.code).to.equal(201);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('uuid');","    pm.expect(responseData).to.have.property('uid');","    pm.expect(responseData).to.have.property('provider');","    pm.expect(responseData).to.have.property('integrator');","    pm.expect(responseData).to.have.property('config');","    pm.expect(responseData).to.have.property('metadata');","});","","","pm.test(\"Config object contains expected fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.config).to.be.an('object');","    pm.expect(responseData.config).to.include.all.keys('business_id', 'business_name', 'waba_id', 'waba_name', 'phone_id', 'phone_name', 'phone_number', 'business_management');","});","","","pm.test(\"Deprecated customer ID is a non-negative integer\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData.metadata.deprecated_customer_id).to.be.a('number').and.to.be.at.least(0);","});","",""],"type":"text/javascript","packages":{}}}],"id":"d8ce52dc-2212-45b7-a8e4-bd5c019bc8cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"uid\": \"5562996355808\",\n    \"provider\": \"WABA\", // WHATSAPP | FACEBOOK | EMAIL | WEBCHAT | INSTAGRAM | WABA | PHONE\n    \"integrator\": \"POLI\", // CLOUD_API | DIALOG_360 | ZAPI | POLI\n    \"status\": \"ACTIVE\", // ACTIVE | INACTIVE\n    \"connection\": \"CONNECTED\", // CONNECTED | DISCONNECTED\n    \"display_on_webchat\": true, // true | false\n    \"name\": \"Waba 5808\",\n    // \"config\": {\n    //     \"business_id\": \"203659830793383\",\n    //     \"business_name\": \"OVG - Organiza\\u00e7\\u00e3o das Volunt\\u00e1rias de Goi\\u00e1s\",\n    //     \"waba_id\": \"118128017902140\",\n    //     \"waba_name\": \"teste\",\n    //     \"phone_id\": \"115995191452848\",\n    //     \"phone_name\": \"Canal Oficial OVG\",\n    //     \"phone_number\": \"5562996416090\",\n    //     \"business_management\": {\n    //         \"phone_id\": \"b7115c81-083d-4206-aa4b-4419433c0aa1\",\n    //         \"whatsapp_account_id\": \"3bc824b2-773b-480c-86e7-24ef26c7dd42\"\n    //     }\n    // }\n    // //INSTAGRAM config\n    // \"config\": {\n    //     \"connected_instagram_account\": {\n    //         \"id\": \"17841427458483872\"\n    //     },\n    //     \"instagram_business_account\": {\n    //         \"id\": \"17841427458483872\"\n    //     },\n    //     \"access_token\": \"EAAFgZBTq4SZAkBAImF4PRRWQ5kTdb6YpCrPGlLABZByXnE3aO3YRKK5IG10ePVoF8bKIZC5AaUZCrhJkkDFw8iglGdRkyffweDvslHYzmTM2B4NM6bnzYeTqOl9ZBb6RnfEweaSrY1xp8zC3h8Pz3xtEnCW6jOCObJtKNpZC5dqL1gfY8BsW3xOWnNwULFeZAvZCh5cI5svRZBSFOo7hYSeZBD6\",\n    //     \"name\": \"Ricky M\\u00eddias\",\n    //     \"id\": \"105293241007842\",\n    //     \"category_list\": [\n    //         {\n    //             \"id\": \"187393124625179\",\n    //             \"name\": \"Web Designer\"\n    //         }\n    //     ],\n    //     \"tasks\": [\n    //         \"ANALYZE\",\n    //         \"ADVERTISE\",\n    //         \"MESSAGING\",\n    //         \"MODERATE\",\n    //         \"CREATE_CONTENT\",\n    //         \"MANAGE\"\n    //     ],\n    //     \"pag_instagram_connected_account\": \"17841427458483872\"\n    // },\n    // //FACEBOOK config\n    // \"config\": {\n    //     \"access_token\": \"EAAFgZBTq4SZAkBAGjHzrIX2pS2ATx3js6fO7J0QYnAXdJSNqZC2jkRZCW26OeVfeNCcUSU6fiRckEXxTp9IkB9bbT3UrTtfjz0EiJkWOXR7CZCGoXTIcZCJ9KTeJpMlwsgPtlba9hZCYsw54Tikgq2nZBT6X9w5T8rlFwx6tbRX9WgZDZD\",\n    //     \"name\": \"Dusol Engenharia Sustent\\u00e1vel\",\n    //     \"id\": \"1579488062372380\",\n    //     \"category_list\": [\n    //         {\n    //             \"id\": \"400062273344681\",\n    //             \"name\": \"Serviços de engenharia\"\n    //         },\n    //         {\n    //             \"id\": \"161521487230197\",\n    //             \"name\": \"Serviçoss de energia solar\"\n    //         },\n    //         {\n    //             \"id\": \"436846369665656\",\n    //             \"name\": \"Concessioncionaria de serviçoss\"\n    //         }\n    //     ],\n    //     \"tasks\": [\n    //         \"ANALYZE\",\n    //         \"ADVERTISE\",\n    //         \"MODERATE\",\n    //         \"CREATE_CONTENT\",\n    //         \"MANAGE\"\n    //     ]\n    // },\n    // //WEBCHAT config\n    // \"config\": {\"website\":\"www.casasbahia.com.br\"},\n    // //WHATSAPP config\n    // \"config\": {\n    //     \"status\": 203,\n    //     \"zapi\": {\n    //         \"due\": 1689735599862,\n    //         \"id\": \"3C020C759B62604AFB322E3076D63B5D\",\n    //         \"token\": \"3C020C759B626148D9472E3076D63B5D\"\n    //     },\n    //     \"qr_code\": null,\n    //     \"divergent\": false\n    // },\n    // //WHATSAPP config\n    \"config\": {\n        \"status\": 203,\n        \"zapi\": {\n            \"due\": 1689735599862,\n            \"id\": \"3C020C759B62604AFB322E3076D63B5D\",\n            \"token\": \"3C020C759B626148D9472E3076D63B5D\"\n        },\n        \"qr_code\": \"\",\n        \"divergent\": false\n    }\n    //WHATSAPP config\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/account-channels?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","account-channels"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"10d732bf-87ae-4884-bd50-d1811b854dd4","name":"WABA","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"uid\": \"55629820643915\",\n    \"provider\": \"WHATSAPP\", // WHATSAPP | FACEBOOK | EMAIL | WEBCHAT | INSTAGRAM | WABA | PHONE\n    \"integrator\": \"POLI\", // CLOUD_API | DIALOG_360 | ZAPI | POLI\n    \"status\": \"ACTIVE\", // ACTIVE | INACTIVE\n    \"connection\": \"CONNECTED\", // CONNECTED | DISCONNECTED\n    \"display_on_webchat\": true, // true | false\n    \"name\": \"Canal de atendimento de Teste\",\n    \"config\": {\n        \"business_id\": \"203659830793383\",\n        \"business_name\": \"OVG - Organiza\\u00e7\\u00e3o das Volunt\\u00e1rias de Goi\\u00e1s\",\n        \"waba_id\": \"118128017902140\",\n        \"waba_name\": \"teste\",\n        \"phone_id\": \"115995191452848\",\n        \"phone_name\": \"Canal Oficial OVG\",\n        \"phone_number\": \"5562996416090\",\n        \"business_management\": {\n            \"phone_id\": \"b7115c81-083d-4206-aa4b-4419433c0aa1\",\n            \"whatsapp_account_id\": \"3bc824b2-773b-480c-86e7-24ef26c7dd42\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/account-channels?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","account-channels"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:40:27 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:40:27 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9af6f289-7b65-4262-b537-dd0ee8c84a6b\",\n    \"uid\": \"55629820643914\",\n    \"provider\": \"WHATSAPP\",\n    \"integrator\": \"POLI\",\n    \"config\": {\n        \"business_id\": \"203659830793383\",\n        \"business_name\": \"OVG - Organização das Voluntárias de Goiás\",\n        \"waba_id\": \"118128017902140\",\n        \"waba_name\": \"teste\",\n        \"phone_id\": \"115995191452848\",\n        \"phone_name\": \"Canal Oficial OVG\",\n        \"phone_number\": \"5562996416090\",\n        \"business_management\": {\n            \"phone_id\": \"b7115c81-083d-4206-aa4b-4419433c0aa1\",\n            \"whatsapp_account_id\": \"3bc824b2-773b-480c-86e7-24ef26c7dd42\"\n        }\n    },\n    \"metadata\": {\n        \"deprecated_customer_id\": 1,\n        \"connection\": \"ACTIVE\",\n        \"display_on_webchat\": \"ACTIVE\",\n        \"created_at\": \"2023-12-29T12:50:17.000000Z\",\n        \"updated_at\": \"2023-12-29T12:50:17.000000Z\"\n    }\n}"},{"id":"5bedcc14-73c1-4291-88c1-778712e23ea6","name":"Z-API","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"uid\": \"556298825173\",\n    \"provider\": \"WHATSAPP\", // WHATSAPP | FACEBOOK | EMAIL | WEBCHAT | INSTAGRAM | WABA | PHONE\n    \"integrator\": \"ZAPI\", // CLOUD_API | DIALOG_360 | ZAPI | POLI\n    \"status\": \"ACTIVE\", // ACTIVE | INACTIVE\n    \"connection\": \"CONNECTED\", // CONNECTED | DISCONNECTED\n    \"display_on_webchat\": true, // true | false\n    \"name\": \"Canal de atendimento de Teste\",\n    \"config\": {\n        \"status\": 203,\n        \"zapi\": {\n            \"due\": 1689735599862,\n            \"id\": \"3C8C718CF3563037339FAE74609B4F26\",\n            \"token\": \"B0975237B53F4F7B809C61F5D675DCA7\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/account-channels?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","account-channels"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:40:27 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:40:27 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9af6f289-7b65-4262-b537-dd0ee8c84a6b\",\n    \"uid\": \"55629820643914\",\n    \"provider\": \"WHATSAPP\",\n    \"integrator\": \"POLI\",\n    \"config\": {\n        \"business_id\": \"203659830793383\",\n        \"business_name\": \"OVG - Organização das Voluntárias de Goiás\",\n        \"waba_id\": \"118128017902140\",\n        \"waba_name\": \"teste\",\n        \"phone_id\": \"115995191452848\",\n        \"phone_name\": \"Canal Oficial OVG\",\n        \"phone_number\": \"5562996416090\",\n        \"business_management\": {\n            \"phone_id\": \"b7115c81-083d-4206-aa4b-4419433c0aa1\",\n            \"whatsapp_account_id\": \"3bc824b2-773b-480c-86e7-24ef26c7dd42\"\n        }\n    },\n    \"metadata\": {\n        \"deprecated_customer_id\": 1,\n        \"connection\": \"ACTIVE\",\n        \"display_on_webchat\": \"ACTIVE\",\n        \"created_at\": \"2023-12-29T12:50:17.000000Z\",\n        \"updated_at\": \"2023-12-29T12:50:17.000000Z\"\n    }\n}"}],"_postman_id":"d8ce52dc-2212-45b7-a8e4-bd5c019bc8cc"},{"name":"Update AccountChannel","id":"d416075f-acfa-486f-91d8-3fc5b2ce2b58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"uid\":\"5562982063914\",\n    \"name\": \"Novo Nome da Account Channel\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/account-channels/{{account_channel_uuid}}?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["account-channels","{{account_channel_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"7c640512-fffb-4101-afcb-2cea7e63ebba","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Casas Bahia\",\n        \"doc\": \"10.100.111/0001-10\",\n        \"segment\": \"Empresa de Software\",\n        \"picture\": \"https://noticiasconcursos.com.br/wp-content/uploads/2022/10/noticiasconcursos.com.br-pix-a-cada-vitoria-casas-bahia-lanca-promocao-para-a-copa-do-mundo-veja-como-participar-novo-logo-casas-bahia-2-scaled-1.jpg\",\n        \"phone\": \"0800 3003 4444\",\n        \"site\": \"https://casasbahia.com.br\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/account-channels/{{account_uuid}}?include=*","host":["{{host}}"],"path":["account-channels","{{account_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:25:26 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:25:26 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"077ade90-d68a-4f19-ae59-40a548288591\",\n    \"uid\": \"5562982063914\",\n    \"provider\": \"WEBCHAT\",\n    \"integrator\": \"SYSTEM\",\n    \"config\": null,\n    \"metadata\": {\n        \"deprecated_customer_id\": 1,\n        \"deprecated_account_channel_id\": 1,\n        \"connection\": \"ACTIVE\",\n        \"display_on_webchat\": \"ACTIVE\",\n        \"created_at\": \"2023-08-29T20:53:40.000000Z\",\n        \"updated_at\": \"2023-12-29T12:41:00.000000Z\"\n    }\n}"},{"id":"175db96f-3d74-4a0b-9d0f-e270749648c6","name":"Account Not Found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Casas Bahia\",\n        \"doc\": \"10.100.111/0001-10\",\n        \"segment\": \"Empresa de Software\",\n        \"picture\": \"https://noticiasconcursos.com.br/wp-content/uploads/2022/10/noticiasconcursos.com.br-pix-a-cada-vitoria-casas-bahia-lanca-promocao-para-a-copa-do-mundo-veja-como-participar-novo-logo-casas-bahia-2-scaled-1.jpg\",\n        \"phone\": \"0800 3003 4444\",\n        \"site\": \"https://casasbahia.com.br\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/account-channels/{{account_uuid}}?include=*","host":["{{host}}"],"path":["account-channels","{{account_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:30:23 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:30:23 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account Channel not found\"\n}"}],"_postman_id":"d416075f-acfa-486f-91d8-3fc5b2ce2b58"},{"name":"Change AccountChannel Config","id":"ec372bd3-797b-4b42-9674-91a8b575f072","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    \"provider\": \"INSTAGRAM\", // WHATSAPP | FACEBOOK | EMAIL | WEBCHAT | INSTAGRAM | PHONE\n    \"integrator\": \"POLI\", // CLOUD_API | DIALOG_360 | ZAPI | POLI\n    //INSTAGRAM config\n    \"config\": {\n        \"connected_instagram_account\": {\n            \"id\": \"17841427458483872\"\n        },\n        \"instagram_business_account\": {\n            \"id\": \"17841427458483872\"\n        },\n        \"access_token\": \"EAAFgZBTq4SZAkBAImF4PRRWQ5kTdb6YpCrPGlLABZByXnE3aO3YRKK5IG10ePVoF8bKIZC5AaUZCrhJkkDFw8iglGdRkyffweDvslHYzmTM2B4NM6bnzYeTqOl9ZBb6RnfEweaSrY1xp8zC3h8Pz3xtEnCW6jOCObJtKNpZC5dqL1gfY8BsW3xOWnNwULFeZAvZCh5cI5svRZBSFOo7hYSeZBD6\",\n        \"name\": \"Ricky M\\u00eddias\",\n        \"id\": \"105293241007842\",\n        \"category_list\": [\n            {\n                \"id\": \"187393124625179\",\n                \"name\": \"Web Designer\"\n            }\n        ],\n        \"tasks\": [\n            \"ANALYZE\",\n            \"ADVERTISE\",\n            \"MESSAGING\",\n            \"MODERATE\",\n            \"CREATE_CONTENT\",\n            \"MANAGE\"\n        ],\n        \"pag_instagram_connected_account\": \"17841427458483872\"\n    }\n    // //FACEBOOK config\n    // \"config\": {\n    //     \"access_token\": \"EAAFgZBTq4SZAkBAGjHzrIX2pS2ATx3js6fO7J0QYnAXdJSNqZC2jkRZCW26OeVfeNCcUSU6fiRckEXxTp9IkB9bbT3UrTtfjz0EiJkWOXR7CZCGoXTIcZCJ9KTeJpMlwsgPtlba9hZCYsw54Tikgq2nZBT6X9w5T8rlFwx6tbRX9WgZDZD\",\n    //     \"name\": \"Dusol Engenharia Sustent\\u00e1vel\",\n    //     \"id\": \"1579488062372380\",\n    //     \"category_list\": [\n    //         {\n    //             \"id\": \"400062273344681\",\n    //             \"name\": \"Serviços de engenharia\"\n    //         },\n    //         {\n    //             \"id\": \"161521487230197\",\n    //             \"name\": \"Serviçoss de energia solar\"\n    //         },\n    //         {\n    //             \"id\": \"436846369665656\",\n    //             \"name\": \"Concessioncionaria de serviçoss\"\n    //         }\n    //     ],\n    //     \"tasks\": [\n    //         \"ANALYZE\",\n    //         \"ADVERTISE\",\n    //         \"MODERATE\",\n    //         \"CREATE_CONTENT\",\n    //         \"MANAGE\"\n    //     ]\n    // },\n    // //WEBCHAT config\n    // \"config\": {\n    //     \"websites\": [\n    //         \"https://meusite.com.br\",\n    //         \"https://mywebpage.com\"\n    //     ]\n    // },\n    // //WHATSAPP config\n    // \"config\": {\n    //     \"status\": 203,\n    //     \"zapi\": {\n    //         \"due\": 1689735599862,\n    //         \"id\": \"3C020C759B62604AFB322E3076D63B5D\",\n    //         \"token\": \"3C020C759B626148D9472E3076D63B5D\"\n    //     },\n    //     \"qr_code\": null,\n    //     \"divergent\": false\n    // },\n    // //WHATSAPP config\n    // \"config\": {\n    //     \"status\": 203,\n    //     \"zapi\": {\n    //         \"due\": 1689735599862,\n    //         \"id\": \"3C020C759B62604AFB322E3076D63B5D\",\n    //         \"token\": \"3C020C759B626148D9472E3076D63B5D\"\n    //     },\n    //     \"qr_code\": null,\n    //     \"divergent\": false\n    // },\n    // //WHATSAPP config\n    // \"config\": {\n    //     \"business_id\": \"203659830793383\",\n    //     \"business_name\": \"OVG - Organiza\\u00e7\\u00e3o das Volunt\\u00e1rias de Goi\\u00e1s\",\n    //     \"waba_id\": \"118128017902140\",\n    //     \"waba_name\": null,\n    //     \"phone_id\": \"115995191452848\",\n    //     \"phone_name\": \"Canal Oficial OVG\",\n    //     \"phone_number\": \"5562996416090\",\n    //     \"business_management\": {\n    //         \"phone_id\": \"b7115c81-083d-4206-aa4b-4419433c0aa1\",\n    //         \"whatsapp_account_id\": \"3bc824b2-773b-480c-86e7-24ef26c7dd42\"\n    //     }\n    // },\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/account-channels/{{account_channel_uuid}}/config","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["account-channels","{{account_channel_uuid}}","config"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"aff2e420-33d9-4b4d-8dcb-6a71d7cb041e","name":"Webchat","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"WEBCHAT\",\n    \"integrator\": \"POLI\",\n    \"config\": {\n        \"websites\": [\n            \"https://meusite.com.br\",\n            \"https://mywebpage.com\"\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/account-channels/{{account_channel_uuid}}/config"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"077ade90-d68a-4f19-ae59-40a548288591\",\n    \"uid\": \"5562982063914\",\n    \"provider\": \"WEBCHAT\"\n}"},{"id":"b3661c05-c8b3-410b-ba7d-721ba540ccc2","name":"Instagram","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"INSTAGRAM\",\n    \"integrator\": \"POLI\",\n    \"config\": {\n        \"connected_instagram_account\": {\n            \"id\": \"17841427458483872\"\n        },\n        \"instagram_business_account\": {\n            \"id\": \"17841427458483872\"\n        },\n        \"access_token\": \"KZr4ZBTq4SZAkBAImF4PRRWQ5kTdb6YpCrPGlLABZByXnEhsurG25IG10ePVoF8bKIZC5AaUZCrhJkkDFw8iglGdRkyffweDvslHYzmTM2B4NM6bnzYeTqOl9ZBb6RnfEweaSrY1xp8zC3h8Pz3xtEnCW6jOCObJtKNpZC5dqL1gfY8BsW3xOWnNwULFeZAvZCh5cI5svRZBSFOo7hYSeZBD6\",\n        \"name\": \"Ricky M\\u00eddias\",\n        \"id\": \"105293241007842\",\n        \"category_list\": [\n            {\n                \"id\": \"187393124625179\",\n                \"name\": \"Web Designer\"\n            }\n        ],\n        \"tasks\": [\n            \"ANALYZE\",\n            \"ADVERTISE\",\n            \"MESSAGING\",\n            \"MODERATE\",\n            \"CREATE_CONTENT\",\n            \"MANAGE\"\n        ],\n        \"pag_instagram_connected_account\": \"17841427458483872\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/account-channels/{{account_channel_uuid}}/config"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"077ade90-d68a-4f19-ae59-40a548288591\",\n    \"uid\": \"5562982063914\",\n    \"provider\": \"WEBCHAT\"\n}"},{"id":"03583173-908f-45e5-b0ac-2623b4b1d83d","name":"Facebook","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"FACEBOOK\",\n    \"integrator\": \"POLI\",\n    \"config\": {\n        \"access_token\": \"KzAGIn4g8kBAGjHzrIX2pS2ATx3js6fO7J0QYnAXdJSNqZC2jkRZCW26OeVfeNCcUSU6fiRckEXxTp9IkB9bbT3UrTtf33z0EiJkWOXR7CZCGoXTIcZCJ9KTeJpMlwsgPtlba9hZCYsw54Tikgq2nZBT6X9w5T8rlFwx6tbRX9WgZDZD\",\n        \"name\": \"Dusol Engenharia Sustent\\u00e1vel\",\n        \"id\": \"1579488062372380\",\n        \"category_list\": [\n            {\n                \"id\": \"400062273344681\",\n                \"name\": \"Serviços de engenharia\"\n            },\n            {\n                \"id\": \"161521487230197\",\n                \"name\": \"Serviçoss de energia solar\"\n            },\n            {\n                \"id\": \"436846369665656\",\n                \"name\": \"Concessioncionaria de serviçoss\"\n            }\n        ],\n        \"tasks\": [\n            \"ANALYZE\",\n            \"ADVERTISE\",\n            \"MODERATE\",\n            \"CREATE_CONTENT\",\n            \"MANAGE\"\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/account-channels/{{account_channel_uuid}}/config"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"077ade90-d68a-4f19-ae59-40a548288591\",\n    \"uid\": \"5562982063914\",\n    \"provider\": \"WEBCHAT\"\n}"},{"id":"cace4cd0-fbdc-4916-900e-0376410af8b4","name":"WhatsApp","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    \"provider\": \"WHATSAPP\",\n    \"integrator\": \"CLOUD_API\",\n    \"config\": {\n        \"business_id\": \"803650830701183\",\n        \"business_name\": \"My Company LTDA.\",\n        \"waba_id\": \"118188017008140\",\n        \"waba_name\": \"MY COMPANY\",\n        \"phone_id\": \"115005101458848\",\n        \"phone_name\": \"Central de atendimento My Company\",\n        \"phone_number\": \"5568006416000\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/account-channels/{{account_channel_uuid}}/config"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"077ade90-d68a-4f19-ae59-40a548288591\",\n    \"uid\": \"5562982063914\",\n    \"provider\": \"WEBCHAT\"\n}"},{"id":"be2eaa40-81cc-4c70-afbd-2a099965d99f","name":"Z-API","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    \"provider\": \"WHATSAPP\",\n    \"integrator\": \"ZAPI\",\n    \"config\": {\n        \"zapi\": {\n            \"id\": \"0C020C751B62604AFB022E0076D60B5D\",\n            \"token\": \"0C020C751B626148D1472E0076D60B5D\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/account-channels/{{account_channel_uuid}}/config"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"077ade90-d68a-4f19-ae59-40a548288591\",\n    \"uid\": \"5562982063914\",\n    \"provider\": \"WEBCHAT\"\n}"}],"_postman_id":"ec372bd3-797b-4b42-9674-91a8b575f072"},{"name":"Change AccountChannel Status","id":"0a1ec6d1-76f7-42d1-8c4a-29986f42cf4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"ACTIVE\" // ACTIVE | INACTIVE\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/account-channels/{{account_channel_uuid}}/status","description":"<p>Ativar ou desativar um canal da empresa</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["account-channels","{{account_channel_uuid}}","status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c315437a-05d2-4813-9e76-4bc099d91bae","name":"Activate account","originalRequest":{"method":"POST","header":[],"url":"{{host}}/account-channels/{{account_channel_uuid}}/status-on-poli"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account Channel status: ACTIVE\"\n}"}],"_postman_id":"0a1ec6d1-76f7-42d1-8c4a-29986f42cf4c"},{"name":"Change AccountChannel Integrator","id":"a48e265b-617f-4e91-bbf6-0f1c4c086b59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"integrator\": \"POLI\" // CLOUD_API | DIALOG_360 | ZAPI | POLI\n}\n\n","options":{"raw":{"language":"json"}}},"url":"{{host}}/account-channels/{{account_channel_uuid}}/integrator","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["account-channels","{{account_channel_uuid}}","integrator"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"94d23a9c-7386-49d2-8582-1aa56715b9c3","name":"Activate account","originalRequest":{"method":"POST","header":[],"url":"{{host}}/account-channels/{{account_channel_uuid}}/integrator"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account Channel integrator: POLI\"\n}"}],"_postman_id":"a48e265b-617f-4e91-bbf6-0f1c4c086b59"},{"name":"Change AccountChannel External Connection","event":[{"listen":"test","script":{"id":"68c43b36-3e6e-4165-89bc-8e9f1a9e5a7a","exec":["pm.test(\"Response status code is 202\", function () {","    pm.expect(pm.response.code).to.equal(202);","});","","pm.test(\"Response has the required field 'message'\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.have.property('message');","});","","pm.test(\"Message is not an empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.message).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Message should not be empty\");","});","","pm.test(\"Message contains expected text\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.message).to.include(\"Account Channel\");","});","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get('Content-Type')).to.include('application/json');","});"],"type":"text/javascript"}}],"id":"6672a883-ed59-49d3-a79c-7201e5035272","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"connection\": \"DISCONNECTED\" // CONNECTED | DISCONNECTED\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/account-channels/{{account_channel_uuid}}/external-connection","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["account-channels","{{account_channel_uuid}}","external-connection"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"5c8b1f95-50c6-4346-9415-a8a9910d4f24","name":"Change AccountChannel External Connection","originalRequest":{"method":"POST","header":[],"url":"{{host}}/account-channels/{{account_channel_uuid}}/external-connection"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account Channel external connection: INACTIVE\"\n}"}],"_postman_id":"6672a883-ed59-49d3-a79c-7201e5035272"},{"name":"Display On Webchat","event":[{"listen":"test","script":{"id":"4679e6ef-be05-40ca-92db-f4519db46b16","exec":["pm.test(\"Response status code is 202\", function () {","    pm.expect(pm.response.code).to.equal(202);","});","","pm.test(\"Response has the required field 'message'\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.have.property('message');","});","","pm.test(\"Message field should be a string with specific format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.message).to.be.a('string');","    pm.expect(responseData.message).to.contain('Account Channel');","});","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});"],"type":"text/javascript"}}],"id":"b588ddb3-cf90-4ad7-9e8d-1efcd0e630f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"display_on_webchat\": true // TRUE | FALSE\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/account-channels/{{account_channel_uuid}}/display-on-webchat","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["account-channels","{{account_channel_uuid}}","display-on-webchat"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4a9d0e49-3e8d-4a7a-880e-7fca05d92c24","name":"Activate account","originalRequest":{"method":"POST","header":[],"url":"{{host}}/account-channels/{{account_channel_uuid}}/display-on-webchat"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:41:05 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account Channel on webchat display: INACTIVE\"\n}"}],"_postman_id":"b588ddb3-cf90-4ad7-9e8d-1efcd0e630f9"},{"name":"Delete AccountChannel","id":"6cbf5796-be19-4a79-a1c8-cfd1770edfba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/account-channels/{{account_channel_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["account-channels","{{account_channel_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d6d44482-eba6-4433-843c-25fc12e563ec","name":"Delete Account","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/account-channels/{{account_channel_uuid}}"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:27:54 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 18:27:54 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account Channel deleted successfully\"\n}"}],"_postman_id":"6cbf5796-be19-4a79-a1c8-cfd1770edfba"}],"id":"4e3e4df9-fa79-4e6d-8de8-34f88952284b","description":"<p>Coleção responsável pelos canais de uma conta.</p>\n<p>Um canal possui:</p>\n<ul>\n<li><p>Provedor (o produto a que se refere, seja WhatsApp, Instagram ou outro)</p>\n</li>\n<li><p>Integrador (A forma de integração no canal, por exemplo: on premisse, cloud api ou outro)</p>\n</li>\n</ul>\n<p>As configurações do canal podem ser internas a aplicação ou itens que dizem respeito exclusivamente ao integrador/provedor (as configurações externas)</p>\n<hr />\n<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'uid', 'name', 'status', 'provider', 'integrator', 'config', 'metadata'</code></p>\n<hr />\n","_postman_id":"4e3e4df9-fa79-4e6d-8de8-34f88952284b","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Applications","item":[{"name":"Tokens","item":[{"name":"Create Tokens","event":[{"listen":"test","script":{"id":"67eb22b8-c54e-4fc0-b0c4-5918e33315aa","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields - uuid and token\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.include.all.keys('uuid', 'token');","});","","","pm.test(\"UUID is in a valid UUID format\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.uuid).to.match(/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/);","});","","","pm.test(\"Token is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.token).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Token should not be empty\");","});","","","pm.test(\"Uuid and token are not null or empty strings\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.uuid).to.exist.and.to.not.be.empty;","    pm.expect(responseData.token).to.exist.and.to.not.be.empty;","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"6c72bffb-132e-4267-82ce-e0cbf9280041","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Application Token\"\n    },\n    \"expires_at\": \"2030-12-04\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/applications/{{application_uuid}}/tokens","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}","tokens"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c1c14d4e-e84c-4ad3-8e8b-a6fdd783110e","name":"Create Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"abilities\": [\n        \"*\"\n    ],\n    \"name\": \"Test\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/applications/{{application_uuid}}/tokens"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:30:44 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:30:44 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a812785-01fa-4b67-848c-10ad7acf23d9\",\n    \"token\": \"hgYebsiuqGQguYPLWiry8hAKGhdXycsvIoHyyN1L8eba77a0\"\n}"}],"_postman_id":"6c72bffb-132e-4267-82ce-e0cbf9280041"},{"name":"Update Token","id":"aa63cd8c-e6b9-4f32-bca4-dd24d6bbef20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"updated\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/tokens/{{token_uuid}}?include=tokenable_type,last_used_at","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["tokens","{{token_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"tokenable_type,last_used_at"}],"variable":[]}},"response":[{"id":"91dc0da1-63af-43df-a3d8-164373234237","name":"Create Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"abilities\": [\n        \"*\"\n    ],\n    \"name\": \"Test\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/applications/{{application_uuid}}/tokens"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:30:44 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:30:44 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a812785-01fa-4b67-848c-10ad7acf23d9\",\n    \"token\": \"hgYebsiuqGQguYPLWiry8hAKGhdXycsvIoHyyN1L8eba77a0\"\n}"}],"_postman_id":"aa63cd8c-e6b9-4f32-bca4-dd24d6bbef20"},{"name":"List Tokens","id":"589f2b16-72dd-4019-a7a9-e25ff9112a00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/applications/{{application_uuid}}/tokens?include=tokenable_type,last_used_at","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}","tokens"],"host":["{{host}}"],"query":[{"key":"include","value":"tokenable_type,last_used_at"}],"variable":[]}},"response":[],"_postman_id":"589f2b16-72dd-4019-a7a9-e25ff9112a00"},{"name":"Show Token","id":"1345ea7f-0236-43c0-9b8c-e497435a3e9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/tokens/{{token_uuid}}?include=tokenable_type,last_used_at","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["tokens","{{token_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"tokenable_type,last_used_at"}],"variable":[]}},"response":[],"_postman_id":"1345ea7f-0236-43c0-9b8c-e497435a3e9e"},{"name":"Delete Token","id":"30abdbde-ddda-4699-9155-a22366d4361a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/tokens/{{token_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["tokens","{{token_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"30abdbde-ddda-4699-9155-a22366d4361a"},{"name":"Delete All Tokens for App","id":"88512c1b-2acc-4ab2-93aa-c189b794ada3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/applications/{{application_uuid}}/tokens/delete-all?confirmation=Application Name","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}","tokens","delete-all"],"host":["{{host}}"],"query":[{"key":"confirmation","value":"Application Name"}],"variable":[]}},"response":[],"_postman_id":"88512c1b-2acc-4ab2-93aa-c189b794ada3"}],"id":"cbecafc3-e148-4cac-b30e-629fa8598af7","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'name', 'tokenable_type', 'tokenable_id', 'account', 'last_used_at', 'expires_at', 'metadata'</code></p>\n","_postman_id":"cbecafc3-e148-4cac-b30e-629fa8598af7","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Webhooks Subscription","item":[{"name":"Create Webhook","event":[{"listen":"test","script":{"id":"950b0aa8-3f67-4c88-9cea-ad752475fce8","exec":["","pm.test(\"Response status code is 201\", function () {","    pm.expect(pm.response.code).to.equal(201);","});","","","pm.test(\"Uuid and url fields are present and non-empty\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.uuid).to.exist.and.to.have.lengthOf.at.least(1, \"Uuid should not be empty\");","    pm.expect(responseData.url).to.exist.and.to.have.lengthOf.at.least(1, \"Url should not be empty\");","});","","","pm.test(\"Metadata object contains created_at and updated_at fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.metadata).to.be.an('object');","    pm.expect(responseData.metadata).to.include.all.keys('created_at', 'updated_at');","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"56eca504-1a7d-4b0b-833a-eac3b2e337e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"url\": \"https://webhook.site/d71a2cf4-287f-4aaa-a12a-d136af8e3db6\",\n    \"subscriptions\": [\"organizations\", \"chats\", \"messages\", \"contacts\", \"users\", \"applications\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/applications/{{application_uuid}}/webhooks?include=url,subscriptions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}","webhooks"],"host":["{{host}}"],"query":[{"key":"include","value":"url,subscriptions"}],"variable":[]}},"response":[{"id":"11fd745d-3b5d-4b72-8b9b-d460387da3af","name":"Create Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"abilities\": [\n        \"*\"\n    ],\n    \"name\": \"Test\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/applications/{{application_uuid}}/tokens"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:30:44 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:30:44 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a812785-01fa-4b67-848c-10ad7acf23d9\",\n    \"token\": \"hgYebsiuqGQguYPLWiry8hAKGhdXycsvIoHyyN1L8eba77a0\"\n}"}],"_postman_id":"56eca504-1a7d-4b0b-833a-eac3b2e337e0"},{"name":"Update Webhook","event":[{"listen":"test","script":{"id":"4c394774-b180-47b1-8744-340ce4c0afa1","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","pm.test(\"Subscriptions array is present and not empty\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.subscriptions).to.be.an('array');","});"],"type":"text/javascript","packages":{}}}],"id":"28d2bc66-6f5d-4599-803b-e5e58775d706","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"url\": \"https://webhook.site/aa2cab81-1c3e-4862-a6f4-8f57319045a6\",\n    \"subscriptions\": [\"organizations\", \"messages\", \"contacts\", \"chats\", \"users\", \"applications\", \"campaigns\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/webhooks/{{webhook_uuid}}?include=url,subscriptions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["webhooks","{{webhook_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"url,subscriptions"}],"variable":[]}},"response":[{"id":"6448b78c-faee-40b3-aad6-cb9218c56a31","name":"Create Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"abilities\": [\n        \"*\"\n    ],\n    \"name\": \"Test\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/applications/{{application_uuid}}/tokens"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:30:44 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:30:44 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a812785-01fa-4b67-848c-10ad7acf23d9\",\n    \"token\": \"hgYebsiuqGQguYPLWiry8hAKGhdXycsvIoHyyN1L8eba77a0\"\n}"}],"_postman_id":"28d2bc66-6f5d-4599-803b-e5e58775d706"},{"name":"List Webhooks","event":[{"listen":"test","script":{"id":"801ebbb6-317f-46af-89ed-2026b2c306bf","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response has the correct Content-Type header\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Data array is present and empty\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.exist.and.to.be.an('array');","});","","","pm.test(\"Links array is present and contains at least one object\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.links).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"8432f052-c21f-46e4-a91a-fd59446fdd56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/applications/{{application_uuid}}/webhooks?include=url,subscriptions,application","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}","webhooks"],"host":["{{host}}"],"query":[{"key":"include","value":"url,subscriptions,application"}],"variable":[]}},"response":[],"_postman_id":"8432f052-c21f-46e4-a91a-fd59446fdd56"},{"name":"Show Webhook","id":"36f010f5-0eff-4d4c-86a3-8fea621f3009","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/webhooks/{{webhook_uuid}}?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["webhooks","{{webhook_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[],"_postman_id":"36f010f5-0eff-4d4c-86a3-8fea621f3009"},{"name":"Delete Webhooks","id":"be985570-be9d-458e-a244-d6567955f19d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/webhooks/{{webhook_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["webhooks","{{webhook_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"be985570-be9d-458e-a244-d6567955f19d"}],"id":"7a2dfd5a-1389-4e84-b5ff-75ffcbcaaa48","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'url', 'subscriptions', 'application', 'metadata'</code></p>\n<hr />\n","_postman_id":"7a2dfd5a-1389-4e84-b5ff-75ffcbcaaa48","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Create App","event":[{"listen":"test","script":{"id":"9d1253ad-db17-4a7f-8484-c88de7e091fb","exec":["","pm.test(\"Response status code is 201\", function () {","    pm.expect(pm.response.to.have.status(201));","});","","","pm.test(\"UUID is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.uuid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"UUID should be a non-empty string\");","});","","","pm.test(\"Attachments array is present and has expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.attachments).to.exist;","    pm.expect(responseData.attachments).to.be.an('array');","    pm.expect(responseData.attachments).to.have.lengthOf(2);","});","",""],"type":"text/javascript","packages":{}}}],"id":"b97595bf-6990-4a6e-8e7e-2f4e45884b6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"visibility\": \"PUBLIC\", // <PUBLIC | PRIVATE>\n    \"attributes\": {\n        \"name\": \"App Test\",\n        \"description\": \"Autem quae vinco antiquus nihil verumtamen.\",\n        \"responsible\": \"John Doe\",\n        \"phone\": \"+55 11 98342-3423\",\n        \"email\": \"john.doe@developer.com\",\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        }\n    },\n    \"attachments\": [\n        {\n            \"name\": \"Main Photo\",\n            \"file_id\": \"{{file_id}}\"\n        },\n        {\n            \"name\": \"Photo of integration in chat\",\n            \"file_id\": \"{{file_id}}\"\n        }\n    ],\n    \"settings\": [\n        {\n            \"type\": \"link\",\n            \"name\": \"webhook\",\n            \"placeholder\": \"https://example.com/webhook\"\n        },\n        {\n            \"type\": \"bool\",\n            \"name\": \"XPTO\",\n            \"placeholder\": true\n        }\n    ],\n    \"resources\": [\n        {\n            \"type\": \"link\",\n            \"name\": \"Vendor\",\n            \"value\": \"https://google.com\"\n        },\n        {\n            \"type\": \"email\",\n            \"name\": \"Support\",\n            \"value\": \"support@google.com\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/applications?include=attributes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","applications"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"}],"variable":[]}},"response":[{"id":"4cda2382-b6a7-4036-b636-586aca1a108d","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"is_public\": true,\n    \"attributes\": {\n        \"name\": \"novo Runolfsson\",\n        \"description\": \"Autem quae vinco antiquus nihil verumtamen.\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/applications?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","applications"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 22:53:09 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 22:53:09 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a811a13-8029-4e51-9d22-707b4dc469f1\"\n}"},{"id":"8fc82710-00c3-4a44-a589-e1b85ea07bd7","name":"success with all properties","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"is_public\": true,\n    \"attributes\": {\n        \"name\": \"novo Runolfsson\",\n        \"description\": \"Autem quae vinco antiquus nihil verumtamen.\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/applications?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","applications"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 22:53:29 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 22:53:29 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a811a32-56e8-4a18-9ef5-7b187011aaed\",\n    \"status\": \"IN_REVIEW\",\n    \"is_public\": true,\n    \"attributes\": {\n        \"name\": \"novo Runolfsson\",\n        \"description\": \"Autem quae vinco antiquus nihil verumtamen.\"\n    },\n    \"metadata\": {\n        \"created_at\": \"2023-10-31T22:53:29.000000Z\",\n        \"updated_at\": \"2023-10-31T22:53:29.000000Z\"\n    }\n}"}],"_postman_id":"b97595bf-6990-4a6e-8e7e-2f4e45884b6a"},{"name":"List Apps from Account","event":[{"listen":"test","script":{"id":"16630e5c-2279-4690-9a5f-f578bcbf42df","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response Content-Type is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Each data object has a non-empty uuid and status field\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.data).to.be.an('array');","    responseData.data.forEach(function (dataObject) {","        pm.expect(dataObject.uuid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Uuid should not be empty\");","        pm.expect(dataObject.status).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Status should not be empty\");","    });","});","","pm.test(\"Should contains links array\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.links).to.be.an('array');","});","",""],"type":"text/javascript","packages":{}}}],"id":"82e020c9-3ef2-446e-8e19-1b03db922e87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/applications?include=attributes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","applications"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"}],"variable":[]}},"response":[{"id":"7e7f5a5e-6904-478a-ac51-b4b4aef379ae","name":"List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/applications?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","applications"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 22:53:56 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 22:53:56 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9a811a13-8029-4e51-9d22-707b4dc469f1\",\n            \"status\": \"IN_REVIEW\",\n            \"is_public\": true,\n            \"attributes\": {\n                \"name\": \"novo Runolfsson\",\n                \"description\": \"Autem quae vinco antiquus nihil verumtamen.\"\n            },\n            \"metadata\": {\n                \"created_at\": \"2023-10-31T22:53:09.000000Z\",\n                \"updated_at\": \"2023-10-31T22:53:09.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9a811a32-56e8-4a18-9ef5-7b187011aaed\",\n            \"status\": \"IN_REVIEW\",\n            \"is_public\": true,\n            \"attributes\": {\n                \"name\": \"novo Runolfsson\",\n                \"description\": \"Autem quae vinco antiquus nihil verumtamen.\"\n            },\n            \"metadata\": {\n                \"created_at\": \"2023-10-31T22:53:29.000000Z\",\n                \"updated_at\": \"2023-10-31T22:53:29.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/applications?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/applications?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/applications?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/applications\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 2,\n        \"total\": 2\n    }\n}"}],"_postman_id":"82e020c9-3ef2-446e-8e19-1b03db922e87"},{"name":"Show specific App","id":"ae0df15d-35a1-46a7-94be-dc0bfd4e84ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/applications/{{application_uuid}}?include=attributes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"}],"variable":[]}},"response":[{"id":"9b128394-b78c-43c7-a87e-3a87f453980f","name":"Show","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/applications/{{application_uuid}}?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","applications","{{application_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:13:06 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:13:06 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"53","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a811a13-8029-4e51-9d22-707b4dc469f1\",\n    \"status\": \"IN_REVIEW\",\n    \"is_public\": true,\n    \"attributes\": {\n        \"name\": \"Novo Runolfsson\",\n        \"description\": \"Autem quae vinco antiquus nihil verumtamen.\"\n    },\n    \"metadata\": {\n        \"created_at\": \"2023-10-31T22:53:09.000000Z\",\n        \"updated_at\": \"2023-10-31T23:10:01.000000Z\"\n    }\n}"}],"_postman_id":"ae0df15d-35a1-46a7-94be-dc0bfd4e84ca"},{"name":"Update App","event":[{"listen":"test","script":{"id":"f48fa2e0-08b6-4093-b9a8-7211d3d1f84b","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Metadata contains created_at and updated_at fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.metadata).to.be.an('object');","    pm.expect(responseData.metadata).to.include.all.keys('created_at', 'updated_at');","});","",""],"type":"text/javascript"}}],"id":"819e8c2b-b661-4bdb-8e02-a6d78e5f681c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"App updated\",\n        \"description\": \"Autem quae vinco antiquus nihil verumtamen.\",\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/applications/{{application_uuid}}?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"957105f8-89f4-47ef-b226-8ef29a2e5066","name":"Update","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"is_public\": false,\n    \"attributes\": {\n        \"name\": \"Novo Runolfsson\",\n        \"description\": \"Autem quae vinco antiquus nihil verumtamen.\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/applications/{{application_uuid}}?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","applications","{{application_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:12:12 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:12:12 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a811a13-8029-4e51-9d22-707b4dc469f1\",\n    \"status\": \"IN_REVIEW\",\n    \"is_public\": true,\n    \"attributes\": {\n        \"name\": \"Novo Runolfsson\",\n        \"description\": \"Autem quae vinco antiquus nihil verumtamen.\"\n    },\n    \"metadata\": {\n        \"created_at\": \"2023-10-31T22:53:09.000000Z\",\n        \"updated_at\": \"2023-10-31T23:10:01.000000Z\"\n    }\n}"}],"_postman_id":"819e8c2b-b661-4bdb-8e02-a6d78e5f681c"},{"name":"Delete App","id":"e7c63a5d-1b54-4d3b-8199-006161ea690a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/applications/{{application_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3cf0daec-1563-4a3a-8ae7-7a42a5010541","name":"Not Found","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/accounts/{{account_uuid}}/applications/{{application_uuid}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:19:58 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 23:19:58 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Application not found\"\n}"}],"_postman_id":"e7c63a5d-1b54-4d3b-8199-006161ea690a"},{"name":"Change app Visibility","event":[{"listen":"test","script":{"id":"2de6f087-4d31-4ba7-b641-4f7a1153c77d","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required Content-Type header set to application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Message is not empty\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.message).to.exist.and.to.not.be.empty;","});","","","pm.test(\"Message is a non-empty string\", function () {","  const responseData = pm.response.json();","","  pm.expect(responseData.message).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Message should not be empty\");","});","","","pm.test(\"Message is 'Application PUBLIC' if present in the response\", function () {","    const responseData = pm.response.json();","","    if (responseData.message) {","        pm.expect(responseData.message).to.equal(\"Application PUBLIC\");","    }","});","",""],"type":"text/javascript"}}],"id":"bbbf5643-8900-476d-874c-695070749c9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"visibility\": \"PUBLIC\" // <PUBLIC | PRIVATE>\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/applications/{{application_uuid}}/publication","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}","publication"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3fa7fd35-def9-436d-be85-8a7b94bf390b","name":"Success","originalRequest":{"method":"POST","header":[],"url":"{{host}}/accounts/{{account_uuid}}/applications/{{application_uuid}}/visibility-public"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 01 Nov 2023 00:49:28 GMT","enabled":true},{"key":"Date","value":"Wed, 01 Nov 2023 00:49:28 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Application PUBLIC\"\n}"}],"_postman_id":"bbbf5643-8900-476d-874c-695070749c9b"},{"name":"Change App Status","id":"421c101f-9ce1-481f-bf42-be3eab11ebbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"INACTIVE\" // <INACTIVE | ACTIVE | DRAFT | IN_REVIEW | SUSPENDED>\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/applications/{{application_uuid}}/status","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}","status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"845aa738-6809-4688-9613-ac1b04750c0c","name":"Success","originalRequest":{"method":"POST","header":[],"url":"{{host}}/accounts/{{account_uuid}}/applications/{{application_uuid}}/status-inactive"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 01 Nov 2023 00:50:25 GMT","enabled":true},{"key":"Date","value":"Wed, 01 Nov 2023 00:50:25 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Application INACTIVE\"\n}"}],"_postman_id":"421c101f-9ce1-481f-bf42-be3eab11ebbe"},{"name":"Subscribe Account to App","event":[{"listen":"test","script":{"id":"748ca3b3-1eee-4357-aaa7-e9fdd346275b","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response has the required Content-Type header with value application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Message is a non-empty string\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.message).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Message should not be empty\");","});","","","pm.test(\"Response includes the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message).to.exist;","});","","","pm.test(\"Message is in the expected format\", function () {","  const responseData = pm.response.json();","","  pm.expect(responseData.message).to.be.a('string');","});","",""],"type":"text/javascript"}}],"id":"e96d04c9-2bd9-4212-833c-4666bb5f5db9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"account_uuid\": \"{{account_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/applications/{{application_uuid}}/subscribe?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}","subscribe"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[],"_postman_id":"e96d04c9-2bd9-4212-833c-4666bb5f5db9"},{"name":"Unsubscribe Account to App","id":"220ff615-cf82-4b19-8834-8cdc488b9e49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"account_uuid\": \"{{account_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/applications/{{application_uuid}}/unsubscribe?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["applications","{{application_uuid}}","unsubscribe"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"982b1c1e-a57d-4b0e-8558-ad788ee56841","name":"Success","originalRequest":{"method":"POST","header":[],"url":"{{host}}/accounts/{{account_uuid}}/applications/{{application_uuid}}/status-inactive"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 01 Nov 2023 00:50:25 GMT","enabled":true},{"key":"Date","value":"Wed, 01 Nov 2023 00:50:25 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Application INACTIVE\"\n}"}],"_postman_id":"220ff615-cf82-4b19-8834-8cdc488b9e49"}],"id":"b87d74bd-98b1-4db0-ab5b-9e1eb5258a23","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'status', 'visibility', 'attributes', 'roles', 'permissions', 'attachments', 'resources', 'settings', 'accounts', 'metadata',</code></p>\n<hr />\n","_postman_id":"b87d74bd-98b1-4db0-ab5b-9e1eb5258a23","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Users","item":[{"name":"Create an user","id":"526a6e22-d82f-4ca5-867a-7258e9acf11c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"ONLINE\",\n    \"email\": \"45@root.com\",\n    \"password\": \"root1root2\",\n    \"attributes\": {\n        \"name\": \"Kenzi Black\",\n        \"doc\": \"405-88-3640\",\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        },\n        \"phone\": \"(489) 330-2385\"\n    },\n    \"roles\": [\n        {\n            \"uuid\": \"{{role_uuid}}\" // or \"name\" followed by ENUM\n            // \"name\": \"MANAGER\"\n        },\n        {\n            // \"uuid\": \"{{role_uuid}}\" // or \"name\" followed by ENUM\n            \"name\": \"MANAGER\"\n        }\n    ],\n    \"teams\": [\n        {\n            \"uuid\": \"{{team_uuid}}\"\n        }\n    ],\n    \"account_channels\": [\n        {\n            \"uuid\": \"{{account_channel_uuid}}\"\n        },\n        {\n            \"uuid\": \"9cdc3d17-1221-443b-868f-1b7231f4ee42\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"Do lado da Drogasil\"\n        },\n        {\n            \"type\": \"Headquarter\",\n            \"country\": \"France\",\n            \"postal_code\": \"1234\",\n            \"state\": \"Paris\",\n            \"city\": \"Louis Vitton\",\n            \"street\": \"Av C\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Louis 14\",\n            \"complement\": \"predie\",\n            \"reference\": \"au lade de la tour eiffel\"\n        },\n        {\n            \"type\": \"Headquarter\",\n            \"country\": \"United States\",\n            \"postal_code\": \"1234\",\n            \"state\": \"New York\",\n            \"city\": \"New York\",\n            \"street\": \"Av C\",\n            \"number\": \"19\",\n            \"neighborhood\": \"new\",\n            \"complement\": \"buildin state\",\n            \"reference\": \"next to the central park\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/users?include=status,status_of_service,email,attributes,roles,permissions,active_account,accounts,account_channels,teams,addresses,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","users"],"host":["{{host}}"],"query":[{"key":"include","value":"status,status_of_service,email,attributes,roles,permissions,active_account,accounts,account_channels,teams,addresses,metadata"}],"variable":[]}},"response":[{"id":"7660fe00-cd88-4a55-b4bf-7cad46e6f95f","name":"Create with addresses","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"3@root.com\",\n    \"password\": \"root1root2\",\n    \"data\": {\n        \"name\": \"Kenzi Black\",\n        \"doc\": \"405-88-3636\",\n        \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n        \"phone\": \"(489) 330-2385\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"Do lado da Drogasil\"\n        },\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"FRA\",\n            \"country\": \"France\",\n            \"postal_code\": \"1234\",\n            \"state\": \"Paris\",\n            \"city\": \"Louis Vitton\",\n            \"street\": \"Av C\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Louis 14\",\n            \"complement\": \"predie\",\n            \"reference\": \"au lade de la tour eiffel\"\n        },\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"USA\",\n            \"country\": \"United States\",\n            \"postal_code\": \"1234\",\n            \"state\": \"New York\",\n            \"city\": \"New York\",\n            \"street\": \"Av C\",\n            \"number\": \"19\",\n            \"neighborhood\": \"new\",\n            \"complement\": \"buildin state\",\n            \"reference\": \"next to the central park\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/api/users?include=*","host":["{{host}}"],"path":["api","users"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Mon, 23 Oct 2023 16:01:20 GMT","enabled":true},{"key":"Date","value":"Mon, 23 Oct 2023 16:01:20 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"9a706eec-b7a2-441d-9a31-b2213a9cc78b\",\n    \"email\": \"3@root.com\",\n    \"status\": \"OFFLINE\",\n    \"status_of_service\": \"UNAVAILABLE\",\n    \"data\": {\n        \"name\": \"Kenzi Black\",\n        \"doc\": \"405-88-3636\",\n        \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n        \"phone\": \"(489) 330-2385\"\n    },\n    \"addresses\": [\n        {\n            \"id\": 13,\n            \"addressable_id\": \"9a706eec-b7a2-441d-9a31-b2213a9cc78b\",\n            \"addressable_type\": \"Domains\\\\Users\\\\Models\\\\User\",\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"Do lado da Drogasil\",\n            \"created_at\": \"2023-10-23T16:01:20.000000Z\",\n            \"updated_at\": \"2023-10-23T16:01:20.000000Z\"\n        },\n        {\n            \"id\": 14,\n            \"addressable_id\": \"9a706eec-b7a2-441d-9a31-b2213a9cc78b\",\n            \"addressable_type\": \"Domains\\\\Users\\\\Models\\\\User\",\n            \"type\": \"Headquarter\",\n            \"country_code\": \"FRA\",\n            \"country\": \"France\",\n            \"postal_code\": \"1234\",\n            \"state\": \"Paris\",\n            \"city\": \"Louis Vitton\",\n            \"street\": \"Av C\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Louis 14\",\n            \"complement\": \"predie\",\n            \"reference\": \"au lade de la tour eiffel\",\n            \"created_at\": \"2023-10-23T16:01:20.000000Z\",\n            \"updated_at\": \"2023-10-23T16:01:20.000000Z\"\n        },\n        {\n            \"id\": 15,\n            \"addressable_id\": \"9a706eec-b7a2-441d-9a31-b2213a9cc78b\",\n            \"addressable_type\": \"Domains\\\\Users\\\\Models\\\\User\",\n            \"type\": \"Headquarter\",\n            \"country_code\": \"USA\",\n            \"country\": \"United States\",\n            \"postal_code\": \"1234\",\n            \"state\": \"New York\",\n            \"city\": \"New York\",\n            \"street\": \"Av C\",\n            \"number\": \"19\",\n            \"neighborhood\": \"new\",\n            \"complement\": \"buildin state\",\n            \"reference\": \"next to the central park\",\n            \"created_at\": \"2023-10-23T16:01:20.000000Z\",\n            \"updated_at\": \"2023-10-23T16:01:20.000000Z\"\n        }\n    ],\n    \"metadata\": {\n        \"deprecated_user_id\": \"9a706eec-b7a2-441d-9a31-b2213a9cc78b\",\n        \"can_provide_service\": \"0\",\n        \"created_at\": \"2023-10-23T16:01:20.000000Z\",\n        \"updated_at\": \"2023-10-23T16:01:20.000000Z\"\n    }\n}"}],"_postman_id":"526a6e22-d82f-4ca5-867a-7258e9acf11c"},{"name":"Show specific user","event":[{"listen":"test","script":{"id":"fdb4437e-2c9f-4a6c-88d9-874f4b3650a2","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response Content-Type is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Attributes object contains required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.attributes).to.be.an('object');","    pm.expect(responseData.attributes).to.include.all.keys('name', 'email', 'phone', 'doc', 'picture');","});","","","pm.test(\"Roles array contains objects with uuid, name, and label properties\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.roles).to.be.an('array').that.is.not.empty;","    responseData.roles.forEach(function(role) {","        pm.expect(role).to.have.property('uuid').that.is.a('string');","        pm.expect(role).to.have.property('name').that.is.a('string');","        pm.expect(role).to.have.property('label').that.is.a('string');","    });","});","",""],"type":"text/javascript"}}],"id":"d48bca20-c626-463f-843b-55f262fb75c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host}}/users/{{user_uuid}}?include=status,status_of_service,email,attributes,roles,permissions,active_account,accounts,teams,addresses,metadata","urlObject":{"path":["users","{{user_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"status,status_of_service,email,attributes,roles,permissions,active_account,accounts,teams,addresses,metadata"}],"variable":[]}},"response":[],"_postman_id":"d48bca20-c626-463f-843b-55f262fb75c5"},{"name":"List all users from an account","event":[{"listen":"test","script":{"id":"5ef970a7-b680-4677-aa24-9f70e88d09d4","exec":["pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","pm.test(\"Links array contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.links).to.be.an('array').that.is.not.empty;","});","",""],"type":"text/javascript"}}],"id":"bf0e8637-6fb7-4c3d-985d-e55e2c03062b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/users?include=status,status_of_service,email,attributes,roles,permissions,active_account,accounts,teams,addresses,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","users"],"host":["{{host}}"],"query":[{"key":"include","value":"status,status_of_service,email,attributes,roles,permissions,active_account,accounts,teams,addresses,metadata"}],"variable":[]}},"response":[{"id":"b5650cb9-865a-47d6-ba41-522b9554fd0e","name":"List with sort and search","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/api/users?include=data&search=roo&order=-available_service,-created_at","host":["{{host}}"],"path":["api","users"],"query":[{"key":"include","value":"data"},{"key":"search","value":"roo"},{"key":"order","value":"-available_service,-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Wed, 25 Oct 2023 22:23:02 GMT","enabled":true},{"key":"Date","value":"Wed, 25 Oct 2023 22:23:02 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"53","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9a745cec-e724-424c-b28a-db65e1954b5e\",\n            \"status\": \"OFFLINE\",\n            \"status_of_service\": \"AVAILABLE\",\n            \"data\": {\n                \"name\": \"Kenzi Black\",\n                \"email\": \"3@root.com\",\n                \"doc\": \"405-88-3636\",\n                \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n                \"phone\": \"(489) 330-2385\"\n            },\n            \"metadata\": {\n                \"deprecated_user_id\": 102,\n                \"can_provide_service\": \"1\",\n                \"created_at\": \"2023-10-25T14:54:19.000000Z\",\n                \"updated_at\": \"2023-10-25T22:22:09.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9a745d12-9763-4149-b5b7-cd17493d7096\",\n            \"status\": \"OFFLINE\",\n            \"status_of_service\": \"UNAVAILABLE\",\n            \"data\": {\n                \"name\": \"Kenzi Black\",\n                \"email\": \"4@root.com\",\n                \"doc\": \"405-88-3636\",\n                \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n                \"phone\": \"(489) 330-2385\"\n            },\n            \"metadata\": {\n                \"deprecated_user_id\": 104,\n                \"can_provide_service\": \"0\",\n                \"created_at\": \"2023-10-25T14:54:43.000000Z\",\n                \"updated_at\": \"2023-10-25T14:54:43.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"0d61d249-84a7-4b86-88cd-4c0ca10222f4\",\n            \"status\": \"OFFLINE\",\n            \"status_of_service\": \"UNAVAILABLE\",\n            \"data\": {\n                \"name\": \"Seu Jorge\",\n                \"email\": \"root@root.com\",\n                \"doc\": \"701-88-3636\",\n                \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n                \"phone\": \"(489) 330-2385\"\n            },\n            \"metadata\": {\n                \"deprecated_user_id\": 1,\n                \"can_provide_service\": \"0\",\n                \"created_at\": \"2023-08-29T20:53:40.000000Z\",\n                \"updated_at\": \"2023-10-25T22:23:00.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://localhost:8000/api/users?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://localhost:8000/api/users?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://localhost:8000/api/users?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://localhost:8000/api/users\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"},{"id":"ea499840-b0c2-4071-a410-d06e3f8f8303","name":"List paginating","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/api/users?include=data&search=roo&order=-available_service,-created_at&per_page=2&page=1","host":["{{host}}"],"path":["api","users"],"query":[{"key":"include","value":"data"},{"key":"search","value":"roo"},{"key":"order","value":"-available_service,-created_at"},{"key":"per_page","value":"2"},{"key":"page","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Wed, 25 Oct 2023 22:23:51 GMT","enabled":true},{"key":"Date","value":"Wed, 25 Oct 2023 22:23:51 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9a745cec-e724-424c-b28a-db65e1954b5e\",\n            \"status\": \"OFFLINE\",\n            \"status_of_service\": \"AVAILABLE\",\n            \"data\": {\n                \"name\": \"Kenzi Black\",\n                \"email\": \"3@root.com\",\n                \"doc\": \"405-88-3636\",\n                \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n                \"phone\": \"(489) 330-2385\"\n            },\n            \"metadata\": {\n                \"deprecated_user_id\": 102,\n                \"can_provide_service\": \"1\",\n                \"created_at\": \"2023-10-25T14:54:19.000000Z\",\n                \"updated_at\": \"2023-10-25T22:22:09.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9a745d12-9763-4149-b5b7-cd17493d7096\",\n            \"status\": \"OFFLINE\",\n            \"status_of_service\": \"UNAVAILABLE\",\n            \"data\": {\n                \"name\": \"Kenzi Black\",\n                \"email\": \"4@root.com\",\n                \"doc\": \"405-88-3636\",\n                \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n                \"phone\": \"(489) 330-2385\"\n            },\n            \"metadata\": {\n                \"deprecated_user_id\": 104,\n                \"can_provide_service\": \"0\",\n                \"created_at\": \"2023-10-25T14:54:43.000000Z\",\n                \"updated_at\": \"2023-10-25T14:54:43.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://localhost:8000/api/users?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": \"http://localhost:8000/api/users?page=2\",\n            \"label\": \"2\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://localhost:8000/api/users?page=2\",\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://localhost:8000/api/users?page=1\",\n        \"from\": 1,\n        \"last_page\": 2,\n        \"last_page_url\": \"http://localhost:8000/api/users?page=2\",\n        \"next_page_url\": \"http://localhost:8000/api/users?page=2\",\n        \"path\": \"http://localhost:8000/api/users\",\n        \"per_page\": 2,\n        \"prev_page_url\": null,\n        \"to\": 2,\n        \"total\": 3\n    }\n}"},{"id":"db911137-e5fc-4dae-963e-724c3a899c7c","name":"Search user","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/users?include=*&search=root&status=OFFLINE&status_of_service=AVAILABLE","host":["{{host}}"],"path":["accounts","{{account_uuid}}","users"],"query":[{"key":"include","value":"*"},{"key":"search","value":"root"},{"key":"status","value":"OFFLINE"},{"key":"status_of_service","value":"AVAILABLE"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 19 Dec 2023 14:46:25 GMT","enabled":true},{"key":"Date","value":"Tue, 19 Dec 2023 14:46:25 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"0d61d249-84a7-4b86-88cd-4c0ca10222f4\",\n            \"status\": \"OFFLINE\",\n            \"status_of_service\": \"AVAILABLE\",\n            \"attributes\": {\n                \"name\": \"Root\",\n                \"email\": \"root@root.com\",\n                \"picture\": {\n                    \"url\": null\n                }\n            },\n            \"addresses\": [],\n            \"active_account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"attributes\": {\n                    \"name\": \"Root\",\n                    \"doc\": \"00.000.000/0001-00\",\n                    \"segment\": \"Serviços de Engenharia\",\n                    \"picture\": {\n                        \"url\": \"\"\n                    }\n                }\n            },\n            \"accounts\": [\n                {\n                    \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                    \"attributes\": {\n                        \"name\": \"Root\",\n                        \"doc\": \"00.000.000/0001-00\",\n                        \"segment\": \"Serviços de Engenharia\",\n                        \"picture\": {\n                            \"url\": \"\"\n                        }\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_user_id\": 1,\n                \"created_at\": \"2023-08-29T20:53:40.000000Z\",\n                \"updated_at\": \"2023-12-19T13:41:20.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/users?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/users?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/users?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/users\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 1,\n        \"total\": 1\n    }\n}"}],"_postman_id":"bf0e8637-6fb7-4c3d-985d-e55e2c03062b"},{"name":"Update User","event":[{"listen":"test","script":{"id":"cc522bb1-06d6-45f4-b17d-5686781e6a65","exec":["pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","pm.test(\"Response Content-Type is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","pm.test(\"Uuid is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.uuid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Uuid should be a non-empty string\");","});","","pm.test(\"Status is a non-empty string with valid value\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.status).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Status should be a non-empty string\");","    pm.expect(responseData.status).to.match(/^(ONLINE|OFFLINE|BUSY|AWAY)$/);","});","","pm.test(\"Status_of_service is a non-empty string with valid value\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.status_of_service).to.be.a('string');","    pm.expect(responseData.status_of_service).to.exist.and.to.not.be.empty;","    pm.expect(['AVAILABLE', 'UNAVAILABLE']).to.include(responseData.status_of_service);","});"],"type":"text/javascript"}}],"id":"04dc8ac7-8ef6-41c0-895a-ebbc9f1c2d34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"teste@root\",\n    \"password\": \"#Change1Password\",\n    \"attributes\": {\n        \"name\": \"Seu Jorge\",\n        \"doc\": \"701-588-3638\",\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        },\n        \"phone\": \"(55) 11 3330-2386\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}?include=status,status_of_service,email,attributes,roles,permissions,active_account,accounts,teams,addresses,metadata","description":"<p>Permite alterar todos os dados do usuário.</p>\n<p>Basta referenciar os parâmetros a serem alterados. O que não deseja alterar, ignore:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"name\": \"Root\",<br />}<br />} </p>\n</blockquote>\n<p>Se deseja apagar algum dado, referencie-o como vazio. Valores nulos serão ignorados:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"doc\": \"\",<br />}<br />}</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["users","{{user_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"status,status_of_service,email,attributes,roles,permissions,active_account,accounts,teams,addresses,metadata"}],"variable":[]}},"response":[{"id":"b7d416ca-4112-4d78-b1c6-1d098dd11a76","name":"Update","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"data\": {\n        \"name\": \"Jorge\",\n        \"doc\": \"1234\",\n        \"picture\": \"https://randomuser.me/api/portraits/men/23.jpg\",\n        \"phone\": \"98394839483\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/api/users/{{user_id}}?include=data","host":["{{host}}"],"path":["api","users","{{user_id}}"],"query":[{"key":"include","value":"data"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Sun, 22 Oct 2023 14:10:18 GMT","enabled":true},{"key":"Date","value":"Sun, 22 Oct 2023 14:10:18 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.3.0RC1","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"54","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"0d61d249-84a7-4b86-88cd-4c0ca10222f4\",\n    \"status\": \"OFFLINE\",\n    \"status_of_service\": \"AVAILABLE\",\n    \"data\": {\n        \"name\": \"Jorge\",\n        \"doc\": \"1234\",\n        \"picture\": \"https://randomuser.me/api/portraits/men/23.jpg\",\n        \"phone\": \"98394839483\"\n    },\n    \"metadata\": {\n        \"deprecated_user_id\": \"0d61d249-84a7-4b86-88cd-4c0ca10222f4\",\n        \"can_provide_service\": \"1\",\n        \"created_at\": \"2023-08-29T20:53:40.000000Z\",\n        \"updated_at\": \"2023-10-22T14:09:25.000000Z\"\n    }\n}"}],"_postman_id":"04dc8ac7-8ef6-41c0-895a-ebbc9f1c2d34"},{"name":"Change User Status of Service","event":[{"listen":"test","script":{"id":"5b96f9de-6fe2-4b49-81da-23cf81365219","exec":["","pm.test(\"Response status code is 202\", function () {","    pm.expect(pm.response.code).to.equal(202);","});","","","pm.test(\"Response has the required message field\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message).to.exist.and.to.be.a('string');","});","","","pm.test(\"Message is a non-empty string\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.message).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Message should not be empty\");","});","","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(300);","});","",""],"type":"text/javascript"}}],"id":"064c2daf-ea96-42a7-8917-24f35694ada4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status_of_service\": \"AVAILABLE\" // <AVAILABLE | UNAVAILABLE>\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/service","description":"<p>Permite alterar todos os dados do usuário.</p>\n<p>Basta referenciar os parâmetros a serem alterados. O que não deseja alterar, ignore:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"name\": \"Root\",<br />}<br />} </p>\n</blockquote>\n<p>Se deseja apagar algum dado, referencie-o como vazio. Valores nulos serão ignorados:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"doc\": \"\",<br />}<br />}</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["users","{{user_uuid}}","service"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"064c2daf-ea96-42a7-8917-24f35694ada4"},{"name":"Get Active Account","id":"77a3838c-501f-4134-b274-c7f579431200","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/users/{{user_uuid}}/active-account","description":"<p>Permite alterar todos os dados do usuário.</p>\n<p>Basta referenciar os parâmetros a serem alterados. O que não deseja alterar, ignore:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"name\": \"Root\",<br />}<br />} </p>\n</blockquote>\n<p>Se deseja apagar algum dado, referencie-o como vazio. Valores nulos serão ignorados:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"doc\": \"\",<br />}<br />}</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["users","{{user_uuid}}","active-account"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"77a3838c-501f-4134-b274-c7f579431200"},{"name":"Change Active Account","id":"46642cb9-4a95-49f5-8a96-efbb687d3ffe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"account_uuid\": \"{{account_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/active-account","description":"<p>Permite alterar todos os dados do usuário.</p>\n<p>Basta referenciar os parâmetros a serem alterados. O que não deseja alterar, ignore:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"name\": \"Root\",<br />}<br />} </p>\n</blockquote>\n<p>Se deseja apagar algum dado, referencie-o como vazio. Valores nulos serão ignorados:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"doc\": \"\",<br />}<br />}</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["users","{{user_uuid}}","active-account"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"46642cb9-4a95-49f5-8a96-efbb687d3ffe"},{"name":"Add Account Channel to User","event":[{"listen":"test","script":{"id":"ec033688-dd98-4af6-89ca-4fbcc87fb77b","exec":["","pm.test(\"Response status code is 202\", function () {","    pm.expect(pm.response.code).to.equal(202);","});","","","pm.test(\"Response has the required field 'message'\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData).to.have.property('message');","});","","","pm.test(\"Message is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");","});","","","pm.test(\"Message is equal to 'Role attached'\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.message).to.equal(\"Role attached\");","});","","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","",""],"type":"text/javascript","packages":{}}}],"id":"ec5c5b5c-5a8d-48c0-9fb8-9cd2dcea5db9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"account_channel_uuid\": \"{{account_channel_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/add-account-channel","description":"<p>Permite alterar todos os dados do usuário.</p>\n<p>Basta referenciar os parâmetros a serem alterados. O que não deseja alterar, ignore:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"name\": \"Root\",<br />}<br />} </p>\n</blockquote>\n<p>Se deseja apagar algum dado, referencie-o como vazio. Valores nulos serão ignorados:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"doc\": \"\",<br />}<br />}</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["users","{{user_uuid}}","add-account-channel"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"5fc7931f-1fdf-41b1-9f8b-49e173245f33","name":"Attach role success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"role_uuid\": \"{{role_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/attach-role"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Fri, 29 Dec 2023 20:36:19 GMT","enabled":true},{"key":"Date","value":"Fri, 29 Dec 2023 20:36:19 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"omniapi_session=ydTsdCvdV9ftO4ELk13TSG20CSvqWa1UWwgnCC54; expires=Fri, 29 Dec 2023 22:36:19 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Role attached\"\n}"}],"_postman_id":"ec5c5b5c-5a8d-48c0-9fb8-9cd2dcea5db9"},{"name":"Remove Account Channel from User","event":[{"listen":"test","script":{"id":"ec033688-dd98-4af6-89ca-4fbcc87fb77b","exec":["","pm.test(\"Response status code is 202\", function () {","    pm.expect(pm.response.code).to.equal(202);","});","","","pm.test(\"Response has the required field 'message'\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData).to.have.property('message');","});","","","pm.test(\"Message is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");","});","","","pm.test(\"Message is equal to 'Role attached'\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.message).to.equal(\"Role attached\");","});","","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","",""],"type":"text/javascript","packages":{}}}],"id":"a4a7bdbc-d576-4a22-8efc-c7971b512539","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"account_channel_uuid\": \"{{account_channel_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/remove-account-channel","description":"<p>Permite alterar todos os dados do usuário.</p>\n<p>Basta referenciar os parâmetros a serem alterados. O que não deseja alterar, ignore:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"name\": \"Root\",<br />}<br />} </p>\n</blockquote>\n<p>Se deseja apagar algum dado, referencie-o como vazio. Valores nulos serão ignorados:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"doc\": \"\",<br />}<br />}</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["users","{{user_uuid}}","remove-account-channel"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"11cda033-c400-4bcf-987f-ceac3784bbcf","name":"Attach role success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"role_uuid\": \"{{role_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/attach-role"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Fri, 29 Dec 2023 20:36:19 GMT","enabled":true},{"key":"Date","value":"Fri, 29 Dec 2023 20:36:19 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"omniapi_session=ydTsdCvdV9ftO4ELk13TSG20CSvqWa1UWwgnCC54; expires=Fri, 29 Dec 2023 22:36:19 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Role attached\"\n}"}],"_postman_id":"a4a7bdbc-d576-4a22-8efc-c7971b512539"},{"name":"Add Role to User","event":[{"listen":"test","script":{"id":"ec033688-dd98-4af6-89ca-4fbcc87fb77b","exec":["","pm.test(\"Response status code is 202\", function () {","    pm.expect(pm.response.code).to.equal(202);","});","","","pm.test(\"Response has the required field 'message'\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData).to.have.property('message');","});","","","pm.test(\"Message is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");","});","","","pm.test(\"Message is equal to 'Role attached'\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.message).to.equal(\"Role attached\");","});","","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"d99a8472-bab1-4ca8-a1f1-74357ccf6422","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"role_uuid\": \"{{role_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/attach-role","description":"<p>Permite alterar todos os dados do usuário.</p>\n<p>Basta referenciar os parâmetros a serem alterados. O que não deseja alterar, ignore:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"name\": \"Root\",<br />}<br />} </p>\n</blockquote>\n<p>Se deseja apagar algum dado, referencie-o como vazio. Valores nulos serão ignorados:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"doc\": \"\",<br />}<br />}</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["users","{{user_uuid}}","attach-role"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b0cb709a-b81c-4b4c-84ac-5e0e153c2cf7","name":"Attach role success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"role_uuid\": \"{{role_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/attach-role"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Fri, 29 Dec 2023 20:36:19 GMT","enabled":true},{"key":"Date","value":"Fri, 29 Dec 2023 20:36:19 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"omniapi_session=ydTsdCvdV9ftO4ELk13TSG20CSvqWa1UWwgnCC54; expires=Fri, 29 Dec 2023 22:36:19 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Role attached\"\n}"}],"_postman_id":"d99a8472-bab1-4ca8-a1f1-74357ccf6422"},{"name":"Remove Role from User","event":[{"listen":"test","script":{"id":"20176095-246c-4ea1-8ea4-6b90939528e7","exec":["","pm.test(\"Response status code is 202\", function () {","    pm.expect(pm.response.code).to.eql(202);","});","","","pm.test(\"Response has the required field 'message'\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message).to.exist;","});","","","pm.test(\"Message is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.message).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Message should not be empty\");","});","","","pm.test(\"Message is equal to 'Role detached'\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData.message).to.equal(\"Role detached\");","});","","","pm.test(\"Content-Type is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"5916ef3a-c4f8-4433-93ec-6e9bf7008573","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"role_uuid\": \"{{role_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/detach-role","description":"<p>Permite alterar todos os dados do usuário.</p>\n<p>Basta referenciar os parâmetros a serem alterados. O que não deseja alterar, ignore:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"name\": \"Root\",<br />}<br />} </p>\n</blockquote>\n<p>Se deseja apagar algum dado, referencie-o como vazio. Valores nulos serão ignorados:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"doc\": \"\",<br />}<br />}</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["users","{{user_uuid}}","detach-role"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c81c39d9-65ea-48b5-b23a-b8ae54e05dd7","name":"Detach role success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"role_uuid\": \"{{role_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/detach-role"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Fri, 29 Dec 2023 20:35:55 GMT","enabled":true},{"key":"Date","value":"Fri, 29 Dec 2023 20:35:55 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"omniapi_session=ydTsdCvdV9ftO4ELk13TSG20CSvqWa1UWwgnCC54; expires=Fri, 29 Dec 2023 22:35:55 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Role detached\"\n}"}],"_postman_id":"5916ef3a-c4f8-4433-93ec-6e9bf7008573"},{"name":"Add Team to User","event":[{"listen":"test","script":{"id":"ec033688-dd98-4af6-89ca-4fbcc87fb77b","exec":["","pm.test(\"Response status code is 202\", function () {","    pm.expect(pm.response.code).to.equal(202);","});","","","pm.test(\"Response has the required field 'message'\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData).to.have.property('message');","});","","","pm.test(\"Message is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");","});","","","pm.test(\"Message is equal to 'Role attached'\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.message).to.equal(\"Role attached\");","});","","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","",""],"type":"text/javascript"}}],"id":"421097b5-1e9e-4bb7-8dbc-19135f9306d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"team_uuid\": \"{{team_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/add-team","description":"<p>Permite alterar todos os dados do usuário.</p>\n<p>Basta referenciar os parâmetros a serem alterados. O que não deseja alterar, ignore:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"name\": \"Root\",<br />}<br />} </p>\n</blockquote>\n<p>Se deseja apagar algum dado, referencie-o como vazio. Valores nulos serão ignorados:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"doc\": \"\",<br />}<br />}</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["users","{{user_uuid}}","add-team"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"421097b5-1e9e-4bb7-8dbc-19135f9306d9"},{"name":"Remove Team From User","event":[{"listen":"test","script":{"id":"ec033688-dd98-4af6-89ca-4fbcc87fb77b","exec":["","pm.test(\"Response status code is 202\", function () {","    pm.expect(pm.response.code).to.equal(202);","});","","","pm.test(\"Response has the required field 'message'\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData).to.have.property('message');","});","","","pm.test(\"Message is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.message).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");","});","","","pm.test(\"Message is equal to 'Role attached'\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.message).to.equal(\"Role attached\");","});","","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","",""],"type":"text/javascript"}}],"id":"80c9a876-a8b8-49ca-8a7b-497096dc20aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"team_uuid\": \"{{team_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/users/{{user_uuid}}/remove-team","description":"<p>Permite alterar todos os dados do usuário.</p>\n<p>Basta referenciar os parâmetros a serem alterados. O que não deseja alterar, ignore:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"name\": \"Root\",<br />}<br />} </p>\n</blockquote>\n<p>Se deseja apagar algum dado, referencie-o como vazio. Valores nulos serão ignorados:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"doc\": \"\",<br />}<br />}</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["users","{{user_uuid}}","remove-team"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"80c9a876-a8b8-49ca-8a7b-497096dc20aa"},{"name":"Delete User","event":[{"listen":"test","script":{"id":"1a64560d-a003-497a-b824-b5d17f484ea7","exec":["pm.test(\"Response status code is 204\", function () {","  pm.expect(pm.response.code).to.equal(204);","});"],"type":"text/javascript"}}],"id":"5cbf2843-1b6e-4f94-a139-386c8cf4b4f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/users/{{user_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["users","{{user_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5cbf2843-1b6e-4f94-a139-386c8cf4b4f6"}],"id":"c1415cd1-8edc-4267-b23e-a6ce64177e5e","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>'status', 'status_of_service', 'email', 'attributes',\n'roles', 'permissions', 'active_account',\n'account_channels, 'accounts', 'teams', 'addresses', 'metadata'\n\n</code></pre><hr />\n","_postman_id":"c1415cd1-8edc-4267-b23e-a6ce64177e5e","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Campaigns","item":[{"name":"Create a campaign","event":[{"listen":"test","script":{"id":"9a44e36f-a04c-4fbf-8bf5-92919fa4de53","exec":["pm.test(\"Response status code is 201\", function () {","    pm.expect(pm.response.code).to.equal(201);","});","","pm.test(\"Attributes object is present and is an object\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.attributes).to.exist.and.to.be.an('object');","});","","pm.test(\"Template object should exist and be an object\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.template).to.exist.and.to.be.an('object');","});","",""],"type":"text/javascript","packages":{}}}],"id":"e29b3eac-7ae0-467f-bc51-0f27acbcc752","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"teste de teste de Janeiro\",\n        \"description\": \"Apenas uma campanha de teste para notificar toda a nossa base\"\n    },\n    \"message\": {\n        \"provider\": \"WHATSAPP\",\n        \"account_channel_uuid\": \"{{account_channel_uuid}}\",\n        \"type\": \"TEMPLATE\",\n        \"template_uuid\": \"{{template_uuid}}\",\n        \"version\": \"v3\",\n        \"components\": {\n            \"body\": {\n                \"parameters\": [\n                    {\n                        \"type\": \"TEXT\",\n                        \"variable\": \"CONTACT_NAME\"\n                    },\n                    {\n                        \"type\": \"DATE_TIME\",\n                        \"variable\": \"CUSTOM\",\n                        //when using a custom variable, you must send the text field filled with specific text\n                        \"text\": \"20/03/2018\"\n                    }\n                ]\n            }\n        }\n    },\n    \"settings\": {\n        \"mode\": \"SEQUENTIAL\", // <SEQUENTIAL | BULK | ALWAYS_ON>\n        \"delay_between_messages\": 10,\n        \"send_if_has_active_chat\": false,\n        \"open_new_chat\": false,\n        \"targets\": [\n            {\n                \"tags\": [\n                    \"{{tag_uuid}}\", \"{{tag_uuid2}}\"\n                ],\n                \"users\": [\n                    \"{{user_uuid}}\"\n                ]\n            },\n            {\n                \"users\": [\n                    \"{{user_uuid}}\"\n                ]\n            }\n        ],\n        \"start\": \"1705515000\",\n        \"end\": \"1705515030\",\n        \"timezone\": \"America/Sao_Paulo\",\n        \"allowed_sending_times\": [\n            {\n                \"days\": [\n                    \"MONDAY\",\n                    \"TUESDAY\",\n                    \"WEDNESDAY\",\n                    \"THURSDAY\",\n                    \"FRIDAY\"\n                ],\n                \"hours\": [\n                    {\n                        \"start\": \"08:00\",\n                        \"end\": \"12:00\"\n                    },\n                    {\n                        \"start\": \"14:00\",\n                        \"end\": \"18:00\"\n                    }\n                ]\n            },\n            {\n                \"days\": [\n                    \"SATURDAY\"\n                ],\n                \"hours\": [\n                    {\n                        \"start\": \"08:00\",\n                        \"end\": \"12:00\"\n                    }\n                ]\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/campaigns?include=attributes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","campaigns"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"}],"variable":[]}},"response":[],"_postman_id":"e29b3eac-7ae0-467f-bc51-0f27acbcc752"},{"name":"Show specific campaign","id":"868decee-99bf-4ef3-bf92-a291e6822c41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host}}/campaigns/{{campaign_uuid}}?include=attributes,template,account_channel,tag,settings,metadata","urlObject":{"path":["campaigns","{{campaign_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,template,account_channel,tag,settings,metadata"}],"variable":[]}},"response":[],"_postman_id":"868decee-99bf-4ef3-bf92-a291e6822c41"},{"name":"List all campaigns from an account","event":[{"listen":"test","script":{"id":"ca6fc457-a5ab-401a-be31-59664ca73fc0","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response has the required fields - data, links, and meta\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('data');","    pm.expect(responseData).to.have.property('links');","    pm.expect(responseData).to.have.property('meta');","});","","","pm.test(\"Data array is present and empty\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.data).to.exist.and.to.be.an('array');","});","","","pm.test(\"Links array and its elements are valid\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.links).to.be.an('array');","});","","","pm.test(\"Meta object contains all expected fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.meta).to.be.an('object');","    pm.expect(responseData.meta).to.include.all.keys('current_page', 'first_page_url', 'from', 'last_page', 'per_page', 'total');","});","",""],"type":"text/javascript","packages":{}}}],"id":"0596ad7c-4c0a-4853-998d-de146a5c917d","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/campaigns?include=attributes","description":"<p>Listagem de campanhas realizadas ou em andamento</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","campaigns"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"}],"variable":[]}},"response":[{"id":"656df0db-8791-437b-b1af-a5e2986817f0","name":"List with sort and search","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/api/users?include=data&search=roo&order=-available_service,-created_at","host":["{{host}}"],"path":["api","users"],"query":[{"key":"include","value":"data"},{"key":"search","value":"roo"},{"key":"order","value":"-available_service,-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Wed, 25 Oct 2023 22:23:02 GMT","enabled":true},{"key":"Date","value":"Wed, 25 Oct 2023 22:23:02 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"53","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9a745cec-e724-424c-b28a-db65e1954b5e\",\n            \"status\": \"OFFLINE\",\n            \"status_of_service\": \"AVAILABLE\",\n            \"data\": {\n                \"name\": \"Kenzi Black\",\n                \"email\": \"3@root.com\",\n                \"doc\": \"405-88-3636\",\n                \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n                \"phone\": \"(489) 330-2385\"\n            },\n            \"metadata\": {\n                \"deprecated_user_id\": 102,\n                \"can_provide_service\": \"1\",\n                \"created_at\": \"2023-10-25T14:54:19.000000Z\",\n                \"updated_at\": \"2023-10-25T22:22:09.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9a745d12-9763-4149-b5b7-cd17493d7096\",\n            \"status\": \"OFFLINE\",\n            \"status_of_service\": \"UNAVAILABLE\",\n            \"data\": {\n                \"name\": \"Kenzi Black\",\n                \"email\": \"4@root.com\",\n                \"doc\": \"405-88-3636\",\n                \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n                \"phone\": \"(489) 330-2385\"\n            },\n            \"metadata\": {\n                \"deprecated_user_id\": 104,\n                \"can_provide_service\": \"0\",\n                \"created_at\": \"2023-10-25T14:54:43.000000Z\",\n                \"updated_at\": \"2023-10-25T14:54:43.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"0d61d249-84a7-4b86-88cd-4c0ca10222f4\",\n            \"status\": \"OFFLINE\",\n            \"status_of_service\": \"UNAVAILABLE\",\n            \"data\": {\n                \"name\": \"Seu Jorge\",\n                \"email\": \"root@root.com\",\n                \"doc\": \"701-88-3636\",\n                \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n                \"phone\": \"(489) 330-2385\"\n            },\n            \"metadata\": {\n                \"deprecated_user_id\": 1,\n                \"can_provide_service\": \"0\",\n                \"created_at\": \"2023-08-29T20:53:40.000000Z\",\n                \"updated_at\": \"2023-10-25T22:23:00.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://localhost:8000/api/users?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://localhost:8000/api/users?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://localhost:8000/api/users?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://localhost:8000/api/users\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"},{"id":"9a615877-b461-42ff-aa85-3deba9a33877","name":"List paginating","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/api/users?include=data&search=roo&order=-available_service,-created_at&per_page=2&page=1","host":["{{host}}"],"path":["api","users"],"query":[{"key":"include","value":"data"},{"key":"search","value":"roo"},{"key":"order","value":"-available_service,-created_at"},{"key":"per_page","value":"2"},{"key":"page","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Wed, 25 Oct 2023 22:23:51 GMT","enabled":true},{"key":"Date","value":"Wed, 25 Oct 2023 22:23:51 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9a745cec-e724-424c-b28a-db65e1954b5e\",\n            \"status\": \"OFFLINE\",\n            \"status_of_service\": \"AVAILABLE\",\n            \"data\": {\n                \"name\": \"Kenzi Black\",\n                \"email\": \"3@root.com\",\n                \"doc\": \"405-88-3636\",\n                \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n                \"phone\": \"(489) 330-2385\"\n            },\n            \"metadata\": {\n                \"deprecated_user_id\": 102,\n                \"can_provide_service\": \"1\",\n                \"created_at\": \"2023-10-25T14:54:19.000000Z\",\n                \"updated_at\": \"2023-10-25T22:22:09.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9a745d12-9763-4149-b5b7-cd17493d7096\",\n            \"status\": \"OFFLINE\",\n            \"status_of_service\": \"UNAVAILABLE\",\n            \"data\": {\n                \"name\": \"Kenzi Black\",\n                \"email\": \"4@root.com\",\n                \"doc\": \"405-88-3636\",\n                \"picture\": \"https://randomuser.me/api/portraits/med/men/75.jpg\",\n                \"phone\": \"(489) 330-2385\"\n            },\n            \"metadata\": {\n                \"deprecated_user_id\": 104,\n                \"can_provide_service\": \"0\",\n                \"created_at\": \"2023-10-25T14:54:43.000000Z\",\n                \"updated_at\": \"2023-10-25T14:54:43.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://localhost:8000/api/users?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": \"http://localhost:8000/api/users?page=2\",\n            \"label\": \"2\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://localhost:8000/api/users?page=2\",\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://localhost:8000/api/users?page=1\",\n        \"from\": 1,\n        \"last_page\": 2,\n        \"last_page_url\": \"http://localhost:8000/api/users?page=2\",\n        \"next_page_url\": \"http://localhost:8000/api/users?page=2\",\n        \"path\": \"http://localhost:8000/api/users\",\n        \"per_page\": 2,\n        \"prev_page_url\": null,\n        \"to\": 2,\n        \"total\": 3\n    }\n}"}],"_postman_id":"0596ad7c-4c0a-4853-998d-de146a5c917d"},{"name":"Update Campaign","event":[{"listen":"test","script":{"id":"e6172f5e-4ab0-487f-aabb-c82ee43b3d8d","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Uuid field is not empty\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.uuid).to.exist.and.to.not.be.empty;","});","","pm.test(\"Name and description attributes should not be empty\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.attributes.name).to.exist.and.to.not.equal(\"\");","    pm.expect(responseData.attributes.description).to.exist.and.to.not.equal(\"\");","});","","pm.test(\"Verify the template fields are not empty\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.template).to.be.an('object');","    pm.expect(responseData.template.uuid).to.exist.and.to.not.equal(\"\");","    pm.expect(responseData.template.key).to.exist.and.to.not.equal(\"\");","    pm.expect(responseData.template.status).to.exist.and.to.not.equal(\"\");","    pm.expect(responseData.template.message).to.exist.and.to.not.equal(\"\");","});"],"type":"text/javascript"}}],"id":"a3379703-0c3e-4ed7-a8ec-07d6b59fb6cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Campanha de teste de Dezembro\",\n        \"description\": \"Apenas uma campanha de teste para notificar toda a nossa base\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/campaigns/{{campaign_uuid}}?include=*","description":"<p>Permite alterar todos os dados do usuário.</p>\n<p>Basta referenciar os parâmetros a serem alterados. O que não deseja alterar, ignore:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"name\": \"Root\",<br />}<br />} </p>\n</blockquote>\n<p>Se deseja apagar algum dado, referencie-o como vazio. Valores nulos serão ignorados:</p>\n<blockquote>\n<p>{<br />\"data\": {<br />\"doc\": \"\",<br />}<br />}</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["campaigns","{{campaign_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"7689ac01-5b55-4beb-9072-9d94a98606e0","name":"Update","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"data\": {\n        \"name\": \"Jorge\",\n        \"doc\": \"1234\",\n        \"picture\": \"https://randomuser.me/api/portraits/men/23.jpg\",\n        \"phone\": \"98394839483\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/api/users/{{user_id}}?include=data","host":["{{host}}"],"path":["api","users","{{user_id}}"],"query":[{"key":"include","value":"data"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Sun, 22 Oct 2023 14:10:18 GMT","enabled":true},{"key":"Date","value":"Sun, 22 Oct 2023 14:10:18 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.3.0RC1","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"54","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"0d61d249-84a7-4b86-88cd-4c0ca10222f4\",\n    \"status\": \"OFFLINE\",\n    \"status_of_service\": \"AVAILABLE\",\n    \"data\": {\n        \"name\": \"Jorge\",\n        \"doc\": \"1234\",\n        \"picture\": \"https://randomuser.me/api/portraits/men/23.jpg\",\n        \"phone\": \"98394839483\"\n    },\n    \"metadata\": {\n        \"deprecated_user_id\": \"0d61d249-84a7-4b86-88cd-4c0ca10222f4\",\n        \"can_provide_service\": \"1\",\n        \"created_at\": \"2023-08-29T20:53:40.000000Z\",\n        \"updated_at\": \"2023-10-22T14:09:25.000000Z\"\n    }\n}"}],"_postman_id":"a3379703-0c3e-4ed7-a8ec-07d6b59fb6cf"},{"name":"Delete Campaign","id":"7cb279ef-f305-4b91-9588-91d0dc6527da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/campaigns/{{campaign_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["campaigns","{{campaign_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7cb279ef-f305-4b91-9588-91d0dc6527da"}],"id":"ec7ca656-926d-4f6b-8513-ee046581ddd3","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'attributes', 'template', 'account_channel', 'tag', 'settings', 'metadata'</code></p>\n<hr />\n","_postman_id":"ec7ca656-926d-4f6b-8513-ee046581ddd3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Contacts","item":[{"name":"Imports","item":[{"name":"Import contacts with Upload Spreadsheet","event":[{"listen":"test","script":{"id":"3bc21e44-7a89-4e33-ba66-cae9bcf6f011","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('message');","    pm.expect(responseData).to.have.property('queued');","    pm.expect(responseData).to.have.property('uuid');","    pm.expect(responseData).to.have.property('tag_name');","});","","","pm.test(\"Queued is a boolean value\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.queued).to.be.a('boolean');","});","","","pm.test(\"UUID is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.uuid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"UUID should be a non-empty string\");","});","","","pm.test(\"Tag_name is either an empty string or a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.tag_name).to.exist.and.to.satisfy((value) => {","        return typeof value === 'string';","    }, \"Tag_name should be a string\");","});","",""],"type":"text/javascript"}}],"id":"302fb685-4283-44ba-9041-bbbda21946e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/gabrielhenrique/Downloads/Contact Sheet Example.csv"],"src":"postman-cloud:///1eeaa642-85cd-4c90-8be3-e6a97ba3ee77"}]},"url":"{{host}}/accounts/{{account_uuid}}/contacts/imports","description":"<p>A importação de contatos exige uma planilha que esteja neste mesmo padrão:</p>\n<p><a href=\"https://docs.google.com/spreadsheets/d/1qLkpO7IpcTacfZ2dNeZ4-mNwXvgg26vODnrBaSjaG-o/edit?usp=sharing\">https://docs.google.com/spreadsheets/d/1qLkpO7IpcTacfZ2dNeZ4-mNwXvgg26vODnrBaSjaG-o/edit?usp=sharing</a></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","contacts","imports"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"302fb685-4283-44ba-9041-bbbda21946e9"},{"name":"List all imports by System Tag","event":[{"listen":"test","script":{"id":"f1046a13-e180-4345-8bc6-9bfc2a34e6ec","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response has the required fields - data, links, and meta\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('data');","    pm.expect(responseData).to.have.property('links');","    pm.expect(responseData).to.have.property('meta');","});","","","pm.test(\"Links array contains at least one element with non-empty label\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.links).to.be.an('array').that.is.not.empty;","    responseData.links.forEach(function(link) {","        pm.expect(link.label).to.exist.and.to.be.a('string').and.to.have.lengthOf.at.least(1, \"Label should not be empty\");","    });","});","","","pm.test(\"Meta object contains expected keys\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.meta).to.be.an('object');","    pm.expect(responseData.meta).to.include.all.keys('current_page', 'total', 'per_page');","});","","","pm.test(\"Data array is empty or contains expected elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array');","});","",""],"type":"text/javascript","packages":{}}}],"id":"1590aef0-8283-4aaa-a852-6dfe0db4b302","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/tags?include=attributes,contacts&category=IMPORTED","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","tags"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,contacts"},{"key":"category","value":"IMPORTED"}],"variable":[]}},"response":[],"_postman_id":"1590aef0-8283-4aaa-a852-6dfe0db4b302"},{"name":"List specific import by Tag ID","event":[{"listen":"test","script":{"id":"ccb88f88-fccc-42e1-937b-a082e673655e","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Content type is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('uuid');","    pm.expect(responseData).to.have.property('status');","    pm.expect(responseData).to.have.property('category');","    pm.expect(responseData).to.have.property('attributes');","    pm.expect(responseData).to.have.property('contacts');","    pm.expect(responseData).to.have.property('metadata');","});","","","pm.test(\"Contacts is a non-negative integer\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.contacts).to.be.a('number');","  pm.expect(responseData.contacts).to.be.at.least(0, \"Contacts should be a non-negative integer\");","});","",""],"type":"text/javascript","packages":{}}}],"id":"328f733e-0ab0-4a59-abad-74005f14255d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/tags/{{upload_tag_uuid}}?include=attributes,contacts","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["tags","{{upload_tag_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,contacts"}],"variable":[]}},"response":[],"_postman_id":"328f733e-0ab0-4a59-abad-74005f14255d"}],"id":"fc739d7a-6e96-4d13-bf7a-c91a69d57527","description":"<p>Importação de contatos a partir de upload de arquivos</p>\n","_postman_id":"fc739d7a-6e96-4d13-bf7a-c91a69d57527","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Messages","item":[{"name":"Send Message By Contact Phone","id":"003d2845-0253-4b49-8c2a-f4605fd1f44d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"WHATSAPP\",\n    \"account_channel_uuid\": \"{{account_channel_uuid}}\",\n    \"type\": \"TEXT\",\n    \"version\": \"v3\",\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/contacts/{{contact_channel_uid}}/messages?include=contact","description":"<p>O envio de mensagem</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","contacts","{{contact_channel_uid}}","messages"],"host":["{{host}}"],"query":[{"key":"include","value":"contact"}],"variable":[]}},"response":[{"id":"23f51591-e3c6-4a2b-be6c-48f8fa519867","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"e8d56046-f7c6-461c-83e8-3ec82d12dfc3","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"WHATSAPP\",\n    \"account_channel_uuid\": \"{{account_channel_uuid}}\",\n    \"type\": \"TEXT\", // <TEMPLATE | TEXT | MEDIA>\n    \"version\": \"v3\",\n    \"direction\": \"OUT\",  //OUT | IN\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem a partir da OmniAPI v3\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Tue, 20 Jan 2026 19:40:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"117"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-Ratelimit-Limit","value":"300"},{"key":"X-Ratelimit-Remaining","value":"272"},{"key":"Vary","value":"Origin"},{"key":"Set-Cookie","value":"api_session=10xPykqSCMmCKPFlkp2tup3jOXh2Rq7L3ovfuIQj; expires=Tue, 20-Jan-2026 20:10:17 GMT; Max-Age=1800; path=/; HttpOnly; SameSite=lax"},{"key":"Server","value":"swoole-http-server"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"a0e24c35-c77e-40a1-8064-ea442316d0ae\",\n    \"event\": \"MESSAGE\",\n    \"type\": \"TEXT\",\n    \"ack\": \"CREATED\",\n    \"direction\": \"OUT\"\n}"}],"_postman_id":"003d2845-0253-4b49-8c2a-f4605fd1f44d"},{"name":"Send Message By Contact UUID","id":"ce0bdcd7-c774-4948-80e8-397221f0031f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"WHATSAPP\",\n    \"account_channel_uuid\": \"{{account_channel_uuid}}\",\n    \"type\": \"TEXT\", // <TEMPLATE | TEXT | MEDIA>\n    \"version\": \"v3\",\n    \"direction\": \"OUT\",  //OUT | IN\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem a partir da OmniAPI v3\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","messages"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"6405ed37-a3d8-4399-a3b4-30abab620415","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"f425a5f2-6a77-483a-b857-e33ee9cd9905","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"WHATSAPP\",\n    \"account_channel_uuid\": \"{{account_channel_uuid}}\",\n    \"type\": \"TEXT\", // <TEMPLATE | TEXT | MEDIA>\n    \"version\": \"v3\",\n    \"direction\": \"OUT\",  //OUT | IN\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem a partir da OmniAPI v3\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Tue, 20 Jan 2026 19:40:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"117"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-Ratelimit-Limit","value":"300"},{"key":"X-Ratelimit-Remaining","value":"272"},{"key":"Vary","value":"Origin"},{"key":"Set-Cookie","value":"api_session=10xPykqSCMmCKPFlkp2tup3jOXh2Rq7L3ovfuIQj; expires=Tue, 20-Jan-2026 20:10:17 GMT; Max-Age=1800; path=/; HttpOnly; SameSite=lax"},{"key":"Server","value":"swoole-http-server"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"a0e24c35-c77e-40a1-8064-ea442316d0ae\",\n    \"event\": \"MESSAGE\",\n    \"type\": \"TEXT\",\n    \"ack\": \"CREATED\",\n    \"direction\": \"OUT\"\n}"}],"_postman_id":"ce0bdcd7-c774-4948-80e8-397221f0031f"},{"name":"Send Internal Message By Contact UUID","id":"a214acef-b3b1-46e3-8df4-73cad68bfbe0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"ANNOTATION\",\n    \"type\": \"TEXT\", // <TEMPLATE | TEXT | MEDIA>\n    \"version\": \"v3\",\n    \"direction\": \"OUT\",  //OUT | IN\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem a partir da OmniAPI v3\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","messages"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"5f077117-f502-47b8-b55e-478ecd2332e9","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"b405f673-f07c-43ff-b256-7fe0868c5d7f","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product\": \"WHATSAPP\",\n    \"type\": \"TEXT\", // <TEMPLATE | text | media>\n    \"version\": \"v3\",\n    \"direction\": \"IN\",  //OUT | IN\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem a partir da OmniAPI v3 - 2\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"laravel_session=vlqscfoF8YwmmMZyCmN4EeBIlrBHEIaeECZoxAVH; expires=Sun, 24 Dec 2023 18:18:42 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"a0e24c35-c77e-40a1-8064-ea442316d0ae\",\n    \"event\": \"MESSAGE\",\n    \"type\": \"TEXT\",\n    \"ack\": \"CREATED\",\n    \"direction\": \"OUT\"\n}"}],"_postman_id":"a214acef-b3b1-46e3-8df4-73cad68bfbe0"},{"name":"Send Media By Contact UUID","id":"51b25815-8214-4073-8762-cc037503a771","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"WHATSAPP\",\n    \"account_channel_uuid\": \"{{account_channel_uuid}}\",\n    \"type\": \"MEDIA\", // <TEMPLATE | TEXT | MEDIA>\n    \"version\": \"v3\",\n    \"direction\": \"OUT\", //OUT | IN\n    \"components\": {\n        \"attachments\": [\n            {\n                \"type\": \"IMAGE\",\n                \"media\": {\n                    \"file_id\": \"{{file_id}}\",\n                    \"caption\": \"Teste de legenda\"\n                }\n            }\n        ],\n        \"body\": {\n            \"text\": \"Teste de mensagem no body\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","messages"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"76d88b3a-0250-4d27-bb7e-052284e18565","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"3daf09fb-0cf2-41f4-b7b8-776ab3174165","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product\": \"WHATSAPP\",\n    \"type\": \"TEXT\", // <TEMPLATE | text | media>\n    \"version\": \"v3\",\n    \"direction\": \"IN\",  //OUT | IN\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem a partir da OmniAPI v3 - 2\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"laravel_session=vlqscfoF8YwmmMZyCmN4EeBIlrBHEIaeECZoxAVH; expires=Sun, 24 Dec 2023 18:18:42 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"a0e24c35-c77e-40a1-8064-ea442316d0ae\",\n    \"event\": \"MESSAGE\",\n    \"type\": \"TEXT\",\n    \"ack\": \"CREATED\",\n    \"direction\": \"OUT\"\n}"}],"_postman_id":"51b25815-8214-4073-8762-cc037503a771"},{"name":"[form-data] Send Media By Contact UUID","id":"775b28e7-636f-4f70-be52-85a625069925","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"form-data","value":"{\"provider\":\"WHATSAPP\",\"account_channel_uuid\":\"{{account_channel_uuid}}\",\"type\":\"MEDIA\",\"version\":\"v3\",\"direction\":\"OUT\",\"components\":{\"attachments\":[{\"type\":\"IMAGE\",\"media\":{\"uploaded\":true,\"caption\":\"Test Caption\"}}]}}","type":"text"},{"key":"file","type":"file","src":"postman-cloud:///1eeaa64d-e128-4030-8deb-50fd60644c6d"}]},"url":"{{host}}/contacts/{{contact_uuid}}/messages","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","messages"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ff7ecfc0-aeec-4a4e-ae5d-62c75339bf21","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"0d161514-d1a3-47c7-9cdc-cca2ff7b3026","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product\": \"WHATSAPP\",\n    \"type\": \"TEXT\", // <TEMPLATE | text | media>\n    \"version\": \"v3\",\n    \"direction\": \"IN\",  //OUT | IN\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem a partir da OmniAPI v3 - 2\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"laravel_session=vlqscfoF8YwmmMZyCmN4EeBIlrBHEIaeECZoxAVH; expires=Sun, 24 Dec 2023 18:18:42 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"a0e24c35-c77e-40a1-8064-ea442316d0ae\",\n    \"event\": \"MESSAGE\",\n    \"type\": \"TEXT\",\n    \"ack\": \"CREATED\",\n    \"direction\": \"OUT\"\n}"}],"_postman_id":"775b28e7-636f-4f70-be52-85a625069925"},{"name":"[form-data] Send Audio By Contact UUID","id":"6291b830-ef77-4d9e-966a-07fabc6e64b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"form-data","value":"{\"provider\":\"WHATSAPP\",\"account_channel_uuid\":\"{{account_channel_uuid}}\",\"type\":\"MEDIA\",\"version\":\"v3\",\"direction\":\"OUT\",\"components\":{\"attachments\":[{\"type\":\"AUDIO\",\"media\":{\"uploaded\":true}}]}}","type":"text"},{"key":"file","type":"file","src":"postman-cloud:///1eed73d5-7c50-4290-9051-eb50698eb346"}]},"url":"{{host}}/contacts/{{contact_uuid}}/messages","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","messages"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"7060a907-6409-40fd-8804-7004a7a2c6b2","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"e3189e7d-64c4-4b32-867c-40bd4066c7b8","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product\": \"WHATSAPP\",\n    \"type\": \"TEXT\", // <TEMPLATE | text | media>\n    \"version\": \"v3\",\n    \"direction\": \"IN\",  //OUT | IN\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem a partir da OmniAPI v3 - 2\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"laravel_session=vlqscfoF8YwmmMZyCmN4EeBIlrBHEIaeECZoxAVH; expires=Sun, 24 Dec 2023 18:18:42 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"a0e24c35-c77e-40a1-8064-ea442316d0ae\",\n    \"event\": \"MESSAGE\",\n    \"type\": \"TEXT\",\n    \"ack\": \"CREATED\",\n    \"direction\": \"OUT\"\n}"}],"_postman_id":"6291b830-ef77-4d9e-966a-07fabc6e64b3"},{"name":"Reply Message","id":"7546a950-28d0-4b6a-ba05-e6fff7e76048","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"WHATSAPP\",\n    \"account_channel_uuid\": \"{{account_channel_uuid}}\",\n    \"type\": \"TEXT\", // <TEMPLATE | TEXT | MEDIA>\n    \"version\": \"v3\",\n    \"direction\": \"OUT\",  //OUT | IN\n    \"context\": {\n      \"type\": \"message\",\n      \"message\": {\n        \"uuid\": \"{{message_uuid}}\"\n      }\n    },\n    \"components\": {\n        \"body\": {\n            \"text\": \"Reply message\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","messages"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bef045cd-9c64-4afb-897d-8873d7f8834e","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"d53f2da4-ea5e-47ed-9193-f72cd1e6e49e","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product\": \"WHATSAPP\",\n    \"type\": \"TEXT\", // <TEMPLATE | text | media>\n    \"version\": \"v3\",\n    \"direction\": \"IN\",  //OUT | IN\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem a partir da OmniAPI v3 - 2\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"laravel_session=vlqscfoF8YwmmMZyCmN4EeBIlrBHEIaeECZoxAVH; expires=Sun, 24 Dec 2023 18:18:42 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"a0e24c35-c77e-40a1-8064-ea442316d0ae\",\n    \"event\": \"MESSAGE\",\n    \"type\": \"TEXT\",\n    \"ack\": \"CREATED\",\n    \"direction\": \"OUT\"\n}"}],"_postman_id":"7546a950-28d0-4b6a-ba05-e6fff7e76048"},{"name":"Send Template By Contact UUID","id":"05fa7d32-fb52-476a-ae26-766e7ed4f737","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"WHATSAPP\",\n    \"account_channel_uuid\": \"{{account_channel_uuid}}\",\n    \"type\": \"TEMPLATE\",\n    \"template_uuid\": \"{{template_uuid}}\",\n    \"version\": \"v3\",\n    \"components\": {\n        \"header\": {\n            \"parameters\": [\n                {\n                    \"type\": \"text\",\n                    \"text\": \"John\"\n                },\n                {\n                    \"type\": \"date_time\",\n                    \"date_time\": \"20/06/2024\"\n                }\n            ]\n        },\n        \"body\": {\n            \"parameters\": [\n                {\n                    \"type\": \"text\",\n                    \"text\": \"texto de teste\"\n                },\n                {\n                    \"type\": \"date_time\",\n                    \"date_time\": \"20/03/2018\"\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages","description":"<p>É possível enviar mensagem pelo telefone ou pelo ID do contato. Para enviar via telefone (contact_channel_uid), precisa passar o ID da empresa</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","messages"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"834a8b7c-0ab1-4487-8c2c-f477c2dd612a","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"77e27614-828a-4225-8cd3-d98d67de29be","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product\": \"WHATSAPP\",\n    \"type\": \"TEXT\", // <TEMPLATE | text | media>\n    \"version\": \"v3\",\n    \"direction\": \"IN\",  //OUT | IN\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem a partir da OmniAPI v3 - 2\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"laravel_session=vlqscfoF8YwmmMZyCmN4EeBIlrBHEIaeECZoxAVH; expires=Sun, 24 Dec 2023 18:18:42 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"a0e24c35-c77e-40a1-8064-ea442316d0ae\",\n    \"event\": \"MESSAGE\",\n    \"type\": \"TEXT\",\n    \"ack\": \"CREATED\",\n    \"direction\": \"OUT\"\n}"}],"_postman_id":"05fa7d32-fb52-476a-ae26-766e7ed4f737"},{"name":"Send Template By Contact Phone","id":"442c0936-de3c-4257-b11b-33a663250391","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"WHATSAPP\",\n    \"account_channel_uuid\": \"{{account_channel_uuid}}\",\n    \"type\": \"TEMPLATE\",\n    \"template_uuid\": \"{{template_uuid}}\",\n    \"version\": \"v3\",\n    \"components\": {\n        \"header\": {\n            \"parameters\": [\n                {\n                    \"type\": \"text\",\n                    \"text\": \"John\"\n                },\n                {\n                    \"type\": \"date_time\",\n                    \"date_time\": \"20/06/2024\"\n                }\n            ]\n        },\n        \"body\": {\n            \"parameters\": [\n                {\n                    \"type\": \"text\",\n                    \"text\": \"texto de teste\"\n                },\n                {\n                    \"type\": \"date_time\",\n                    \"date_time\": \"20/03/2018\"\n                }\n            ]\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/contacts/{{contact_channel_uid}}/messages?include=contact","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","contacts","{{contact_channel_uid}}","messages"],"host":["{{host}}"],"query":[{"key":"include","value":"contact"}],"variable":[]}},"response":[{"id":"c09172a3-3fff-4a99-8c3a-39b868b787b9","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"0380a76c-2110-43b9-9ed8-bb640bd5767e","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product\": \"WHATSAPP\",\n    \"type\": \"TEXT\", // <TEMPLATE | text | media>\n    \"version\": \"v3\",\n    \"direction\": \"IN\",  //OUT | IN\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem a partir da OmniAPI v3 - 2\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/messages"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Date","value":"Sun, 24 Dec 2023 16:18:42 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"laravel_session=vlqscfoF8YwmmMZyCmN4EeBIlrBHEIaeECZoxAVH; expires=Sun, 24 Dec 2023 18:18:42 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"a0e24c35-c77e-40a1-8064-ea442316d0ae\",\n    \"event\": \"MESSAGE\",\n    \"type\": \"TEXT\",\n    \"ack\": \"CREATED\",\n    \"direction\": \"OUT\"\n}"}],"_postman_id":"442c0936-de3c-4257-b11b-33a663250391"},{"name":"List messages from contact","id":"1a930f4c-f709-4b31-a885-db48363dd884","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/contacts/{{contact_uuid}}/messages?include=preview,context,components&order=-created_at&page=1","description":"<p>Esta collection possui uma propriedade especial: *scroll*. Com ela você consegue listar as mensagens a partir de um determinado parâmetro.</p>\n<p>Seu uso funciona com:</p>\n<p>&amp;scroll=message_uuid,8bd2d130-ac31-404d-9c75-4c2aa6b9a575,asc ou</p>\n<p>&amp;scroll=attendance_uuid,707d22ad-c66e-425e-8590-22799c280cd2,asc</p>\n<p>primeiro define-se o parâmetro (message_uuid ou attendance_uuid), em seguida o id do parâmetro e por fim a ordenação (asc - ascendente ou desc - descendente)</p>\n<p>Toda listagem irá começar a partir da primeira mensagem do respectivo parâmetro</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","messages"],"host":["{{host}}"],"query":[{"key":"include","value":"preview,context,components"},{"key":"order","value":"-created_at"},{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"6101e0a2-b154-4b93-93c8-60f76e0a5bf7","name":"List messages from contact","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/contacts/{{contact_uuid}}/messages?include=*&order=-created_at","host":["{{host}}"],"path":["contacts","{{contact_uuid}}","messages"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 02 Jan 2024 22:45:39 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"8708","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"X-Ratelimit-Limit","value":"60","enabled":true},{"key":"X-Ratelimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"laravel_session=w6whzVG7xc8guOXNVIJr9Hi0iM4p5NNzdaACMB2a; expires=Wed, 03-Jan-2024 00:45:39 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9affd173-6160-4da2-9697-e04f95941d1a\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"Contato redirecionado para Gabriel Henrique de Sousa Silva por Gabriel Henrique de Sousa Silva\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_message_id\": 46465640,\n                \"direction\": \"SYSTEM\",\n                \"created_at\": \"2024-01-02T22:40:13.000000Z\",\n                \"updated_at\": \"2024-01-02T22:40:13.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9affd15a-3a6e-40ed-9fc1-e64c989de06c\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"Contato redirecionado para Edimar Cardoso por Gabriel Henrique de Sousa Silva\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_message_id\": 46465639,\n                \"direction\": \"SYSTEM\",\n                \"created_at\": \"2024-01-02T22:39:56.000000Z\",\n                \"updated_at\": \"2024-01-02T22:39:56.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9affd120-fc9f-47fd-a090-42929f4065d7\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"Contato redirecionado para Gabriel Henrique de Sousa Silva por Gabriel Henrique de Sousa Silva\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_message_id\": 46465638,\n                \"direction\": \"SYSTEM\",\n                \"created_at\": \"2024-01-02T22:39:19.000000Z\",\n                \"updated_at\": \"2024-01-02T22:39:19.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9affca14-7218-438f-93ae-7c6dbf340eef\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"Teste de mensagem\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_message_id\": 46465637,\n                \"direction\": \"OUT\",\n                \"created_at\": \"2024-01-02T22:19:36.000000Z\",\n                \"updated_at\": \"2024-01-02T22:19:36.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"s-1-55156-7019447-msg-1704233843868\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"testando\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"external_message_id\": \"3EB011D129EC4052CC9A5B\",\n                \"deprecated_message_id\": 46465636,\n                \"direction\": \"OUT\",\n                \"created_at\": \"2024-01-02T22:17:24.000000Z\",\n                \"updated_at\": \"2024-01-02T22:17:30.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"rec-1-msg-1704224906.0328-261\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"testando\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"external_message_id\": \"wamid.HBgMNTU2Mjg2MDczNzI4FQIAEhgWM0VCMDkyOTNDQTU5NEU2N0MzMTVFNwA=\",\n                \"deprecated_message_id\": 46465630,\n                \"direction\": \"IN\",\n                \"created_at\": \"2024-01-02T19:48:26.000000Z\",\n                \"updated_at\": \"2024-01-02T19:48:26.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"rec-1-msg-1704221692.7223-1495\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"556298089582\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"external_message_id\": \"wamid.HBgMNTU2Mjg2MDczNzI4FQIAEhgWM0VCMDFEMjEyODdEQUE0OEQxNTdBQgA=\",\n                \"deprecated_message_id\": 46465620,\n                \"direction\": \"IN\",\n                \"created_at\": \"2024-01-02T18:54:52.000000Z\",\n                \"updated_at\": \"2024-01-02T18:54:52.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"s-0-6083-7019447-msg-1704221670140\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": \"Olá Gabriel, aqui é Gabriel Henrique de Sousa Silva, estou entrando em contato para alinharmos algumas coisas, podemos agendar um momento para conversarmos?\",\n                \"header\": {\n                    \"type\": \"none\",\n                    \"text\": \"\",\n                    \"mediaUrl\": \"\"\n                },\n                \"footer\": \"\",\n                \"buttons\": [],\n                \"category\": 16,\n                \"language\": 46,\n                \"name\": \"polichat_quick_message_73\"\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"external_message_id\": \"wamid.HBgMNTU2Mjg2MDczNzI4FQIAERgSNURGNTdBRDQ5QjJBNTc2MUM5AA==\",\n                \"deprecated_message_id\": 46465619,\n                \"direction\": \"OUT\",\n                \"created_at\": \"2024-01-02T18:54:30.000000Z\",\n                \"updated_at\": \"2024-01-02T18:54:48.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"s-1-55156-7019447-msg-1704221648204\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"teste\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"external_message_id\": \"3EB08A907D0CF9F0C64E32\",\n                \"deprecated_message_id\": 46465618,\n                \"direction\": \"OUT\",\n                \"created_at\": \"2024-01-02T18:54:08.000000Z\",\n                \"updated_at\": \"2024-01-02T18:54:18.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9aeb0f7a-4f93-4dcb-a102-377458cf66fd\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"Teste de mensagem\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_message_id\": 46465142,\n                \"direction\": \"IN\",\n                \"created_at\": \"2023-12-23T15:01:16.000000Z\",\n                \"updated_at\": \"2023-12-23T15:01:16.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9aeb0f3d-90bc-4498-b56f-e69396905941\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"Teste de mensagem\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_message_id\": 46465141,\n                \"direction\": \"IN\",\n                \"created_at\": \"2023-12-23T15:00:36.000000Z\",\n                \"updated_at\": \"2023-12-23T15:00:36.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9aeb0ddf-0c22-4e63-8eaa-6b70e2793578\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"Teste de mensagem\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_message_id\": 46465140,\n                \"direction\": \"IN\",\n                \"created_at\": \"2023-12-23T14:56:47.000000Z\",\n                \"updated_at\": \"2023-12-23T14:56:47.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ae9a723-3bef-4d3f-9d47-48310350f171\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"Teste de mensagem\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_message_id\": 46465139,\n                \"direction\": \"IN\",\n                \"created_at\": \"2023-12-22T22:13:41.000000Z\",\n                \"updated_at\": \"2023-12-22T22:13:41.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ae8e318-e685-4169-aac9-1f823cb4090d\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"Teste de mensagem\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_message_id\": 46465138,\n                \"direction\": \"OUT\",\n                \"created_at\": \"2023-12-22T13:05:31.000000Z\",\n                \"updated_at\": \"2023-12-22T13:05:31.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ae8e311-3bf5-4c59-9cfb-93b405fdfeea\",\n            \"context\": null,\n            \"template\": null,\n            \"preview\": [],\n            \"components\": {\n                \"body\": {\n                    \"text\": \"Teste de mensagem\"\n                }\n            },\n            \"interactive\": [],\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_message_id\": 46465137,\n                \"direction\": \"OUT\",\n                \"created_at\": \"2023-12-22T13:05:26.000000Z\",\n                \"updated_at\": \"2023-12-22T13:05:26.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=2\",\n            \"label\": \"2\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=3\",\n            \"label\": \"3\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=4\",\n            \"label\": \"4\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=5\",\n            \"label\": \"5\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=6\",\n            \"label\": \"6\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=7\",\n            \"label\": \"7\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=8\",\n            \"label\": \"8\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=9\",\n            \"label\": \"9\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=10\",\n            \"label\": \"10\",\n            \"active\": false\n        },\n        {\n            \"url\": null,\n            \"label\": \"...\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=16\",\n            \"label\": \"16\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=17\",\n            \"label\": \"17\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=2\",\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=1\",\n        \"from\": 1,\n        \"last_page\": 17,\n        \"last_page_url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=17\",\n        \"next_page_url\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages?page=2\",\n        \"path\": \"http://omniapi-alpha-polidigital.svc-us3.zcloud.ws/v3/contacts/75dca1c2-0f76-49b4-a3a6-dad879a42c08/messages\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 15,\n        \"total\": 245\n    }\n}"}],"_postman_id":"1a930f4c-f709-4b31-a885-db48363dd884"}],"id":"5bffa5e0-374f-4337-bd0a-1a744878ad18","description":"<blockquote>\n<p>Para detalhes, ver collection \"messages\"</p>\n</blockquote>\n","_postman_id":"5bffa5e0-374f-4337-bd0a-1a744878ad18","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Attendances","item":[{"name":"Close","id":"5bf15a69-c59c-4b1d-9596-6575e5003158","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{host}}/contacts/{{contact_uuid}}/close","description":"<p>O encaminhamento de uma conversa pode ser feito para um usuário ou para um aplicativo (Bot)</p>\n<p>APPLICATION</p>\n<p>Para esse encaminhamento, é preciso preencher um dentre os dois campos:</p>\n<p>{<br />\"user_uuid\": \"{{user_uuid}}\"<br />}</p>\n<p>Ou</p>\n<p>{<br />\"application_uuid\": \"{{application_uuid}}\" // Or user_uuid or application_uuid.<br />}</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","close"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"7dc4d1ac-4e1f-4086-9144-aa0348b19ffb","name":"Unread","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_uuid\": \"{{user_uuid}}\"\n    // \"application_uuid\": \"{{application_uuid}}\" // Or user_uuid or application_uuid.\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/unread"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 21 Feb 2024 14:15:57 GMT","enabled":true},{"key":"Date","value":"Wed, 21 Feb 2024 14:15:57 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"omniapi_session=CRutxvRMVaQyT5gmSwEIBa9vNkciRpNzN0k797vv; expires=Wed, 21 Feb 2024 16:15:57 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5bf15a69-c59c-4b1d-9596-6575e5003158"},{"name":"Forward","id":"21f4bc90-ee56-4998-a868-ee11774e0578","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_uuid\": \"{{user_uuid}}\",\n    // \"application_uuid\": \"{{application_uuid}}\" // Or user_uuid or application_uuid.\n    \"team_uuid\": null\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/forward","description":"<p>O encaminhamento de uma conversa pode ser feito para um usuário ou para um aplicativo (Bot)</p>\n<p>APPLICATION</p>\n<p>Para esse encaminhamento, é preciso preencher um dentre os dois campos:</p>\n<p>{<br />\"user_uuid\": \"{{user_uuid}}\"<br />}</p>\n<p>Ou</p>\n<p>{<br />\"application_uuid\": \"{{application_uuid}}\" // Or user_uuid or application_uuid.<br />}</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","forward"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"aaffff6d-78bf-4dac-b29e-e133388c0df5","name":"Forward to BOT","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"member_uuid\": \"f8aa120b-2b04-44fc-a441-3f0b6d3c9f59\",\n    \"member_type\": \"BOT\" //<USER|BOT>\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/contacts/{{contact_uuid}}/forward?include=attendant,chats,participants","host":["{{host}}"],"path":["contacts","{{contact_uuid}}","forward"],"query":[{"key":"include","value":"attendant,chats,participants"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 19 Dec 2023 23:25:07 GMT","enabled":true},{"key":"Date","value":"Tue, 19 Dec 2023 23:25:07 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9ae2deca-b4dd-4090-b23c-c8b5e0b6d3c5\",\n    \"attendant\": null,\n    \"chats\": [\n        {\n            \"uuid\": \"9ae3b7bb-58b2-476d-8e40-710c48d0f087\",\n            \"status\": \"IN_PROGRESS\",\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": null,\n            \"metadata\": {\n                \"deprecated_chat_id\": 28,\n                \"created_at\": \"2023-12-19T23:25:07.000000Z\",\n                \"updated_at\": \"2023-12-19T23:25:07.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ae3b7a2-a250-47bb-baf6-3d5e7a1d6d3a\",\n            \"status\": \"CLOSED\",\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": \"FORWARDED\",\n            \"metadata\": {\n                \"deprecated_chat_id\": 27,\n                \"created_at\": \"2023-12-19T23:24:51.000000Z\",\n                \"updated_at\": \"2023-12-19T23:25:07.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ae3b734-a30e-4540-88de-4a60e689e201\",\n            \"status\": \"CLOSED\",\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": \"FORWARDED\",\n            \"metadata\": {\n                \"deprecated_chat_id\": 26,\n                \"created_at\": \"2023-12-19T23:23:39.000000Z\",\n                \"updated_at\": \"2023-12-19T23:24:51.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ae3b6e0-e7d9-46e7-986f-795bb2d62946\",\n            \"status\": \"CLOSED\",\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": \"FORWARDED\",\n            \"metadata\": {\n                \"deprecated_chat_id\": 25,\n                \"created_at\": \"2023-12-19T23:22:44.000000Z\",\n                \"updated_at\": \"2023-12-19T23:23:39.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ae3b687-f433-4d8b-9e20-3ab9d81468a1\",\n            \"status\": \"CLOSED\",\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": \"FORWARDED\",\n            \"metadata\": {\n                \"deprecated_chat_id\": 24,\n                \"created_at\": \"2023-12-19T23:21:46.000000Z\",\n                \"updated_at\": \"2023-12-19T23:22:44.000000Z\"\n            }\n        }\n    ]\n}"},{"id":"c865dac8-3f64-42f9-a7f8-373dc8bf56c3","name":"Forward to User","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"member_uuid\": \"{{user_uuid}}\",\n    \"member_type\": \"USER\" //<USER|APPLICATION>\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/contacts/{{contact_uuid}}/forward?include=attendant,chats,participants","host":["{{host}}"],"path":["contacts","{{contact_uuid}}","forward"],"query":[{"key":"include","value":"attendant,chats,participants"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 19 Dec 2023 23:27:56 GMT","enabled":true},{"key":"Date","value":"Tue, 19 Dec 2023 23:27:56 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9ae2deca-b4dd-4090-b23c-c8b5e0b6d3c5\",\n    \"attendant\": {\n        \"uuid\": \"0d61d249-84a7-4b86-88cd-4c0ca10222f4\",\n        \"attributes\": {\n            \"name\": \"Root\",\n            \"email\": \"root@root.com\"\n        }\n    },\n    \"chats\": [\n        {\n            \"uuid\": \"9ae3b8bc-e239-41be-84c0-cc406b66ec06\",\n            \"status\": \"IN_PROGRESS\",\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": null,\n            \"metadata\": {\n                \"deprecated_chat_id\": 29,\n                \"created_at\": \"2023-12-19T23:27:56.000000Z\",\n                \"updated_at\": \"2023-12-19T23:27:56.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ae3b7bb-58b2-476d-8e40-710c48d0f087\",\n            \"status\": \"CLOSED\",\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": \"FORWARDED\",\n            \"metadata\": {\n                \"deprecated_chat_id\": 28,\n                \"created_at\": \"2023-12-19T23:25:07.000000Z\",\n                \"updated_at\": \"2023-12-19T23:27:56.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ae3b7a2-a250-47bb-baf6-3d5e7a1d6d3a\",\n            \"status\": \"CLOSED\",\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": \"FORWARDED\",\n            \"metadata\": {\n                \"deprecated_chat_id\": 27,\n                \"created_at\": \"2023-12-19T23:24:51.000000Z\",\n                \"updated_at\": \"2023-12-19T23:25:07.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ae3b734-a30e-4540-88de-4a60e689e201\",\n            \"status\": \"CLOSED\",\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": \"FORWARDED\",\n            \"metadata\": {\n                \"deprecated_chat_id\": 26,\n                \"created_at\": \"2023-12-19T23:23:39.000000Z\",\n                \"updated_at\": \"2023-12-19T23:24:51.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ae3b6e0-e7d9-46e7-986f-795bb2d62946\",\n            \"status\": \"CLOSED\",\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": \"FORWARDED\",\n            \"metadata\": {\n                \"deprecated_chat_id\": 25,\n                \"created_at\": \"2023-12-19T23:22:44.000000Z\",\n                \"updated_at\": \"2023-12-19T23:23:39.000000Z\"\n            }\n        }\n    ]\n}"}],"_postman_id":"21f4bc90-ee56-4998-a868-ee11774e0578"},{"name":"Mark as Read Conversation","id":"807b190d-6e38-4e1c-b85e-2be5dc9e84ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_uuid\": \"{{user_uuid}}\"\n    // \"application_uuid\": \"{{application_uuid}}\" // Or user_uuid or application_uuid.\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/read","description":"<p>O encaminhamento de uma conversa pode ser feito para um usuário ou para um aplicativo (Bot)</p>\n<p>APPLICATION</p>\n<p>Para esse encaminhamento, é preciso preencher um dentre os dois campos:</p>\n<p>{<br />\"user_uuid\": \"{{user_uuid}}\"<br />}</p>\n<p>Ou</p>\n<p>{<br />\"application_uuid\": \"{{application_uuid}}\" // Or user_uuid or application_uuid.<br />}</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","read"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"40beec01-d63a-49ab-9da0-17becdb307e9","name":"Read","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_uuid\": \"{{user_uuid}}\"\n    // \"application_uuid\": \"{{application_uuid}}\" // Or user_uuid or application_uuid.\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/read"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 21 Feb 2024 14:18:37 GMT","enabled":true},{"key":"Date","value":"Wed, 21 Feb 2024 14:18:37 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"omniapi_session=CRutxvRMVaQyT5gmSwEIBa9vNkciRpNzN0k797vv; expires=Wed, 21 Feb 2024 16:18:37 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"807b190d-6e38-4e1c-b85e-2be5dc9e84ed"},{"name":"Mark as Unread Conversation","id":"2095b817-3437-41ea-8c4c-b7875a6a1907","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_uuid\": \"{{user_uuid}}\"\n    // \"application_uuid\": \"{{application_uuid}}\" // Or user_uuid or application_uuid.\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/unread","description":"<p>O encaminhamento de uma conversa pode ser feito para um usuário ou para um aplicativo (Bot)</p>\n<p>APPLICATION</p>\n<p>Para esse encaminhamento, é preciso preencher um dentre os dois campos:</p>\n<p>{<br />\"user_uuid\": \"{{user_uuid}}\"<br />}</p>\n<p>Ou</p>\n<p>{<br />\"application_uuid\": \"{{application_uuid}}\" // Or user_uuid or application_uuid.<br />}</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","unread"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b974a028-0c98-44b6-8ace-0c56efe50764","name":"Unread","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_uuid\": \"{{user_uuid}}\"\n    // \"application_uuid\": \"{{application_uuid}}\" // Or user_uuid or application_uuid.\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/unread"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 21 Feb 2024 14:15:57 GMT","enabled":true},{"key":"Date","value":"Wed, 21 Feb 2024 14:15:57 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"omniapi_session=CRutxvRMVaQyT5gmSwEIBa9vNkciRpNzN0k797vv; expires=Wed, 21 Feb 2024 16:15:57 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2095b817-3437-41ea-8c4c-b7875a6a1907"},{"name":"List attendances by contact","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"8122aa7e-967b-4157-93f0-b2c98ff63fcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/contacts/{{contact_uuid}}/attendances?include=attributes&order=-created_at&name=gabriel henrique","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","attendances"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"},{"key":"order","value":"-created_at"},{"key":"name","value":"gabriel henrique"}],"variable":[]}},"response":[{"id":"6e7167eb-5097-4ec4-8a16-ecd46094b3e2","name":"List attendances","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/contacts/{{contact_uuid}}/attendances?per_page=15&order=-created_at&include=attributes,account_channel,attendant,participants,contact,metadata","host":["{{host}}"],"path":["contacts","{{contact_uuid}}","attendances"],"query":[{"key":"per_page","value":"15"},{"key":"order","value":"-created_at"},{"key":"include","value":"attributes,account_channel,attendant,participants,contact,metadata"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Aug 2024 12:15:05 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"888","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"X-Ratelimit-Limit","value":"60","enabled":true},{"key":"X-Ratelimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"api_session=kp6AajWYERPSRWDijrCWRAcbaji4hzUuL3dnOmNp; expires=Fri, 09-Aug-2024 12:45:05 GMT; Max-Age=1800; path=/; httponly; samesite=lax","enabled":true},{"key":"Server","value":"swoole-http-server","enabled":true},{"key":"Content-Encoding","value":"br","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9c89b19e-8e01-40ff-afaf-64342c7804db\",\n            \"status\": null,\n            \"type\": \"INITIATED_BY_BUSINESS\",\n            \"closed_reason\": null,\n            \"participants\": [],\n            \"account_channel\": {\n                \"uuid\": \"9c2ce851-783d-4c61-a36e-ef5fa065bc50\",\n                \"uid\": \"5511951590114@c.us\",\n                \"name\": \"Testes\",\n                \"status\": \"ACTIVE\",\n                \"provider\": \"WABA\"\n            },\n            \"attendant\": {\n                \"uuid\": \"9c8491a5-200d-4312-ba18-7824b5877e78\",\n                \"attributes\": {\n                    \"name\": \"Integração\"\n                }\n            },\n            \"contact\": {\n                \"uuid\": \"9c2ce874-45c5-426e-8e0b-9876be96ef08\",\n                \"attributes\": {\n                    \"name\": \"Gabriel Henrique\",\n                    \"phone\": \"556286073728\"\n                }\n            },\n            \"metadata\": {\n                \"deprecated_attendance_id\": 190544814,\n                \"created_at\": \"2024-06-14T14:40:14.000000Z\",\n                \"updated_at\": \"2024-07-16T17:47:24.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9c89afc3-09f6-4db9-9a10-2af6ce523c56\",\n            \"status\": null,\n            \"type\": \"INITIATED_BY_CONTACT\",\n            \"closed_reason\": \"FINISHED_BY_USER\",\n            \"participants\": [],\n            \"account_channel\": {\n                \"uuid\": \"9c2ce851-783d-4c61-a36e-ef5fa065bc50\",\n                \"uid\": \"5511951590114@c.us\",\n                \"name\": \"Testes\",\n                \"status\": \"ACTIVE\",\n                \"provider\": \"WABA\"\n            },\n            \"attendant\": {\n                \"uuid\": \"62b48ab4-2ab9-4348-b7d5-29a58ff867ec\",\n                \"attributes\": {\n                    \"name\": \"GH\"\n                }\n            },\n            \"contact\": {\n                \"uuid\": \"9c2ce874-45c5-426e-8e0b-9876be96ef08\",\n                \"attributes\": {\n                    \"name\": \"Gabriel Henrique\",\n                    \"phone\": \"556286073728\"\n                }\n            },\n            \"metadata\": {\n                \"deprecated_attendance_id\": 190449141,\n                \"created_at\": \"2024-06-13T16:07:20.000000Z\",\n                \"updated_at\": \"2024-07-16T17:42:12.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9c3366dc-7ff2-44a4-8347-efb4c36da9a3\",\n            \"status\": \"CLOSED\",\n            \"type\": \"INITIATED_BY_CONTACT\",\n            \"closed_reason\": \"FINISHED_BY_USER\",\n            \"participants\": [],\n            \"account_channel\": {\n                \"uuid\": \"9c2ce851-783d-4c61-a36e-ef5fa065bc50\",\n                \"uid\": \"5511951590114@c.us\",\n                \"name\": \"Testes\",\n                \"status\": \"ACTIVE\",\n                \"provider\": \"WABA\"\n            },\n            \"attendant\": {\n                \"uuid\": \"9c414011-6a5c-4e24-af64-24885907a15f\",\n                \"attributes\": {\n                    \"name\": \"Joaquim\"\n                }\n            },\n            \"contact\": {\n                \"uuid\": \"9c2ce874-45c5-426e-8e0b-9876be96ef08\",\n                \"attributes\": {\n                    \"name\": \"Gabriel Henrique\",\n                    \"phone\": \"556286073728\"\n                }\n            },\n            \"metadata\": {\n                \"deprecated_attendance_id\": 189286975,\n                \"created_at\": \"2024-05-31T14:36:44.000000Z\",\n                \"updated_at\": \"2024-06-10T19:42:30.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://foundation-api.poli.digital/v3/contacts/9c2ce874-45c5-426e-8e0b-9876be96ef08/attendances?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"https://foundation-api.poli.digital/v3/contacts/9c2ce874-45c5-426e-8e0b-9876be96ef08/attendances?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"https://foundation-api.poli.digital/v3/contacts/9c2ce874-45c5-426e-8e0b-9876be96ef08/attendances?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"https://foundation-api.poli.digital/v3/contacts/9c2ce874-45c5-426e-8e0b-9876be96ef08/attendances\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"8122aa7e-967b-4157-93f0-b2c98ff63fcc"},{"name":"Distribute Contact","id":"28ddfd24-5e29-4b49-a0f9-aad2e1cb6639","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"team\": \"{{team_uuid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/distribute","description":"<p>Utilizado para distribuir um contato a um departamento</p>\n<p>O nosso sistema irá definir o atendente correto baseado nas regras de distribuição do time(departamento) escolhido</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","distribute"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"8a9120f2-93a0-487c-8176-69ec15a2b54a","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"a22474b0-a3bf-4992-944c-20e47881f570","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"PERSON\", // <PERSON | GROUP>\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"doc\": \"701.556.232-33\",\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\"\n    },\n    \"channels\": [\n        {\n            \"uid\": \"556292825363\",\n            \"provider\": \"WHATSAPP\",\n            \"type\": \"DEFAULT\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Mon, 13 Nov 2023 19:15:48 GMT","enabled":true},{"key":"Date","value":"Mon, 13 Nov 2023 19:15:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a9af324-5e7e-4d7e-b577-7112d43d8902\",\n    \"type\": \"PERSON\",\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"account\": {\n        \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n        \"name\": \"Root\"\n    },\n    \"channels\": [\n        {\n            \"uid\": \"556292825363\",\n            \"provider\": \"WHATSAPP\",\n            \"type\": \"DEFAULT\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"uuid\": \"9a9af324-7e7a-48b0-a26a-9f9b1dcb4207\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-11-13T19:15:48.000000Z\",\n                \"updated_at\": \"2023-11-13T19:15:48.000000Z\"\n            }\n        }\n    ],\n    \"metadata\": {\n        \"deprecated_contact_id\": 1,\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2023-11-13T19:15:48.000000Z\",\n        \"updated_at\": \"2023-11-13T19:15:48.000000Z\"\n    }\n}"}],"_postman_id":"28ddfd24-5e29-4b49-a0f9-aad2e1cb6639"}],"id":"7cde4e89-ea60-46de-90fd-29626abf9e70","description":"<blockquote>\n<p>Para detalhes, ver collection \"attendances\"</p>\n</blockquote>\n","_postman_id":"7cde4e89-ea60-46de-90fd-29626abf9e70","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Notes","item":[{"name":"Add Note to message","id":"2d93a667-a407-48bb-9100-d0d0da5f2b1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"notes_body\": \"Isso é um exemplo de anotação.\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/users/{{user_uuid}}/contacts/{{contact_uuid}}/note","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","users","{{user_uuid}}","contacts","{{contact_uuid}}","note"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d93a667-a407-48bb-9100-d0d0da5f2b1e"}],"id":"b387390d-a97f-44c4-98c0-5da5604a31bb","description":"<p>Anotações internas - mensagens privadas para seu time</p>\n","_postman_id":"b387390d-a97f-44c4-98c0-5da5604a31bb","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Tags","item":[{"name":"Adicionar etiqueta ao contato","event":[{"listen":"test","script":{"id":"e8765762-bffc-4519-a617-ac0c89f4d3d2","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.include.all.keys('uuid', 'type', 'attributes', 'account', 'attendant', 'current_chat', 'tags', 'contact_channels', 'addresses', 'metadata');","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.attributes.email).to.match(/^[\\w-]+(\\.[\\w-]+)*@[\\w-]+(\\.[\\w-]+)*(\\.[a-z]{2,})$/);","});","","","pm.test(\"Picture URL within attributes is valid\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.attributes.picture.url).to.be.a('string').and.to.match(/^https?:\\/\\/.+/);","});","","","pm.test(\"Metadata object has created_at and updated_at fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.metadata).to.be.an('object');","    pm.expect(responseData.metadata).to.have.property('created_at');","    pm.expect(responseData.metadata).to.have.property('updated_at');","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"bb5e9fc4-c70f-4814-8ef7-88440dc63d97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"tags\": [\n        {\n            \"uuid\": \"{{tag_uuid}}\"\n        },\n        {\n            \"uuid\": \"9ac92b7b-4e04-4a45-8674-b26139a474f2\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/tags","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","tags"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"cfd062b8-e09e-4395-b6c1-201487fc64a5","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"doc\": \"701.556.232-33\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a80ce8a-36fc-4309-8832-0cf9bf70f759\",\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"addresses\": [\n        {\n            \"uuid\": \"9a80ce8a-5917-49e5-8080-f502e3f1b526\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-10-31T19:21:56.000000Z\",\n                \"updated_at\": \"2023-10-31T19:21:56.000000Z\"\n            }\n        }\n    ]\n}"},{"id":"3dc71394-db85-48f1-9101-6e510125fa62","name":"Update picture","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.13","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Date","value":"Thu, 14 Dec 2023 19:56:03 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9ad503c4-59c2-4c34-a2fd-8b773760db48\",\n    \"type\": \"PERSON\",\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\",\n        \"picture\": \"http://localhost:9000/local/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts/9ad503c4-59c2-4c34-a2fd-8b773760db48\",\n        \"doc\": \"701.556.232-38\"\n    },\n    \"account\": {\n        \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n        \"attributes\": {\n            \"name\": \"Root\",\n            \"doc\": \"00.000.000/0001-00\",\n            \"segment\": \"Serviços de Engenharia\",\n            \"picture\": \"\",\n            \"phone\": \"\",\n            \"site\": null\n        }\n    },\n    \"tags\": [\n        {\n            \"uuid\": \"9ad5026a-73d9-4e44-bc8f-4eb9268e4ba8\",\n            \"attributes\": {\n                \"name\": \"Etiqueta de teste\",\n                \"description\": \"Esta é uma etiqueta para validar a nossa API\",\n                \"color\": \"#f0f0f0\"\n            }\n        }\n    ],\n    \"channels\": [\n        {\n            \"uid\": \"556292825111\",\n            \"provider\": \"WHATSAPP\",\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_contact_external_id\": 1007,\n                \"created_at\": \"2023-12-12T16:00:19.000000Z\",\n                \"updated_at\": \"2023-12-12T16:00:19.000000Z\"\n            }\n        },\n        {\n            \"uid\": \"teste@email.com\",\n            \"provider\": \"EMAIL\",\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_contact_external_id\": 1008,\n                \"created_at\": \"2023-12-14T19:34:47.000000Z\",\n                \"updated_at\": \"2023-12-14T19:34:47.000000Z\"\n            }\n        }\n    ],\n    \"addresses\": [\n        {\n            \"uuid\": \"9ad503c4-67ba-479b-a0b2-55c91a15b054\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-12-12T16:00:19.000000Z\",\n                \"updated_at\": \"2023-12-12T16:00:19.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ad9566f-3305-48b0-8e58-0b2590ce2233\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-12-14T19:34:47.000000Z\",\n                \"updated_at\": \"2023-12-14T19:34:47.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ad95712-5fe1-4eba-ab14-1c830068b39e\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-12-14T19:36:34.000000Z\",\n                \"updated_at\": \"2023-12-14T19:36:34.000000Z\"\n            }\n        }\n    ],\n    \"metadata\": {\n        \"deprecated_contact_id\": 1009,\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2023-12-12T16:00:19.000000Z\",\n        \"updated_at\": \"2023-12-14T19:56:03.000000Z\"\n    }\n}"}],"_postman_id":"bb5e9fc4-c70f-4814-8ef7-88440dc63d97"},{"name":"Remover etiqueta do contato","event":[{"listen":"test","script":{"id":"e8765762-bffc-4519-a617-ac0c89f4d3d2","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.include.all.keys('uuid', 'type', 'attributes', 'account', 'attendant', 'current_chat', 'tags', 'contact_channels', 'addresses', 'metadata');","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.attributes.email).to.match(/^[\\w-]+(\\.[\\w-]+)*@[\\w-]+(\\.[\\w-]+)*(\\.[a-z]{2,})$/);","});","","","pm.test(\"Picture URL within attributes is valid\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.attributes.picture.url).to.be.a('string').and.to.match(/^https?:\\/\\/.+/);","});","","","pm.test(\"Metadata object has created_at and updated_at fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.metadata).to.be.an('object');","    pm.expect(responseData.metadata).to.have.property('created_at');","    pm.expect(responseData.metadata).to.have.property('updated_at');","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"32631def-e7c8-4114-9acb-09a0757362e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"tags\": [\n        {\n            \"uuid\": \"{{tag_uuid}}\"\n        },\n        {\n            \"uuid\": \"9ac92b7b-4e04-4a45-8674-b26139a474f2\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}/tags","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}","tags"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"24ba4534-a94f-4110-8cdc-bb0942b0c683","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"doc\": \"701.556.232-33\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a80ce8a-36fc-4309-8832-0cf9bf70f759\",\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"addresses\": [\n        {\n            \"uuid\": \"9a80ce8a-5917-49e5-8080-f502e3f1b526\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-10-31T19:21:56.000000Z\",\n                \"updated_at\": \"2023-10-31T19:21:56.000000Z\"\n            }\n        }\n    ]\n}"},{"id":"81d622e0-9335-4778-ac9d-776ad7d1e900","name":"Update picture","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.13","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Date","value":"Thu, 14 Dec 2023 19:56:03 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9ad503c4-59c2-4c34-a2fd-8b773760db48\",\n    \"type\": \"PERSON\",\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\",\n        \"picture\": \"http://localhost:9000/local/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts/9ad503c4-59c2-4c34-a2fd-8b773760db48\",\n        \"doc\": \"701.556.232-38\"\n    },\n    \"account\": {\n        \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n        \"attributes\": {\n            \"name\": \"Root\",\n            \"doc\": \"00.000.000/0001-00\",\n            \"segment\": \"Serviços de Engenharia\",\n            \"picture\": \"\",\n            \"phone\": \"\",\n            \"site\": null\n        }\n    },\n    \"tags\": [\n        {\n            \"uuid\": \"9ad5026a-73d9-4e44-bc8f-4eb9268e4ba8\",\n            \"attributes\": {\n                \"name\": \"Etiqueta de teste\",\n                \"description\": \"Esta é uma etiqueta para validar a nossa API\",\n                \"color\": \"#f0f0f0\"\n            }\n        }\n    ],\n    \"channels\": [\n        {\n            \"uid\": \"556292825111\",\n            \"provider\": \"WHATSAPP\",\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_contact_external_id\": 1007,\n                \"created_at\": \"2023-12-12T16:00:19.000000Z\",\n                \"updated_at\": \"2023-12-12T16:00:19.000000Z\"\n            }\n        },\n        {\n            \"uid\": \"teste@email.com\",\n            \"provider\": \"EMAIL\",\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_contact_external_id\": 1008,\n                \"created_at\": \"2023-12-14T19:34:47.000000Z\",\n                \"updated_at\": \"2023-12-14T19:34:47.000000Z\"\n            }\n        }\n    ],\n    \"addresses\": [\n        {\n            \"uuid\": \"9ad503c4-67ba-479b-a0b2-55c91a15b054\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-12-12T16:00:19.000000Z\",\n                \"updated_at\": \"2023-12-12T16:00:19.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ad9566f-3305-48b0-8e58-0b2590ce2233\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-12-14T19:34:47.000000Z\",\n                \"updated_at\": \"2023-12-14T19:34:47.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ad95712-5fe1-4eba-ab14-1c830068b39e\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-12-14T19:36:34.000000Z\",\n                \"updated_at\": \"2023-12-14T19:36:34.000000Z\"\n            }\n        }\n    ],\n    \"metadata\": {\n        \"deprecated_contact_id\": 1009,\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2023-12-12T16:00:19.000000Z\",\n        \"updated_at\": \"2023-12-14T19:56:03.000000Z\"\n    }\n}"}],"_postman_id":"32631def-e7c8-4114-9acb-09a0757362e7"}],"id":"c73e4590-0f42-4f04-8865-2f9909340912","_postman_id":"c73e4590-0f42-4f04-8865-2f9909340912","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"List contacts","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"e716cb04-6c59-437e-a5ac-2cfb3fa8b3b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/contacts?include=attributes&order=-created_at&name=gabriel henrique","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","contacts"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"},{"key":"order","value":"-created_at"},{"key":"name","value":"gabriel henrique"}],"variable":[]}},"response":[{"id":"471eb74a-63e6-4e4f-96b2-453f5458bef1","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"e716cb04-6c59-437e-a5ac-2cfb3fa8b3b6"},{"name":"Show specific contact","event":[{"listen":"test","script":{"id":"822425bc-3fbf-445b-9c57-a5df2ada2238","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response Content-Type is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Account object should include uuid and name\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.account).to.be.an('object');","    pm.expect(responseData.account.uuid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"UUID should not be empty\");","});","","","pm.test(\"Addresses array is present and contains the expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.have.property('addresses').that.is.an('array');","});","",""],"type":"text/javascript","packages":{}}}],"id":"8b772ece-a8cb-4427-94c7-45d3001d5d91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/contacts/{{contact_uuid}}?include=type,chat_status,read_status,attributes,current_attendance,attendant,addresses,contact_channels,tags,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"type,chat_status,read_status,attributes,current_attendance,attendant,addresses,contact_channels,tags,metadata"}],"variable":[]}},"response":[{"id":"0121b438-1595-4e41-ae46-d2b00f5ae2eb","name":"Show specific contact","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:33 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:33 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n    \"type\": \"PERSON\",\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"account\": {\n        \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n        \"name\": \"Root\"\n    },\n    \"channels\": [\n        {\n            \"uid\": \"556292825395\",\n            \"provider\": \"WHATSAPP\",\n            \"type\": \"DEFAULT\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        }\n    ],\n    \"metadata\": {\n        \"deprecated_contact_id\": 4,\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n    }\n}"}],"_postman_id":"8b772ece-a8cb-4427-94c7-45d3001d5d91"},{"name":"Create Contact","id":"db0b4d8f-64a7-4231-a1f1-786427f6224b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"PERSON\", // <PERSON | GROUP>\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"doc\": \"701.556.232-44\",\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        },\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\"\n    },\n    \"tags\": [\n        {\n            \"uuid\": \"{{tag_uuid}}\"\n        }\n    ],\n    \"contact_channels\": [\n        {\n            \"uid\": \"{{contact_channel_uid}}\",\n            \"provider\": \"WHATSAPP\",\n            \"type\": \"DEFAULT\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/contacts?include=*","description":"<p>A criação de contato segue nosso padrão de objeto.</p>\n<p>É possível criar já relacionando endereços, etiquetas e canais.<br />Para fazer o envio de uma foto de perfil, precisa fazer previamente o upload do arquivo e enviar dentro de file_id a string que a identifica.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","contacts"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"02b67fae-2d81-4248-a3c4-c5656ce6fdd3","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"9e9da82f-5280-4111-b76c-64970c4e0330","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"PERSON\", // <PERSON | GROUP>\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"doc\": \"701.556.232-33\",\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\"\n    },\n    \"channels\": [\n        {\n            \"uid\": \"556292825363\",\n            \"provider\": \"WHATSAPP\",\n            \"type\": \"DEFAULT\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Mon, 13 Nov 2023 19:15:48 GMT","enabled":true},{"key":"Date","value":"Mon, 13 Nov 2023 19:15:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a9af324-5e7e-4d7e-b577-7112d43d8902\",\n    \"type\": \"PERSON\",\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"account\": {\n        \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n        \"name\": \"Root\"\n    },\n    \"channels\": [\n        {\n            \"uid\": \"556292825363\",\n            \"provider\": \"WHATSAPP\",\n            \"type\": \"DEFAULT\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"uuid\": \"9a9af324-7e7a-48b0-a26a-9f9b1dcb4207\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-11-13T19:15:48.000000Z\",\n                \"updated_at\": \"2023-11-13T19:15:48.000000Z\"\n            }\n        }\n    ],\n    \"metadata\": {\n        \"deprecated_contact_id\": 1,\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2023-11-13T19:15:48.000000Z\",\n        \"updated_at\": \"2023-11-13T19:15:48.000000Z\"\n    }\n}"}],"_postman_id":"db0b4d8f-64a7-4231-a1f1-786427f6224b"},{"name":"Update contact","event":[{"listen":"test","script":{"id":"e8765762-bffc-4519-a617-ac0c89f4d3d2","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.include.all.keys('uuid', 'type', 'attributes', 'account', 'attendant', 'current_chat', 'tags', 'contact_channels', 'addresses', 'metadata');","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.attributes.email).to.match(/^[\\w-]+(\\.[\\w-]+)*@[\\w-]+(\\.[\\w-]+)*(\\.[a-z]{2,})$/);","});","","","pm.test(\"Picture URL within attributes is valid\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.attributes.picture.url).to.be.a('string').and.to.match(/^https?:\\/\\/.+/);","});","","","pm.test(\"Metadata object has created_at and updated_at fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.metadata).to.be.an('object');","    pm.expect(responseData.metadata).to.have.property('created_at');","    pm.expect(responseData.metadata).to.have.property('updated_at');","});","",""],"type":"text/javascript","packages":{}}}],"id":"0c95644b-4973-4b5a-bb13-a8539c736087","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Gabriel Henrique\",\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/contacts/{{contact_uuid}}?include=attributes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"}],"variable":[]}},"response":[{"id":"7572db00-9dc2-4202-ab8b-6200dc74a393","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"doc\": \"701.556.232-33\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a80ce8a-36fc-4309-8832-0cf9bf70f759\",\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"addresses\": [\n        {\n            \"uuid\": \"9a80ce8a-5917-49e5-8080-f502e3f1b526\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-10-31T19:21:56.000000Z\",\n                \"updated_at\": \"2023-10-31T19:21:56.000000Z\"\n            }\n        }\n    ]\n}"},{"id":"bc6d8ffa-c179-47cf-9938-7f88b6aa25d9","name":"Update picture","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"picture\": {\n            \"file_id\": \"{{file_id}}\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.13","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Date","value":"Thu, 14 Dec 2023 19:56:03 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9ad503c4-59c2-4c34-a2fd-8b773760db48\",\n    \"type\": \"PERSON\",\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\",\n        \"picture\": \"http://localhost:9000/local/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts/9ad503c4-59c2-4c34-a2fd-8b773760db48\",\n        \"doc\": \"701.556.232-38\"\n    },\n    \"account\": {\n        \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n        \"attributes\": {\n            \"name\": \"Root\",\n            \"doc\": \"00.000.000/0001-00\",\n            \"segment\": \"Serviços de Engenharia\",\n            \"picture\": \"\",\n            \"phone\": \"\",\n            \"site\": null\n        }\n    },\n    \"tags\": [\n        {\n            \"uuid\": \"9ad5026a-73d9-4e44-bc8f-4eb9268e4ba8\",\n            \"attributes\": {\n                \"name\": \"Etiqueta de teste\",\n                \"description\": \"Esta é uma etiqueta para validar a nossa API\",\n                \"color\": \"#f0f0f0\"\n            }\n        }\n    ],\n    \"channels\": [\n        {\n            \"uid\": \"556292825111\",\n            \"provider\": \"WHATSAPP\",\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_contact_external_id\": 1007,\n                \"created_at\": \"2023-12-12T16:00:19.000000Z\",\n                \"updated_at\": \"2023-12-12T16:00:19.000000Z\"\n            }\n        },\n        {\n            \"uid\": \"teste@email.com\",\n            \"provider\": \"EMAIL\",\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_contact_external_id\": 1008,\n                \"created_at\": \"2023-12-14T19:34:47.000000Z\",\n                \"updated_at\": \"2023-12-14T19:34:47.000000Z\"\n            }\n        }\n    ],\n    \"addresses\": [\n        {\n            \"uuid\": \"9ad503c4-67ba-479b-a0b2-55c91a15b054\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-12-12T16:00:19.000000Z\",\n                \"updated_at\": \"2023-12-12T16:00:19.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ad9566f-3305-48b0-8e58-0b2590ce2233\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-12-14T19:34:47.000000Z\",\n                \"updated_at\": \"2023-12-14T19:34:47.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ad95712-5fe1-4eba-ab14-1c830068b39e\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-12-14T19:36:34.000000Z\",\n                \"updated_at\": \"2023-12-14T19:36:34.000000Z\"\n            }\n        }\n    ],\n    \"metadata\": {\n        \"deprecated_contact_id\": 1009,\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2023-12-12T16:00:19.000000Z\",\n        \"updated_at\": \"2023-12-14T19:56:03.000000Z\"\n    }\n}"}],"_postman_id":"0c95644b-4973-4b5a-bb13-a8539c736087"},{"name":"Delete one contact","id":"b3843eb7-0bbb-486a-ab89-1c26d12b66aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/contacts/{{contact_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["contacts","{{contact_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"90d9805c-e99a-440f-bcc2-79e86c274ea3","name":"Contact not found","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/contacts/{{contact_uuid}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:01 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:01 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Contact not found\"\n}"},{"id":"0bed091e-ce19-4b0b-8315-1ecd85d07f5d","name":"Delete","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/contacts/{{contact_uuid}}"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:48 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"55","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b3843eb7-0bbb-486a-ab89-1c26d12b66aa"},{"name":"Delete Multiples Contacts","id":"9f7481b9-1323-4f67-88ce-84be3200cdfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"contacts_uuids\": [\n        {{contact_uuid}}\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/contacts/delete-multiples","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","contacts","delete-multiples"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f7481b9-1323-4f67-88ce-84be3200cdfa"}],"id":"a9bdb406-30ad-4253-9eb8-7b98d87defea","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>'type',\n'chat_status',\n'read_status',\n'attributes',\n'account',\n'attendant',\n'contact_channels',\n'current_attendance',\n'last_message',\n'tags',\n'addresses',\n'metadata'\n\n</code></pre><hr />\n","_postman_id":"a9bdb406-30ad-4253-9eb8-7b98d87defea","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Chats","item":[{"name":"All chats","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"039c2eb4-8a67-4cb2-8d82-02b80d5672f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/chats?page=1&include=read_status,chat_status,attendant","description":"<p>Paginação e os principais includes</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","chats"],"host":["{{host}}"],"query":[{"key":"page","value":"1"},{"key":"include","value":"read_status,chat_status,attendant"},{"disabled":true,"key":"filters","value":"(tags=([{{filter_tags}}]),users=({{filter_users}})),teams=({{filter_teams}}),started_at=([gt=2024-01-01 00:00,lt=2024-02-01 00:00])"}],"variable":[]}},"response":[{"id":"723108bd-0223-4b4f-8940-c75082c42f87","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"},{"id":"d878e12f-ac81-478c-bbe5-d65d7015b4f1","name":"All chats","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/chats?page=1&include=read_status,chat_status,attendant","host":["{{host}}"],"path":["accounts","{{account_uuid}}","chats"],"query":[{"key":"page","value":"1"},{"key":"include","value":"read_status,chat_status,attendant"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 27 Mar 2024 18:18:22 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.3.3-1+ubuntu22.04.1+deb.sury.org+1","enabled":true},{"key":"Content-type","value":"text/html; charset=UTF-8","enabled":true}],"cookie":[],"responseTime":null,"body":"<script> Sfdump = window.Sfdump || (function (doc) { doc.documentElement.classList.add('sf-js-enabled'); var rxEsc = /([.*+?^${}()|\\[\\]\\/\\\\])/g, idRx = /\\bsf-dump-\\d+-ref[012]\\w+\\b/, keyHint = 0 <= navigator.platform.toUpperCase().indexOf('MAC') ? 'Cmd' : 'Ctrl', addEventListener = function (e, n, cb) { e.addEventListener(n, cb, false); }; if (!doc.addEventListener) { addEventListener = function (element, eventName, callback) { element.attachEvent('on' + eventName, function (e) { e.preventDefault = function () {e.returnValue = false;}; e.target = e.srcElement; callback(e); }); }; } function toggle(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className, arrow, newClass; if (/\\bsf-dump-compact\\b/.test(oldClass)) { arrow = '&#9660;'; newClass = 'sf-dump-expanded'; } else if (/\\bsf-dump-expanded\\b/.test(oldClass)) { arrow = '&#9654;'; newClass = 'sf-dump-compact'; } else { return false; } if (doc.createEvent && s.dispatchEvent) { var event = doc.createEvent('Event'); event.initEvent('sf-dump-expanded' === newClass ? 'sfbeforedumpexpand' : 'sfbeforedumpcollapse', true, false); s.dispatchEvent(event); } a.lastChild.innerHTML = arrow; s.className = s.className.replace(/\\bsf-dump-(compact|expanded)\\b/, newClass); if (recursive) { try { a = s.querySelectorAll('.'+oldClass); for (s = 0; s < a.length; ++s) { if (-1 == a[s].className.indexOf(newClass)) { a[s].className = newClass; a[s].previousSibling.lastChild.innerHTML = arrow; } } } catch (e) { } } return true; }; function collapse(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className; if (/\\bsf-dump-expanded\\b/.test(oldClass)) { toggle(a, recursive); return true; } return false; }; function expand(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className; if (/\\bsf-dump-compact\\b/.test(oldClass)) { toggle(a, recursive); return true; } return false; }; function collapseAll(root) { var a = root.querySelector('a.sf-dump-toggle'); if (a) { collapse(a, true); expand(a); return true; } return false; } function reveal(node) { var previous, parents = []; while ((node = node.parentNode || {}) && (previous = node.previousSibling) && 'A' === previous.tagName) { parents.push(previous); } if (0 !== parents.length) { parents.forEach(function (parent) { expand(parent); }); return true; } return false; } function highlight(root, activeNode, nodes) { resetHighlightedNodes(root); Array.from(nodes||[]).forEach(function (node) { if (!/\\bsf-dump-highlight\\b/.test(node.className)) { node.className = node.className + ' sf-dump-highlight'; } }); if (!/\\bsf-dump-highlight-active\\b/.test(activeNode.className)) { activeNode.className = activeNode.className + ' sf-dump-highlight-active'; } } function resetHighlightedNodes(root) { Array.from(root.querySelectorAll('.sf-dump-str, .sf-dump-key, .sf-dump-public, .sf-dump-protected, .sf-dump-private')).forEach(function (strNode) { strNode.className = strNode.className.replace(/\\bsf-dump-highlight\\b/, ''); strNode.className = strNode.className.replace(/\\bsf-dump-highlight-active\\b/, ''); }); } return function (root, x) { root = doc.getElementById(root); var indentRx = new RegExp('^('+(root.getAttribute('data-indent-pad') || ' ').replace(rxEsc, '\\\\$1')+')+', 'm'), options = {\"maxDepth\":1,\"maxStringLength\":160,\"fileLinkFormat\":false}, elt = root.getElementsByTagName('A'), len = elt.length, i = 0, s, h, t = []; while (i < len) t.push(elt[i++]); for (i in x) { options[i] = x[i]; } function a(e, f) { addEventListener(root, e, function (e, n) { if ('A' == e.target.tagName) { f(e.target, e); } else if ('A' == e.target.parentNode.tagName) { f(e.target.parentNode, e); } else { n = /\\bsf-dump-ellipsis\\b/.test(e.target.className) ? e.target.parentNode : e.target; if ((n = n.nextElementSibling) && 'A' == n.tagName) { if (!/\\bsf-dump-toggle\\b/.test(n.className)) { n = n.nextElementSibling || n; } f(n, e, true); } } }); }; function isCtrlKey(e) { return e.ctrlKey || e.metaKey; } function xpathString(str) { var parts = str.match(/[^'\"]+|['\"]/g).map(function (part) { if (\"'\" == part) { return '\"\\'\"'; } if ('\"' == part) { return \"'\\\"'\"; } return \"'\" + part + \"'\"; }); return \"concat(\" + parts.join(\",\") + \", '')\"; } function xpathHasClass(className) { return \"contains(concat(' ', normalize-space(@class), ' '), ' \" + className +\" ')\"; } a('mouseover', function (a, e, c) { if (c) { e.target.style.cursor = \"pointer\"; } }); a('click', function (a, e, c) { if (/\\bsf-dump-toggle\\b/.test(a.className)) { e.preventDefault(); if (!toggle(a, isCtrlKey(e))) { var r = doc.getElementById(a.getAttribute('href').slice(1)), s = r.previousSibling, f = r.parentNode, t = a.parentNode; t.replaceChild(r, a); f.replaceChild(a, s); t.insertBefore(s, r); f = f.firstChild.nodeValue.match(indentRx); t = t.firstChild.nodeValue.match(indentRx); if (f && t && f[0] !== t[0]) { r.innerHTML = r.innerHTML.replace(new RegExp('^'+f[0].replace(rxEsc, '\\\\$1'), 'mg'), t[0]); } if (/\\bsf-dump-compact\\b/.test(r.className)) { toggle(s, isCtrlKey(e)); } } if (c) { } else if (doc.getSelection) { try { doc.getSelection().removeAllRanges(); } catch (e) { doc.getSelection().empty(); } } else { doc.selection.empty(); } } else if (/\\bsf-dump-str-toggle\\b/.test(a.className)) { e.preventDefault(); e = a.parentNode.parentNode; e.className = e.className.replace(/\\bsf-dump-str-(expand|collapse)\\b/, a.parentNode.className); } }); elt = root.getElementsByTagName('SAMP'); len = elt.length; i = 0; while (i < len) t.push(elt[i++]); len = t.length; for (i = 0; i < len; ++i) { elt = t[i]; if ('SAMP' == elt.tagName) { a = elt.previousSibling || {}; if ('A' != a.tagName) { a = doc.createElement('A'); a.className = 'sf-dump-ref'; elt.parentNode.insertBefore(a, elt); } else { a.innerHTML += ' '; } a.title = (a.title ? a.title+'\\n[' : '[')+keyHint+'+click] Expand all children'; a.innerHTML += elt.className == 'sf-dump-compact' ? '\n    <span>&#9654;</span>' : '\n    <span>&#9660;</span>'; a.className += ' sf-dump-toggle'; x = 1; if ('sf-dump' != elt.parentNode.className) { x += elt.parentNode.getAttribute('data-depth')/1; } } else if (/\\bsf-dump-ref\\b/.test(elt.className) && (a = elt.getAttribute('href'))) { a = a.slice(1); elt.className += ' sf-dump-hover'; elt.className += ' '+a; if (/[\\[{]$/.test(elt.previousSibling.nodeValue)) { a = a != elt.nextSibling.id && doc.getElementById(a); try { s = a.nextSibling; elt.appendChild(a); s.parentNode.insertBefore(a, s); if (/^[@#]/.test(elt.innerHTML)) { elt.innerHTML += '\n    <span>&#9654;</span>'; } else { elt.innerHTML = '\n    <span>&#9654;</span>'; elt.className = 'sf-dump-ref'; } elt.className += ' sf-dump-toggle'; } catch (e) { if ('&' == elt.innerHTML.charAt(0)) { elt.innerHTML = '&#8230;'; elt.className = 'sf-dump-ref'; } } } } } if (doc.evaluate && Array.from && root.children.length > 1) { root.setAttribute('tabindex', 0); SearchState = function () { this.nodes = []; this.idx = 0; }; SearchState.prototype = { next: function () { if (this.isEmpty()) { return this.current(); } this.idx = this.idx< (this.nodes.length - 1) ? this.idx + 1 : 0; return this.current(); }, previous: function () { if (this.isEmpty()) { return this.current(); } this.idx = this.idx > 0 ? this.idx - 1 : (this.nodes.length - 1); return this.current(); }, isEmpty: function () { return 0 === this.count(); }, current: function () { if (this.isEmpty()) { return null; } return this.nodes[this.idx]; }, reset: function () { this.nodes = []; this.idx = 0; }, count: function () { return this.nodes.length; }, }; function showCurrent(state) { var currentNode = state.current(), currentRect, searchRect; if (currentNode) { reveal(currentNode); highlight(root, currentNode, state.nodes); if ('scrollIntoView' in currentNode) { currentNode.scrollIntoView(true); currentRect = currentNode.getBoundingClientRect(); searchRect = search.getBoundingClientRect(); if (currentRect.top < (searchRect.top + searchRect.height)) { window.scrollBy(0, -(searchRect.top + searchRect.height + 5)); } } } counter.textContent = (state.isEmpty() ? 0 : state.idx + 1) + ' of ' + state.count(); } var search = doc.createElement('div'); search.className = 'sf-dump-search-wrapper sf-dump-search-hidden'; search.innerHTML = ' \n    <input type=\"text\" class=\"sf-dump-search-input\">\n    <span class=\"sf-dump-search-count\">0 of 0<\\/span>\n        <button type=\"button\" class=\"sf-dump-search-input-previous\" tabindex=\"-1\">\n            <svg viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\">\n                <path d=\"M1683 1331l-166 165q-19 19-45 19t-45-19L896 965l-531 531q-19 19-45 19t-45-19l-166-165q-19-19-19-45.5t19-45.5l742-741q19-19 45-19t45 19l742 741q19 19 19 45.5t-19 45.5z\"\\/><\\/svg><\\/button>\n                <button type=\"button\" class=\"sf-dump-search-input-next\" tabindex=\"-1\">\n                    <svg viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M1683 808l-742 741q-19 19-45 19t-45-19L109 808q-19-19-19-45.5t19-45.5l166-165q19-19 45-19t45 19l531 531 531-531q19-19 45-19t45 19l166 165q19 19 19 45.5t-19 45.5z\"\\/><\\/svg><\\/button> '; root.insertBefore(search, root.firstChild); var state = new SearchState(); var searchInput = search.querySelector('.sf-dump-search-input'); var counter = search.querySelector('.sf-dump-search-count'); var searchInputTimer = 0; var previousSearchQuery = ''; addEventListener(searchInput, 'keyup', function (e) { var searchQuery = e.target.value; /* Don't perform anything if the pressed key didn't change the query */ if (searchQuery === previousSearchQuery) { return; } previousSearchQuery = searchQuery; clearTimeout(searchInputTimer); searchInputTimer = setTimeout(function () { state.reset(); collapseAll(root); resetHighlightedNodes(root); if ('' === searchQuery) { counter.textContent = '0 of 0'; return; } var classMatches = [ \"sf-dump-str\", \"sf-dump-key\", \"sf-dump-public\", \"sf-dump-protected\", \"sf-dump-private\", ].map(xpathHasClass).join(' or '); var xpathResult = doc.evaluate('.//span[' + classMatches + '][contains(translate(child::text(), ' + xpathString(searchQuery.toUpperCase()) + ', ' + xpathString(searchQuery.toLowerCase()) + '), ' + xpathString(searchQuery.toLowerCase()) + ')]', root, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null); while (node = xpathResult.iterateNext()) state.nodes.push(node); showCurrent(state); }, 400); }); Array.from(search.querySelectorAll('.sf-dump-search-input-next, .sf-dump-search-input-previous')).forEach(function (btn) { addEventListener(btn, 'click', function (e) { e.preventDefault(); -1 !== e.target.className.indexOf('next') ? state.next() : state.previous(); searchInput.focus(); collapseAll(root); showCurrent(state); }) }); addEventListener(root, 'keydown', function (e) { var isSearchActive = !/\\bsf-dump-search-hidden\\b/.test(search.className); if ((114 === e.keyCode && !isSearchActive) || (isCtrlKey(e) && 70 === e.keyCode)) { /* F3 or CMD/CTRL + F */ if (70 === e.keyCode && document.activeElement === searchInput) { /* * If CMD/CTRL + F is hit while having focus on search input, * the user probably meant to trigger browser search instead. * Let the browser execute its behavior: */ return; } e.preventDefault(); search.className = search.className.replace(/\\bsf-dump-search-hidden\\b/, ''); searchInput.focus(); } else if (isSearchActive) { if (27 === e.keyCode) { /* ESC key */ search.className += ' sf-dump-search-hidden'; e.preventDefault(); resetHighlightedNodes(root); searchInput.value = ''; } else if ( (isCtrlKey(e) && 71 === e.keyCode) /* CMD/CTRL + G */ || 13 === e.keyCode /* Enter */ || 114 === e.keyCode /* F3 */ ) { e.preventDefault(); e.shiftKey ? state.previous() : state.next(); collapseAll(root); showCurrent(state); } } }); } if (0 >= options.maxStringLength) { return; } try { elt = root.querySelectorAll('.sf-dump-str'); len = elt.length; i = 0; t = []; while (i < len) t.push(elt[i++]); len = t.length; for (i = 0; i < len; ++i) { elt = t[i]; s = elt.innerText || elt.textContent; x = s.length - options.maxStringLength; if (0 < x) { h = elt.innerHTML; elt[elt.innerText ? 'innerText' : 'textContent'] = s.substring(0, options.maxStringLength); elt.className += ' sf-dump-str-collapse'; elt.innerHTML = '\n                        <span class=sf-dump-str-collapse>'+h+'\n                            <a class=\"sf-dump-ref sf-dump-str-toggle\" title=\"Collapse\"> &#9664;</a>\n                        </span>'+ '\n                        <span class=sf-dump-str-expand>'+elt.innerHTML+'\n                            <a class=\"sf-dump-ref sf-dump-str-toggle\" title=\"'+x+' remaining characters\"> &#9654;</a>\n                        </span>'; } } } catch (e) { } }; })(document);\n                    </script>\n                    <style> .sf-js-enabled pre.sf-dump .sf-dump-compact, .sf-js-enabled .sf-dump-str-collapse .sf-dump-str-collapse, .sf-js-enabled .sf-dump-str-expand .sf-dump-str-expand { display: none; } .sf-dump-hover:hover { background-color: #B729D9; color: #FFF !important; border-radius: 2px; } pre.sf-dump { display: block; white-space: pre; padding: 5px; overflow: initial !important; } pre.sf-dump:after { content: \"\"; visibility: hidden; display: block; height: 0; clear: both; } pre.sf-dump span { display: inline-flex; } pre.sf-dump a { text-decoration: none; cursor: pointer; border: 0; outline: none; color: inherit; } pre.sf-dump img { max-width: 50em; max-height: 50em; margin: .5em 0 0 0; padding: 0; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAHUlEQVQY02O8zAABilCaiQEN0EeA8QuUcX9g3QEAAjcC5piyhyEAAAAASUVORK5CYII=) #D3D3D3; } pre.sf-dump .sf-dump-ellipsis { display: inline-block; overflow: visible; text-overflow: ellipsis; max-width: 5em; white-space: nowrap; overflow: hidden; vertical-align: top; } pre.sf-dump .sf-dump-ellipsis+.sf-dump-ellipsis { max-width: none; } pre.sf-dump code { display:inline; padding:0; background:none; } .sf-dump-public.sf-dump-highlight, .sf-dump-protected.sf-dump-highlight, .sf-dump-private.sf-dump-highlight, .sf-dump-str.sf-dump-highlight, .sf-dump-key.sf-dump-highlight { background: rgba(111, 172, 204, 0.3); border: 1px solid #7DA0B1; border-radius: 3px; } .sf-dump-public.sf-dump-highlight-active, .sf-dump-protected.sf-dump-highlight-active, .sf-dump-private.sf-dump-highlight-active, .sf-dump-str.sf-dump-highlight-active, .sf-dump-key.sf-dump-highlight-active { background: rgba(253, 175, 0, 0.4); border: 1px solid #ffa500; border-radius: 3px; } pre.sf-dump .sf-dump-search-hidden { display: none !important; } pre.sf-dump .sf-dump-search-wrapper { font-size: 0; white-space: nowrap; margin-bottom: 5px; display: flex; position: -webkit-sticky; position: sticky; top: 5px; } pre.sf-dump .sf-dump-search-wrapper > * { vertical-align: top; box-sizing: border-box; height: 21px; font-weight: normal; border-radius: 0; background: #FFF; color: #757575; border: 1px solid #BBB; } pre.sf-dump .sf-dump-search-wrapper > input.sf-dump-search-input { padding: 3px; height: 21px; font-size: 12px; border-right: none; border-top-left-radius: 3px; border-bottom-left-radius: 3px; color: #000; min-width: 15px; width: 100%; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next, pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-previous { background: #F2F2F2; outline: none; border-left: none; font-size: 0; line-height: 0; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next > svg, pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-previous > svg { pointer-events: none; width: 12px; height: 12px; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-count { display: inline-block; padding: 0 5px; margin: 0; border-left: none; line-height: 21px; font-size: 12px; }pre.sf-dump, pre.sf-dump .sf-dump-default{background-color:#18171B; color:#FF8400; line-height:1.2em; font:12px Menlo, Monaco, Consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:99999; word-break: break-all}pre.sf-dump .sf-dump-num{font-weight:bold; color:#1299DA}pre.sf-dump .sf-dump-const{font-weight:bold}pre.sf-dump .sf-dump-str{font-weight:bold; color:#56DB3A}pre.sf-dump .sf-dump-note{color:#1299DA}pre.sf-dump .sf-dump-ref{color:#A0A0A0}pre.sf-dump .sf-dump-public{color:#FFFFFF}pre.sf-dump .sf-dump-protected{color:#FFFFFF}pre.sf-dump .sf-dump-private{color:#FFFFFF}pre.sf-dump .sf-dump-meta{color:#B729D9}pre.sf-dump .sf-dump-key{color:#56DB3A}pre.sf-dump .sf-dump-index{color:#1299DA}pre.sf-dump .sf-dump-ellipsis{color:#FF8400}pre.sf-dump .sf-dump-ns{user-select:none;}pre.sf-dump .sf-dump-ellipsis-note{color:#1299DA}</style>\n                    <pre class=sf-dump id=sf-dump-1954553490 data-indent-pad=\"  \">\"\n                        <span class=sf-dump-str title=\"9 characters\">all chats</span>\"\n                        <span style=\"color: #A0A0A0;\"> // app/Http/Controllers/Chats/ChatsController.php:139</span>\n                    </pre>\n                    <script>Sfdump(\"sf-dump-1954553490\")</script>\n{\n    \"message\": \"SQLSTATE[HY000]: General error: 3024 Query execution was interrupted, maximum statement execution time exceeded (Connection: mysql, SQL: select `contacts`.*, `m`.`id` as `message_id` from `contacts` inner join (SELECT MAX(id) AS id, contact_id FROM messages GROUP BY contact_id) AS m on `contacts`.`id` = `m`.`contact_id` where `contacts`.`customer_id` = 1 and `contacts`.`customer_id` is not null and `contacts`.`status` is not null and `contacts`.`deleted_at` is null order by `m`.`id` desc limit 16 offset 0)\",\n    \"exception\": \"Illuminate\\\\Database\\\\QueryException\",\n    \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php\",\n    \"line\": 813,\n    \"trace\": [\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php\",\n            \"line\": 767,\n            \"function\": \"runQueryCallback\",\n            \"class\": \"Illuminate\\\\Database\\\\Connection\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php\",\n            \"line\": 398,\n            \"function\": \"run\",\n            \"class\": \"Illuminate\\\\Database\\\\Connection\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 2898,\n            \"function\": \"select\",\n            \"class\": \"Illuminate\\\\Database\\\\Connection\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 2883,\n            \"function\": \"runSelect\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 3467,\n            \"function\": \"Illuminate\\\\Database\\\\Query\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 2882,\n            \"function\": \"onceWithColumns\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php\",\n            \"line\": 738,\n            \"function\": \"get\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php\",\n            \"line\": 722,\n            \"function\": \"getModels\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php\",\n            \"line\": 961,\n            \"function\": \"get\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php\",\n            \"line\": 23,\n            \"function\": \"simplePaginate\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php\",\n            \"line\": 52,\n            \"function\": \"forwardCallTo\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\Relation\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php\",\n            \"line\": 517,\n            \"function\": \"forwardDecoratedCallTo\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\Relation\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/app/Http/Controllers/Chats/ChatsController.php\",\n            \"line\": 89,\n            \"function\": \"__call\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\Relation\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/app/Http/Controllers/Chats/ChatsController.php\",\n            \"line\": 141,\n            \"function\": \"allChats\",\n            \"class\": \"App\\\\Http\\\\Controllers\\\\Chats\\\\ChatsController\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php\",\n            \"line\": 54,\n            \"function\": \"index\",\n            \"class\": \"App\\\\Http\\\\Controllers\\\\Chats\\\\ChatsController\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php\",\n            \"line\": 43,\n            \"function\": \"callAction\",\n            \"class\": \"Illuminate\\\\Routing\\\\Controller\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Routing/TracingControllerDispatcherTracing.php\",\n            \"line\": 21,\n            \"function\": \"dispatch\",\n            \"class\": \"Illuminate\\\\Routing\\\\ControllerDispatcher\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Routing/TracingRoutingDispatcher.php\",\n            \"line\": 31,\n            \"function\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\{closure}\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\TracingControllerDispatcherTracing\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Routing/TracingControllerDispatcherTracing.php\",\n            \"line\": 20,\n            \"function\": \"wrapRouteDispatch\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\TracingRoutingDispatcher\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php\",\n            \"line\": 260,\n            \"function\": \"dispatch\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\TracingControllerDispatcherTracing\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php\",\n            \"line\": 206,\n            \"function\": \"runController\",\n            \"class\": \"Illuminate\\\\Routing\\\\Route\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 806,\n            \"function\": \"run\",\n            \"class\": \"Illuminate\\\\Routing\\\\Route\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 144,\n            \"function\": \"Illuminate\\\\Routing\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php\",\n            \"line\": 50,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\SubstituteBindings\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php\",\n            \"line\": 159,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php\",\n            \"line\": 125,\n            \"function\": \"handleRequest\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\ThrottleRequests\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php\",\n            \"line\": 87,\n            \"function\": \"handleRequestUsingNamedLimiter\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\ThrottleRequests\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\ThrottleRequests\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php\",\n            \"line\": 64,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Auth\\\\Middleware\\\\Authenticate\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php\",\n            \"line\": 25,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 144,\n            \"function\": \"Laravel\\\\Sanctum\\\\Http\\\\Middleware\\\\{closure}\",\n            \"class\": \"Laravel\\\\Sanctum\\\\Http\\\\Middleware\\\\EnsureFrontendRequestsAreStateful\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 119,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php\",\n            \"line\": 24,\n            \"function\": \"then\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Laravel\\\\Sanctum\\\\Http\\\\Middleware\\\\EnsureFrontendRequestsAreStateful\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/app/Http/Middleware/ForceJsonResponse.php\",\n            \"line\": 20,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"App\\\\Http\\\\Middleware\\\\ForceJsonResponse\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 119,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 805,\n            \"function\": \"then\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 784,\n            \"function\": \"runRouteWithinStack\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 748,\n            \"function\": \"runRoute\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 737,\n            \"function\": \"dispatchToRoute\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 200,\n            \"function\": \"dispatch\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 144,\n            \"function\": \"Illuminate\\\\Foundation\\\\Http\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/FlushEventsMiddleware.php\",\n            \"line\": 13,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Http\\\\FlushEventsMiddleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestIpMiddleware.php\",\n            \"line\": 45,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Http\\\\SetRequestIpMiddleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestMiddleware.php\",\n            \"line\": 31,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Http\\\\SetRequestMiddleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php\",\n            \"line\": 49,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\View\\\\Middleware\\\\ShareErrorsFromSession\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php\",\n            \"line\": 121,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php\",\n            \"line\": 64,\n            \"function\": \"handleStatefulRequest\",\n            \"class\": \"Illuminate\\\\Session\\\\Middleware\\\\StartSession\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Session\\\\Middleware\\\\StartSession\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php\",\n            \"line\": 21,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php\",\n            \"line\": 50,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TrimStrings\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php\",\n            \"line\": 27,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Http\\\\Middleware\\\\ValidatePostSize\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php\",\n            \"line\": 103,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\PreventRequestsDuringMaintenance\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php\",\n            \"line\": 62,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Http\\\\Middleware\\\\HandleCors\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php\",\n            \"line\": 57,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Http\\\\Middleware\\\\TrustProxies\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Middleware.php\",\n            \"line\": 97,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Middleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 119,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 175,\n            \"function\": \"then\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 144,\n            \"function\": \"sendRequestThroughRouter\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/public/index.php\",\n            \"line\": 51,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php\",\n            \"line\": 16,\n            \"function\": \"require_once\"\n        }\n    ]\n}"}],"_postman_id":"039c2eb4-8a67-4cb2-8d82-02b80d5672f7"},{"name":"Chats from Team/Department","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"f2149b04-691d-47a6-a63c-f6c07446b8a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/chats?page=1&include=read_status,chat_status,attendant","description":"<p>Paginação e os principais includes</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","chats"],"host":["{{host}}"],"query":[{"key":"page","value":"1"},{"key":"include","value":"read_status,chat_status,attendant"},{"disabled":true,"key":"filters","value":"(tags=([{{filter_tags}}]),users=({{filter_users}})),teams=({{filter_teams}}),started_at=([gt=2024-01-01 00:00,lt=2024-02-01 00:00])"}],"variable":[]}},"response":[{"id":"0f20472d-405f-40f3-ae5b-2d867dd0c6a0","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"},{"id":"7625805b-0632-4d9c-925f-a0e3e8a31ab8","name":"All chats","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/chats?page=1&include=read_status,chat_status,attendant","host":["{{host}}"],"path":["accounts","{{account_uuid}}","chats"],"query":[{"key":"page","value":"1"},{"key":"include","value":"read_status,chat_status,attendant"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 27 Mar 2024 18:18:22 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.3.3-1+ubuntu22.04.1+deb.sury.org+1","enabled":true},{"key":"Content-type","value":"text/html; charset=UTF-8","enabled":true}],"cookie":[],"responseTime":null,"body":"<script> Sfdump = window.Sfdump || (function (doc) { doc.documentElement.classList.add('sf-js-enabled'); var rxEsc = /([.*+?^${}()|\\[\\]\\/\\\\])/g, idRx = /\\bsf-dump-\\d+-ref[012]\\w+\\b/, keyHint = 0 <= navigator.platform.toUpperCase().indexOf('MAC') ? 'Cmd' : 'Ctrl', addEventListener = function (e, n, cb) { e.addEventListener(n, cb, false); }; if (!doc.addEventListener) { addEventListener = function (element, eventName, callback) { element.attachEvent('on' + eventName, function (e) { e.preventDefault = function () {e.returnValue = false;}; e.target = e.srcElement; callback(e); }); }; } function toggle(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className, arrow, newClass; if (/\\bsf-dump-compact\\b/.test(oldClass)) { arrow = '&#9660;'; newClass = 'sf-dump-expanded'; } else if (/\\bsf-dump-expanded\\b/.test(oldClass)) { arrow = '&#9654;'; newClass = 'sf-dump-compact'; } else { return false; } if (doc.createEvent && s.dispatchEvent) { var event = doc.createEvent('Event'); event.initEvent('sf-dump-expanded' === newClass ? 'sfbeforedumpexpand' : 'sfbeforedumpcollapse', true, false); s.dispatchEvent(event); } a.lastChild.innerHTML = arrow; s.className = s.className.replace(/\\bsf-dump-(compact|expanded)\\b/, newClass); if (recursive) { try { a = s.querySelectorAll('.'+oldClass); for (s = 0; s < a.length; ++s) { if (-1 == a[s].className.indexOf(newClass)) { a[s].className = newClass; a[s].previousSibling.lastChild.innerHTML = arrow; } } } catch (e) { } } return true; }; function collapse(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className; if (/\\bsf-dump-expanded\\b/.test(oldClass)) { toggle(a, recursive); return true; } return false; }; function expand(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className; if (/\\bsf-dump-compact\\b/.test(oldClass)) { toggle(a, recursive); return true; } return false; }; function collapseAll(root) { var a = root.querySelector('a.sf-dump-toggle'); if (a) { collapse(a, true); expand(a); return true; } return false; } function reveal(node) { var previous, parents = []; while ((node = node.parentNode || {}) && (previous = node.previousSibling) && 'A' === previous.tagName) { parents.push(previous); } if (0 !== parents.length) { parents.forEach(function (parent) { expand(parent); }); return true; } return false; } function highlight(root, activeNode, nodes) { resetHighlightedNodes(root); Array.from(nodes||[]).forEach(function (node) { if (!/\\bsf-dump-highlight\\b/.test(node.className)) { node.className = node.className + ' sf-dump-highlight'; } }); if (!/\\bsf-dump-highlight-active\\b/.test(activeNode.className)) { activeNode.className = activeNode.className + ' sf-dump-highlight-active'; } } function resetHighlightedNodes(root) { Array.from(root.querySelectorAll('.sf-dump-str, .sf-dump-key, .sf-dump-public, .sf-dump-protected, .sf-dump-private')).forEach(function (strNode) { strNode.className = strNode.className.replace(/\\bsf-dump-highlight\\b/, ''); strNode.className = strNode.className.replace(/\\bsf-dump-highlight-active\\b/, ''); }); } return function (root, x) { root = doc.getElementById(root); var indentRx = new RegExp('^('+(root.getAttribute('data-indent-pad') || ' ').replace(rxEsc, '\\\\$1')+')+', 'm'), options = {\"maxDepth\":1,\"maxStringLength\":160,\"fileLinkFormat\":false}, elt = root.getElementsByTagName('A'), len = elt.length, i = 0, s, h, t = []; while (i < len) t.push(elt[i++]); for (i in x) { options[i] = x[i]; } function a(e, f) { addEventListener(root, e, function (e, n) { if ('A' == e.target.tagName) { f(e.target, e); } else if ('A' == e.target.parentNode.tagName) { f(e.target.parentNode, e); } else { n = /\\bsf-dump-ellipsis\\b/.test(e.target.className) ? e.target.parentNode : e.target; if ((n = n.nextElementSibling) && 'A' == n.tagName) { if (!/\\bsf-dump-toggle\\b/.test(n.className)) { n = n.nextElementSibling || n; } f(n, e, true); } } }); }; function isCtrlKey(e) { return e.ctrlKey || e.metaKey; } function xpathString(str) { var parts = str.match(/[^'\"]+|['\"]/g).map(function (part) { if (\"'\" == part) { return '\"\\'\"'; } if ('\"' == part) { return \"'\\\"'\"; } return \"'\" + part + \"'\"; }); return \"concat(\" + parts.join(\",\") + \", '')\"; } function xpathHasClass(className) { return \"contains(concat(' ', normalize-space(@class), ' '), ' \" + className +\" ')\"; } a('mouseover', function (a, e, c) { if (c) { e.target.style.cursor = \"pointer\"; } }); a('click', function (a, e, c) { if (/\\bsf-dump-toggle\\b/.test(a.className)) { e.preventDefault(); if (!toggle(a, isCtrlKey(e))) { var r = doc.getElementById(a.getAttribute('href').slice(1)), s = r.previousSibling, f = r.parentNode, t = a.parentNode; t.replaceChild(r, a); f.replaceChild(a, s); t.insertBefore(s, r); f = f.firstChild.nodeValue.match(indentRx); t = t.firstChild.nodeValue.match(indentRx); if (f && t && f[0] !== t[0]) { r.innerHTML = r.innerHTML.replace(new RegExp('^'+f[0].replace(rxEsc, '\\\\$1'), 'mg'), t[0]); } if (/\\bsf-dump-compact\\b/.test(r.className)) { toggle(s, isCtrlKey(e)); } } if (c) { } else if (doc.getSelection) { try { doc.getSelection().removeAllRanges(); } catch (e) { doc.getSelection().empty(); } } else { doc.selection.empty(); } } else if (/\\bsf-dump-str-toggle\\b/.test(a.className)) { e.preventDefault(); e = a.parentNode.parentNode; e.className = e.className.replace(/\\bsf-dump-str-(expand|collapse)\\b/, a.parentNode.className); } }); elt = root.getElementsByTagName('SAMP'); len = elt.length; i = 0; while (i < len) t.push(elt[i++]); len = t.length; for (i = 0; i < len; ++i) { elt = t[i]; if ('SAMP' == elt.tagName) { a = elt.previousSibling || {}; if ('A' != a.tagName) { a = doc.createElement('A'); a.className = 'sf-dump-ref'; elt.parentNode.insertBefore(a, elt); } else { a.innerHTML += ' '; } a.title = (a.title ? a.title+'\\n[' : '[')+keyHint+'+click] Expand all children'; a.innerHTML += elt.className == 'sf-dump-compact' ? '\n    <span>&#9654;</span>' : '\n    <span>&#9660;</span>'; a.className += ' sf-dump-toggle'; x = 1; if ('sf-dump' != elt.parentNode.className) { x += elt.parentNode.getAttribute('data-depth')/1; } } else if (/\\bsf-dump-ref\\b/.test(elt.className) && (a = elt.getAttribute('href'))) { a = a.slice(1); elt.className += ' sf-dump-hover'; elt.className += ' '+a; if (/[\\[{]$/.test(elt.previousSibling.nodeValue)) { a = a != elt.nextSibling.id && doc.getElementById(a); try { s = a.nextSibling; elt.appendChild(a); s.parentNode.insertBefore(a, s); if (/^[@#]/.test(elt.innerHTML)) { elt.innerHTML += '\n    <span>&#9654;</span>'; } else { elt.innerHTML = '\n    <span>&#9654;</span>'; elt.className = 'sf-dump-ref'; } elt.className += ' sf-dump-toggle'; } catch (e) { if ('&' == elt.innerHTML.charAt(0)) { elt.innerHTML = '&#8230;'; elt.className = 'sf-dump-ref'; } } } } } if (doc.evaluate && Array.from && root.children.length > 1) { root.setAttribute('tabindex', 0); SearchState = function () { this.nodes = []; this.idx = 0; }; SearchState.prototype = { next: function () { if (this.isEmpty()) { return this.current(); } this.idx = this.idx< (this.nodes.length - 1) ? this.idx + 1 : 0; return this.current(); }, previous: function () { if (this.isEmpty()) { return this.current(); } this.idx = this.idx > 0 ? this.idx - 1 : (this.nodes.length - 1); return this.current(); }, isEmpty: function () { return 0 === this.count(); }, current: function () { if (this.isEmpty()) { return null; } return this.nodes[this.idx]; }, reset: function () { this.nodes = []; this.idx = 0; }, count: function () { return this.nodes.length; }, }; function showCurrent(state) { var currentNode = state.current(), currentRect, searchRect; if (currentNode) { reveal(currentNode); highlight(root, currentNode, state.nodes); if ('scrollIntoView' in currentNode) { currentNode.scrollIntoView(true); currentRect = currentNode.getBoundingClientRect(); searchRect = search.getBoundingClientRect(); if (currentRect.top < (searchRect.top + searchRect.height)) { window.scrollBy(0, -(searchRect.top + searchRect.height + 5)); } } } counter.textContent = (state.isEmpty() ? 0 : state.idx + 1) + ' of ' + state.count(); } var search = doc.createElement('div'); search.className = 'sf-dump-search-wrapper sf-dump-search-hidden'; search.innerHTML = ' \n    <input type=\"text\" class=\"sf-dump-search-input\">\n    <span class=\"sf-dump-search-count\">0 of 0<\\/span>\n        <button type=\"button\" class=\"sf-dump-search-input-previous\" tabindex=\"-1\">\n            <svg viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\">\n                <path d=\"M1683 1331l-166 165q-19 19-45 19t-45-19L896 965l-531 531q-19 19-45 19t-45-19l-166-165q-19-19-19-45.5t19-45.5l742-741q19-19 45-19t45 19l742 741q19 19 19 45.5t-19 45.5z\"\\/><\\/svg><\\/button>\n                <button type=\"button\" class=\"sf-dump-search-input-next\" tabindex=\"-1\">\n                    <svg viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M1683 808l-742 741q-19 19-45 19t-45-19L109 808q-19-19-19-45.5t19-45.5l166-165q19-19 45-19t45 19l531 531 531-531q19-19 45-19t45 19l166 165q19 19 19 45.5t-19 45.5z\"\\/><\\/svg><\\/button> '; root.insertBefore(search, root.firstChild); var state = new SearchState(); var searchInput = search.querySelector('.sf-dump-search-input'); var counter = search.querySelector('.sf-dump-search-count'); var searchInputTimer = 0; var previousSearchQuery = ''; addEventListener(searchInput, 'keyup', function (e) { var searchQuery = e.target.value; /* Don't perform anything if the pressed key didn't change the query */ if (searchQuery === previousSearchQuery) { return; } previousSearchQuery = searchQuery; clearTimeout(searchInputTimer); searchInputTimer = setTimeout(function () { state.reset(); collapseAll(root); resetHighlightedNodes(root); if ('' === searchQuery) { counter.textContent = '0 of 0'; return; } var classMatches = [ \"sf-dump-str\", \"sf-dump-key\", \"sf-dump-public\", \"sf-dump-protected\", \"sf-dump-private\", ].map(xpathHasClass).join(' or '); var xpathResult = doc.evaluate('.//span[' + classMatches + '][contains(translate(child::text(), ' + xpathString(searchQuery.toUpperCase()) + ', ' + xpathString(searchQuery.toLowerCase()) + '), ' + xpathString(searchQuery.toLowerCase()) + ')]', root, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null); while (node = xpathResult.iterateNext()) state.nodes.push(node); showCurrent(state); }, 400); }); Array.from(search.querySelectorAll('.sf-dump-search-input-next, .sf-dump-search-input-previous')).forEach(function (btn) { addEventListener(btn, 'click', function (e) { e.preventDefault(); -1 !== e.target.className.indexOf('next') ? state.next() : state.previous(); searchInput.focus(); collapseAll(root); showCurrent(state); }) }); addEventListener(root, 'keydown', function (e) { var isSearchActive = !/\\bsf-dump-search-hidden\\b/.test(search.className); if ((114 === e.keyCode && !isSearchActive) || (isCtrlKey(e) && 70 === e.keyCode)) { /* F3 or CMD/CTRL + F */ if (70 === e.keyCode && document.activeElement === searchInput) { /* * If CMD/CTRL + F is hit while having focus on search input, * the user probably meant to trigger browser search instead. * Let the browser execute its behavior: */ return; } e.preventDefault(); search.className = search.className.replace(/\\bsf-dump-search-hidden\\b/, ''); searchInput.focus(); } else if (isSearchActive) { if (27 === e.keyCode) { /* ESC key */ search.className += ' sf-dump-search-hidden'; e.preventDefault(); resetHighlightedNodes(root); searchInput.value = ''; } else if ( (isCtrlKey(e) && 71 === e.keyCode) /* CMD/CTRL + G */ || 13 === e.keyCode /* Enter */ || 114 === e.keyCode /* F3 */ ) { e.preventDefault(); e.shiftKey ? state.previous() : state.next(); collapseAll(root); showCurrent(state); } } }); } if (0 >= options.maxStringLength) { return; } try { elt = root.querySelectorAll('.sf-dump-str'); len = elt.length; i = 0; t = []; while (i < len) t.push(elt[i++]); len = t.length; for (i = 0; i < len; ++i) { elt = t[i]; s = elt.innerText || elt.textContent; x = s.length - options.maxStringLength; if (0 < x) { h = elt.innerHTML; elt[elt.innerText ? 'innerText' : 'textContent'] = s.substring(0, options.maxStringLength); elt.className += ' sf-dump-str-collapse'; elt.innerHTML = '\n                        <span class=sf-dump-str-collapse>'+h+'\n                            <a class=\"sf-dump-ref sf-dump-str-toggle\" title=\"Collapse\"> &#9664;</a>\n                        </span>'+ '\n                        <span class=sf-dump-str-expand>'+elt.innerHTML+'\n                            <a class=\"sf-dump-ref sf-dump-str-toggle\" title=\"'+x+' remaining characters\"> &#9654;</a>\n                        </span>'; } } } catch (e) { } }; })(document);\n                    </script>\n                    <style> .sf-js-enabled pre.sf-dump .sf-dump-compact, .sf-js-enabled .sf-dump-str-collapse .sf-dump-str-collapse, .sf-js-enabled .sf-dump-str-expand .sf-dump-str-expand { display: none; } .sf-dump-hover:hover { background-color: #B729D9; color: #FFF !important; border-radius: 2px; } pre.sf-dump { display: block; white-space: pre; padding: 5px; overflow: initial !important; } pre.sf-dump:after { content: \"\"; visibility: hidden; display: block; height: 0; clear: both; } pre.sf-dump span { display: inline-flex; } pre.sf-dump a { text-decoration: none; cursor: pointer; border: 0; outline: none; color: inherit; } pre.sf-dump img { max-width: 50em; max-height: 50em; margin: .5em 0 0 0; padding: 0; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAHUlEQVQY02O8zAABilCaiQEN0EeA8QuUcX9g3QEAAjcC5piyhyEAAAAASUVORK5CYII=) #D3D3D3; } pre.sf-dump .sf-dump-ellipsis { display: inline-block; overflow: visible; text-overflow: ellipsis; max-width: 5em; white-space: nowrap; overflow: hidden; vertical-align: top; } pre.sf-dump .sf-dump-ellipsis+.sf-dump-ellipsis { max-width: none; } pre.sf-dump code { display:inline; padding:0; background:none; } .sf-dump-public.sf-dump-highlight, .sf-dump-protected.sf-dump-highlight, .sf-dump-private.sf-dump-highlight, .sf-dump-str.sf-dump-highlight, .sf-dump-key.sf-dump-highlight { background: rgba(111, 172, 204, 0.3); border: 1px solid #7DA0B1; border-radius: 3px; } .sf-dump-public.sf-dump-highlight-active, .sf-dump-protected.sf-dump-highlight-active, .sf-dump-private.sf-dump-highlight-active, .sf-dump-str.sf-dump-highlight-active, .sf-dump-key.sf-dump-highlight-active { background: rgba(253, 175, 0, 0.4); border: 1px solid #ffa500; border-radius: 3px; } pre.sf-dump .sf-dump-search-hidden { display: none !important; } pre.sf-dump .sf-dump-search-wrapper { font-size: 0; white-space: nowrap; margin-bottom: 5px; display: flex; position: -webkit-sticky; position: sticky; top: 5px; } pre.sf-dump .sf-dump-search-wrapper > * { vertical-align: top; box-sizing: border-box; height: 21px; font-weight: normal; border-radius: 0; background: #FFF; color: #757575; border: 1px solid #BBB; } pre.sf-dump .sf-dump-search-wrapper > input.sf-dump-search-input { padding: 3px; height: 21px; font-size: 12px; border-right: none; border-top-left-radius: 3px; border-bottom-left-radius: 3px; color: #000; min-width: 15px; width: 100%; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next, pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-previous { background: #F2F2F2; outline: none; border-left: none; font-size: 0; line-height: 0; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next > svg, pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-previous > svg { pointer-events: none; width: 12px; height: 12px; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-count { display: inline-block; padding: 0 5px; margin: 0; border-left: none; line-height: 21px; font-size: 12px; }pre.sf-dump, pre.sf-dump .sf-dump-default{background-color:#18171B; color:#FF8400; line-height:1.2em; font:12px Menlo, Monaco, Consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:99999; word-break: break-all}pre.sf-dump .sf-dump-num{font-weight:bold; color:#1299DA}pre.sf-dump .sf-dump-const{font-weight:bold}pre.sf-dump .sf-dump-str{font-weight:bold; color:#56DB3A}pre.sf-dump .sf-dump-note{color:#1299DA}pre.sf-dump .sf-dump-ref{color:#A0A0A0}pre.sf-dump .sf-dump-public{color:#FFFFFF}pre.sf-dump .sf-dump-protected{color:#FFFFFF}pre.sf-dump .sf-dump-private{color:#FFFFFF}pre.sf-dump .sf-dump-meta{color:#B729D9}pre.sf-dump .sf-dump-key{color:#56DB3A}pre.sf-dump .sf-dump-index{color:#1299DA}pre.sf-dump .sf-dump-ellipsis{color:#FF8400}pre.sf-dump .sf-dump-ns{user-select:none;}pre.sf-dump .sf-dump-ellipsis-note{color:#1299DA}</style>\n                    <pre class=sf-dump id=sf-dump-1954553490 data-indent-pad=\"  \">\"\n                        <span class=sf-dump-str title=\"9 characters\">all chats</span>\"\n                        <span style=\"color: #A0A0A0;\"> // app/Http/Controllers/Chats/ChatsController.php:139</span>\n                    </pre>\n                    <script>Sfdump(\"sf-dump-1954553490\")</script>\n{\n    \"message\": \"SQLSTATE[HY000]: General error: 3024 Query execution was interrupted, maximum statement execution time exceeded (Connection: mysql, SQL: select `contacts`.*, `m`.`id` as `message_id` from `contacts` inner join (SELECT MAX(id) AS id, contact_id FROM messages GROUP BY contact_id) AS m on `contacts`.`id` = `m`.`contact_id` where `contacts`.`customer_id` = 1 and `contacts`.`customer_id` is not null and `contacts`.`status` is not null and `contacts`.`deleted_at` is null order by `m`.`id` desc limit 16 offset 0)\",\n    \"exception\": \"Illuminate\\\\Database\\\\QueryException\",\n    \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php\",\n    \"line\": 813,\n    \"trace\": [\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php\",\n            \"line\": 767,\n            \"function\": \"runQueryCallback\",\n            \"class\": \"Illuminate\\\\Database\\\\Connection\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php\",\n            \"line\": 398,\n            \"function\": \"run\",\n            \"class\": \"Illuminate\\\\Database\\\\Connection\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 2898,\n            \"function\": \"select\",\n            \"class\": \"Illuminate\\\\Database\\\\Connection\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 2883,\n            \"function\": \"runSelect\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 3467,\n            \"function\": \"Illuminate\\\\Database\\\\Query\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 2882,\n            \"function\": \"onceWithColumns\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php\",\n            \"line\": 738,\n            \"function\": \"get\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php\",\n            \"line\": 722,\n            \"function\": \"getModels\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php\",\n            \"line\": 961,\n            \"function\": \"get\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php\",\n            \"line\": 23,\n            \"function\": \"simplePaginate\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php\",\n            \"line\": 52,\n            \"function\": \"forwardCallTo\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\Relation\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php\",\n            \"line\": 517,\n            \"function\": \"forwardDecoratedCallTo\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\Relation\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/app/Http/Controllers/Chats/ChatsController.php\",\n            \"line\": 89,\n            \"function\": \"__call\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\Relation\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/app/Http/Controllers/Chats/ChatsController.php\",\n            \"line\": 141,\n            \"function\": \"allChats\",\n            \"class\": \"App\\\\Http\\\\Controllers\\\\Chats\\\\ChatsController\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php\",\n            \"line\": 54,\n            \"function\": \"index\",\n            \"class\": \"App\\\\Http\\\\Controllers\\\\Chats\\\\ChatsController\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php\",\n            \"line\": 43,\n            \"function\": \"callAction\",\n            \"class\": \"Illuminate\\\\Routing\\\\Controller\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Routing/TracingControllerDispatcherTracing.php\",\n            \"line\": 21,\n            \"function\": \"dispatch\",\n            \"class\": \"Illuminate\\\\Routing\\\\ControllerDispatcher\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Routing/TracingRoutingDispatcher.php\",\n            \"line\": 31,\n            \"function\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\{closure}\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\TracingControllerDispatcherTracing\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Routing/TracingControllerDispatcherTracing.php\",\n            \"line\": 20,\n            \"function\": \"wrapRouteDispatch\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\TracingRoutingDispatcher\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php\",\n            \"line\": 260,\n            \"function\": \"dispatch\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\TracingControllerDispatcherTracing\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php\",\n            \"line\": 206,\n            \"function\": \"runController\",\n            \"class\": \"Illuminate\\\\Routing\\\\Route\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 806,\n            \"function\": \"run\",\n            \"class\": \"Illuminate\\\\Routing\\\\Route\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 144,\n            \"function\": \"Illuminate\\\\Routing\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php\",\n            \"line\": 50,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\SubstituteBindings\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php\",\n            \"line\": 159,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php\",\n            \"line\": 125,\n            \"function\": \"handleRequest\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\ThrottleRequests\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php\",\n            \"line\": 87,\n            \"function\": \"handleRequestUsingNamedLimiter\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\ThrottleRequests\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\ThrottleRequests\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php\",\n            \"line\": 64,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Auth\\\\Middleware\\\\Authenticate\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php\",\n            \"line\": 25,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 144,\n            \"function\": \"Laravel\\\\Sanctum\\\\Http\\\\Middleware\\\\{closure}\",\n            \"class\": \"Laravel\\\\Sanctum\\\\Http\\\\Middleware\\\\EnsureFrontendRequestsAreStateful\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 119,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php\",\n            \"line\": 24,\n            \"function\": \"then\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Laravel\\\\Sanctum\\\\Http\\\\Middleware\\\\EnsureFrontendRequestsAreStateful\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/app/Http/Middleware/ForceJsonResponse.php\",\n            \"line\": 20,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"App\\\\Http\\\\Middleware\\\\ForceJsonResponse\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 119,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 805,\n            \"function\": \"then\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 784,\n            \"function\": \"runRouteWithinStack\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 748,\n            \"function\": \"runRoute\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 737,\n            \"function\": \"dispatchToRoute\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 200,\n            \"function\": \"dispatch\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 144,\n            \"function\": \"Illuminate\\\\Foundation\\\\Http\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/FlushEventsMiddleware.php\",\n            \"line\": 13,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Http\\\\FlushEventsMiddleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestIpMiddleware.php\",\n            \"line\": 45,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Http\\\\SetRequestIpMiddleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestMiddleware.php\",\n            \"line\": 31,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Http\\\\SetRequestMiddleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php\",\n            \"line\": 49,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\View\\\\Middleware\\\\ShareErrorsFromSession\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php\",\n            \"line\": 121,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php\",\n            \"line\": 64,\n            \"function\": \"handleStatefulRequest\",\n            \"class\": \"Illuminate\\\\Session\\\\Middleware\\\\StartSession\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Session\\\\Middleware\\\\StartSession\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php\",\n            \"line\": 21,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php\",\n            \"line\": 50,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TrimStrings\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php\",\n            \"line\": 27,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Http\\\\Middleware\\\\ValidatePostSize\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php\",\n            \"line\": 103,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\PreventRequestsDuringMaintenance\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php\",\n            \"line\": 62,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Http\\\\Middleware\\\\HandleCors\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php\",\n            \"line\": 57,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Http\\\\Middleware\\\\TrustProxies\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Middleware.php\",\n            \"line\": 97,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Middleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 119,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 175,\n            \"function\": \"then\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 144,\n            \"function\": \"sendRequestThroughRouter\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/public/index.php\",\n            \"line\": 51,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php\",\n            \"line\": 16,\n            \"function\": \"require_once\"\n        }\n    ]\n}"}],"_postman_id":"f2149b04-691d-47a6-a63c-f6c07446b8a4"},{"name":"Chats with filters","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"7baefa8b-f829-4457-b877-968af51f76a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/chats?page=1&include=attributes,read_status,chat_status,attendant,tags&order=-created_at&status=OPEN&read_status=UNREAD&assigned={{user_uuid}}&filters=(tags=([{{tag_uuid}},{{upload_tag_uuid}}],[{{tag_uuid}}])&search=John Doe&assigned_status=NOT_ASSIGNED","description":"<p>Filtros avançados</p>\n<p>A utilização do parâmetro \"filters\" permite criar segmentações avançadas na listagem de chats, como por exemplo buscar por tags(etiquetas), data, usuários e combinar este relacionamento.</p>\n<p>Itens dentro de parênteses *()* são compreendidos como \"OU\", enquanto que itens dentro de colchetes *[]*, como \"E\".</p>\n<p>Por exemplo, o filtro:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>tags=(\n  [tag1_uuid,tag2_uuid],\n  [tag3_uuid]\n)\n\n</code></pre><p>significa que deve buscar por chats que tenha ao mesmo tempo a tag 1 e a tag 2 ou que tenha a tag 3.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>&amp;filters=(\n  tags=(\n    [71104f31-935b-4911-8bce-5f2fd2d2883f,08b288cc-5103-4324-89aa-e297faabe469],\n    [b976605d-ac29-4999-99dd-d5fc49393a17]\n  ),\n  user=(\n    [ff4a8056-32c8-43dc-b64c-40473cb32354]\n  ),\n  started_at=(\n    [gt=2024-01-01 00:00,lt=2024-02-01 00:00]\n  )\n)\n\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","chats"],"host":["{{host}}"],"query":[{"key":"page","value":"1"},{"key":"include","value":"attributes,read_status,chat_status,attendant,tags"},{"key":"order","value":"-created_at"},{"key":"status","value":"OPEN"},{"key":"read_status","value":"UNREAD"},{"key":"assigned","value":"{{user_uuid}}"},{"key":"filters","value":"(tags=([{{tag_uuid}},{{upload_tag_uuid}}],[{{tag_uuid}}])"},{"key":"search","value":"John Doe"},{"description":{"content":"<p>ASSIGNED ou NOT_ASSIGNED</p>\n","type":"text/plain"},"key":"assigned_status","value":"NOT_ASSIGNED"}],"variable":[]}},"response":[{"id":"6fa24b3b-ece6-41d3-a9a1-621d58be11ea","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"},{"id":"3e0da2d6-9f64-4db9-ba67-3821b4b46582","name":"All chats","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/chats?page=1&include=read_status,chat_status,attendant","host":["{{host}}"],"path":["accounts","{{account_uuid}}","chats"],"query":[{"key":"page","value":"1"},{"key":"include","value":"read_status,chat_status,attendant"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 27 Mar 2024 18:18:22 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.3.3-1+ubuntu22.04.1+deb.sury.org+1","enabled":true},{"key":"Content-type","value":"text/html; charset=UTF-8","enabled":true}],"cookie":[],"responseTime":null,"body":"<script> Sfdump = window.Sfdump || (function (doc) { doc.documentElement.classList.add('sf-js-enabled'); var rxEsc = /([.*+?^${}()|\\[\\]\\/\\\\])/g, idRx = /\\bsf-dump-\\d+-ref[012]\\w+\\b/, keyHint = 0 <= navigator.platform.toUpperCase().indexOf('MAC') ? 'Cmd' : 'Ctrl', addEventListener = function (e, n, cb) { e.addEventListener(n, cb, false); }; if (!doc.addEventListener) { addEventListener = function (element, eventName, callback) { element.attachEvent('on' + eventName, function (e) { e.preventDefault = function () {e.returnValue = false;}; e.target = e.srcElement; callback(e); }); }; } function toggle(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className, arrow, newClass; if (/\\bsf-dump-compact\\b/.test(oldClass)) { arrow = '&#9660;'; newClass = 'sf-dump-expanded'; } else if (/\\bsf-dump-expanded\\b/.test(oldClass)) { arrow = '&#9654;'; newClass = 'sf-dump-compact'; } else { return false; } if (doc.createEvent && s.dispatchEvent) { var event = doc.createEvent('Event'); event.initEvent('sf-dump-expanded' === newClass ? 'sfbeforedumpexpand' : 'sfbeforedumpcollapse', true, false); s.dispatchEvent(event); } a.lastChild.innerHTML = arrow; s.className = s.className.replace(/\\bsf-dump-(compact|expanded)\\b/, newClass); if (recursive) { try { a = s.querySelectorAll('.'+oldClass); for (s = 0; s < a.length; ++s) { if (-1 == a[s].className.indexOf(newClass)) { a[s].className = newClass; a[s].previousSibling.lastChild.innerHTML = arrow; } } } catch (e) { } } return true; }; function collapse(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className; if (/\\bsf-dump-expanded\\b/.test(oldClass)) { toggle(a, recursive); return true; } return false; }; function expand(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className; if (/\\bsf-dump-compact\\b/.test(oldClass)) { toggle(a, recursive); return true; } return false; }; function collapseAll(root) { var a = root.querySelector('a.sf-dump-toggle'); if (a) { collapse(a, true); expand(a); return true; } return false; } function reveal(node) { var previous, parents = []; while ((node = node.parentNode || {}) && (previous = node.previousSibling) && 'A' === previous.tagName) { parents.push(previous); } if (0 !== parents.length) { parents.forEach(function (parent) { expand(parent); }); return true; } return false; } function highlight(root, activeNode, nodes) { resetHighlightedNodes(root); Array.from(nodes||[]).forEach(function (node) { if (!/\\bsf-dump-highlight\\b/.test(node.className)) { node.className = node.className + ' sf-dump-highlight'; } }); if (!/\\bsf-dump-highlight-active\\b/.test(activeNode.className)) { activeNode.className = activeNode.className + ' sf-dump-highlight-active'; } } function resetHighlightedNodes(root) { Array.from(root.querySelectorAll('.sf-dump-str, .sf-dump-key, .sf-dump-public, .sf-dump-protected, .sf-dump-private')).forEach(function (strNode) { strNode.className = strNode.className.replace(/\\bsf-dump-highlight\\b/, ''); strNode.className = strNode.className.replace(/\\bsf-dump-highlight-active\\b/, ''); }); } return function (root, x) { root = doc.getElementById(root); var indentRx = new RegExp('^('+(root.getAttribute('data-indent-pad') || ' ').replace(rxEsc, '\\\\$1')+')+', 'm'), options = {\"maxDepth\":1,\"maxStringLength\":160,\"fileLinkFormat\":false}, elt = root.getElementsByTagName('A'), len = elt.length, i = 0, s, h, t = []; while (i < len) t.push(elt[i++]); for (i in x) { options[i] = x[i]; } function a(e, f) { addEventListener(root, e, function (e, n) { if ('A' == e.target.tagName) { f(e.target, e); } else if ('A' == e.target.parentNode.tagName) { f(e.target.parentNode, e); } else { n = /\\bsf-dump-ellipsis\\b/.test(e.target.className) ? e.target.parentNode : e.target; if ((n = n.nextElementSibling) && 'A' == n.tagName) { if (!/\\bsf-dump-toggle\\b/.test(n.className)) { n = n.nextElementSibling || n; } f(n, e, true); } } }); }; function isCtrlKey(e) { return e.ctrlKey || e.metaKey; } function xpathString(str) { var parts = str.match(/[^'\"]+|['\"]/g).map(function (part) { if (\"'\" == part) { return '\"\\'\"'; } if ('\"' == part) { return \"'\\\"'\"; } return \"'\" + part + \"'\"; }); return \"concat(\" + parts.join(\",\") + \", '')\"; } function xpathHasClass(className) { return \"contains(concat(' ', normalize-space(@class), ' '), ' \" + className +\" ')\"; } a('mouseover', function (a, e, c) { if (c) { e.target.style.cursor = \"pointer\"; } }); a('click', function (a, e, c) { if (/\\bsf-dump-toggle\\b/.test(a.className)) { e.preventDefault(); if (!toggle(a, isCtrlKey(e))) { var r = doc.getElementById(a.getAttribute('href').slice(1)), s = r.previousSibling, f = r.parentNode, t = a.parentNode; t.replaceChild(r, a); f.replaceChild(a, s); t.insertBefore(s, r); f = f.firstChild.nodeValue.match(indentRx); t = t.firstChild.nodeValue.match(indentRx); if (f && t && f[0] !== t[0]) { r.innerHTML = r.innerHTML.replace(new RegExp('^'+f[0].replace(rxEsc, '\\\\$1'), 'mg'), t[0]); } if (/\\bsf-dump-compact\\b/.test(r.className)) { toggle(s, isCtrlKey(e)); } } if (c) { } else if (doc.getSelection) { try { doc.getSelection().removeAllRanges(); } catch (e) { doc.getSelection().empty(); } } else { doc.selection.empty(); } } else if (/\\bsf-dump-str-toggle\\b/.test(a.className)) { e.preventDefault(); e = a.parentNode.parentNode; e.className = e.className.replace(/\\bsf-dump-str-(expand|collapse)\\b/, a.parentNode.className); } }); elt = root.getElementsByTagName('SAMP'); len = elt.length; i = 0; while (i < len) t.push(elt[i++]); len = t.length; for (i = 0; i < len; ++i) { elt = t[i]; if ('SAMP' == elt.tagName) { a = elt.previousSibling || {}; if ('A' != a.tagName) { a = doc.createElement('A'); a.className = 'sf-dump-ref'; elt.parentNode.insertBefore(a, elt); } else { a.innerHTML += ' '; } a.title = (a.title ? a.title+'\\n[' : '[')+keyHint+'+click] Expand all children'; a.innerHTML += elt.className == 'sf-dump-compact' ? '\n    <span>&#9654;</span>' : '\n    <span>&#9660;</span>'; a.className += ' sf-dump-toggle'; x = 1; if ('sf-dump' != elt.parentNode.className) { x += elt.parentNode.getAttribute('data-depth')/1; } } else if (/\\bsf-dump-ref\\b/.test(elt.className) && (a = elt.getAttribute('href'))) { a = a.slice(1); elt.className += ' sf-dump-hover'; elt.className += ' '+a; if (/[\\[{]$/.test(elt.previousSibling.nodeValue)) { a = a != elt.nextSibling.id && doc.getElementById(a); try { s = a.nextSibling; elt.appendChild(a); s.parentNode.insertBefore(a, s); if (/^[@#]/.test(elt.innerHTML)) { elt.innerHTML += '\n    <span>&#9654;</span>'; } else { elt.innerHTML = '\n    <span>&#9654;</span>'; elt.className = 'sf-dump-ref'; } elt.className += ' sf-dump-toggle'; } catch (e) { if ('&' == elt.innerHTML.charAt(0)) { elt.innerHTML = '&#8230;'; elt.className = 'sf-dump-ref'; } } } } } if (doc.evaluate && Array.from && root.children.length > 1) { root.setAttribute('tabindex', 0); SearchState = function () { this.nodes = []; this.idx = 0; }; SearchState.prototype = { next: function () { if (this.isEmpty()) { return this.current(); } this.idx = this.idx< (this.nodes.length - 1) ? this.idx + 1 : 0; return this.current(); }, previous: function () { if (this.isEmpty()) { return this.current(); } this.idx = this.idx > 0 ? this.idx - 1 : (this.nodes.length - 1); return this.current(); }, isEmpty: function () { return 0 === this.count(); }, current: function () { if (this.isEmpty()) { return null; } return this.nodes[this.idx]; }, reset: function () { this.nodes = []; this.idx = 0; }, count: function () { return this.nodes.length; }, }; function showCurrent(state) { var currentNode = state.current(), currentRect, searchRect; if (currentNode) { reveal(currentNode); highlight(root, currentNode, state.nodes); if ('scrollIntoView' in currentNode) { currentNode.scrollIntoView(true); currentRect = currentNode.getBoundingClientRect(); searchRect = search.getBoundingClientRect(); if (currentRect.top < (searchRect.top + searchRect.height)) { window.scrollBy(0, -(searchRect.top + searchRect.height + 5)); } } } counter.textContent = (state.isEmpty() ? 0 : state.idx + 1) + ' of ' + state.count(); } var search = doc.createElement('div'); search.className = 'sf-dump-search-wrapper sf-dump-search-hidden'; search.innerHTML = ' \n    <input type=\"text\" class=\"sf-dump-search-input\">\n    <span class=\"sf-dump-search-count\">0 of 0<\\/span>\n        <button type=\"button\" class=\"sf-dump-search-input-previous\" tabindex=\"-1\">\n            <svg viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\">\n                <path d=\"M1683 1331l-166 165q-19 19-45 19t-45-19L896 965l-531 531q-19 19-45 19t-45-19l-166-165q-19-19-19-45.5t19-45.5l742-741q19-19 45-19t45 19l742 741q19 19 19 45.5t-19 45.5z\"\\/><\\/svg><\\/button>\n                <button type=\"button\" class=\"sf-dump-search-input-next\" tabindex=\"-1\">\n                    <svg viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M1683 808l-742 741q-19 19-45 19t-45-19L109 808q-19-19-19-45.5t19-45.5l166-165q19-19 45-19t45 19l531 531 531-531q19-19 45-19t45 19l166 165q19 19 19 45.5t-19 45.5z\"\\/><\\/svg><\\/button> '; root.insertBefore(search, root.firstChild); var state = new SearchState(); var searchInput = search.querySelector('.sf-dump-search-input'); var counter = search.querySelector('.sf-dump-search-count'); var searchInputTimer = 0; var previousSearchQuery = ''; addEventListener(searchInput, 'keyup', function (e) { var searchQuery = e.target.value; /* Don't perform anything if the pressed key didn't change the query */ if (searchQuery === previousSearchQuery) { return; } previousSearchQuery = searchQuery; clearTimeout(searchInputTimer); searchInputTimer = setTimeout(function () { state.reset(); collapseAll(root); resetHighlightedNodes(root); if ('' === searchQuery) { counter.textContent = '0 of 0'; return; } var classMatches = [ \"sf-dump-str\", \"sf-dump-key\", \"sf-dump-public\", \"sf-dump-protected\", \"sf-dump-private\", ].map(xpathHasClass).join(' or '); var xpathResult = doc.evaluate('.//span[' + classMatches + '][contains(translate(child::text(), ' + xpathString(searchQuery.toUpperCase()) + ', ' + xpathString(searchQuery.toLowerCase()) + '), ' + xpathString(searchQuery.toLowerCase()) + ')]', root, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null); while (node = xpathResult.iterateNext()) state.nodes.push(node); showCurrent(state); }, 400); }); Array.from(search.querySelectorAll('.sf-dump-search-input-next, .sf-dump-search-input-previous')).forEach(function (btn) { addEventListener(btn, 'click', function (e) { e.preventDefault(); -1 !== e.target.className.indexOf('next') ? state.next() : state.previous(); searchInput.focus(); collapseAll(root); showCurrent(state); }) }); addEventListener(root, 'keydown', function (e) { var isSearchActive = !/\\bsf-dump-search-hidden\\b/.test(search.className); if ((114 === e.keyCode && !isSearchActive) || (isCtrlKey(e) && 70 === e.keyCode)) { /* F3 or CMD/CTRL + F */ if (70 === e.keyCode && document.activeElement === searchInput) { /* * If CMD/CTRL + F is hit while having focus on search input, * the user probably meant to trigger browser search instead. * Let the browser execute its behavior: */ return; } e.preventDefault(); search.className = search.className.replace(/\\bsf-dump-search-hidden\\b/, ''); searchInput.focus(); } else if (isSearchActive) { if (27 === e.keyCode) { /* ESC key */ search.className += ' sf-dump-search-hidden'; e.preventDefault(); resetHighlightedNodes(root); searchInput.value = ''; } else if ( (isCtrlKey(e) && 71 === e.keyCode) /* CMD/CTRL + G */ || 13 === e.keyCode /* Enter */ || 114 === e.keyCode /* F3 */ ) { e.preventDefault(); e.shiftKey ? state.previous() : state.next(); collapseAll(root); showCurrent(state); } } }); } if (0 >= options.maxStringLength) { return; } try { elt = root.querySelectorAll('.sf-dump-str'); len = elt.length; i = 0; t = []; while (i < len) t.push(elt[i++]); len = t.length; for (i = 0; i < len; ++i) { elt = t[i]; s = elt.innerText || elt.textContent; x = s.length - options.maxStringLength; if (0 < x) { h = elt.innerHTML; elt[elt.innerText ? 'innerText' : 'textContent'] = s.substring(0, options.maxStringLength); elt.className += ' sf-dump-str-collapse'; elt.innerHTML = '\n                        <span class=sf-dump-str-collapse>'+h+'\n                            <a class=\"sf-dump-ref sf-dump-str-toggle\" title=\"Collapse\"> &#9664;</a>\n                        </span>'+ '\n                        <span class=sf-dump-str-expand>'+elt.innerHTML+'\n                            <a class=\"sf-dump-ref sf-dump-str-toggle\" title=\"'+x+' remaining characters\"> &#9654;</a>\n                        </span>'; } } } catch (e) { } }; })(document);\n                    </script>\n                    <style> .sf-js-enabled pre.sf-dump .sf-dump-compact, .sf-js-enabled .sf-dump-str-collapse .sf-dump-str-collapse, .sf-js-enabled .sf-dump-str-expand .sf-dump-str-expand { display: none; } .sf-dump-hover:hover { background-color: #B729D9; color: #FFF !important; border-radius: 2px; } pre.sf-dump { display: block; white-space: pre; padding: 5px; overflow: initial !important; } pre.sf-dump:after { content: \"\"; visibility: hidden; display: block; height: 0; clear: both; } pre.sf-dump span { display: inline-flex; } pre.sf-dump a { text-decoration: none; cursor: pointer; border: 0; outline: none; color: inherit; } pre.sf-dump img { max-width: 50em; max-height: 50em; margin: .5em 0 0 0; padding: 0; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAHUlEQVQY02O8zAABilCaiQEN0EeA8QuUcX9g3QEAAjcC5piyhyEAAAAASUVORK5CYII=) #D3D3D3; } pre.sf-dump .sf-dump-ellipsis { display: inline-block; overflow: visible; text-overflow: ellipsis; max-width: 5em; white-space: nowrap; overflow: hidden; vertical-align: top; } pre.sf-dump .sf-dump-ellipsis+.sf-dump-ellipsis { max-width: none; } pre.sf-dump code { display:inline; padding:0; background:none; } .sf-dump-public.sf-dump-highlight, .sf-dump-protected.sf-dump-highlight, .sf-dump-private.sf-dump-highlight, .sf-dump-str.sf-dump-highlight, .sf-dump-key.sf-dump-highlight { background: rgba(111, 172, 204, 0.3); border: 1px solid #7DA0B1; border-radius: 3px; } .sf-dump-public.sf-dump-highlight-active, .sf-dump-protected.sf-dump-highlight-active, .sf-dump-private.sf-dump-highlight-active, .sf-dump-str.sf-dump-highlight-active, .sf-dump-key.sf-dump-highlight-active { background: rgba(253, 175, 0, 0.4); border: 1px solid #ffa500; border-radius: 3px; } pre.sf-dump .sf-dump-search-hidden { display: none !important; } pre.sf-dump .sf-dump-search-wrapper { font-size: 0; white-space: nowrap; margin-bottom: 5px; display: flex; position: -webkit-sticky; position: sticky; top: 5px; } pre.sf-dump .sf-dump-search-wrapper > * { vertical-align: top; box-sizing: border-box; height: 21px; font-weight: normal; border-radius: 0; background: #FFF; color: #757575; border: 1px solid #BBB; } pre.sf-dump .sf-dump-search-wrapper > input.sf-dump-search-input { padding: 3px; height: 21px; font-size: 12px; border-right: none; border-top-left-radius: 3px; border-bottom-left-radius: 3px; color: #000; min-width: 15px; width: 100%; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next, pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-previous { background: #F2F2F2; outline: none; border-left: none; font-size: 0; line-height: 0; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next > svg, pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-previous > svg { pointer-events: none; width: 12px; height: 12px; } pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-count { display: inline-block; padding: 0 5px; margin: 0; border-left: none; line-height: 21px; font-size: 12px; }pre.sf-dump, pre.sf-dump .sf-dump-default{background-color:#18171B; color:#FF8400; line-height:1.2em; font:12px Menlo, Monaco, Consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:99999; word-break: break-all}pre.sf-dump .sf-dump-num{font-weight:bold; color:#1299DA}pre.sf-dump .sf-dump-const{font-weight:bold}pre.sf-dump .sf-dump-str{font-weight:bold; color:#56DB3A}pre.sf-dump .sf-dump-note{color:#1299DA}pre.sf-dump .sf-dump-ref{color:#A0A0A0}pre.sf-dump .sf-dump-public{color:#FFFFFF}pre.sf-dump .sf-dump-protected{color:#FFFFFF}pre.sf-dump .sf-dump-private{color:#FFFFFF}pre.sf-dump .sf-dump-meta{color:#B729D9}pre.sf-dump .sf-dump-key{color:#56DB3A}pre.sf-dump .sf-dump-index{color:#1299DA}pre.sf-dump .sf-dump-ellipsis{color:#FF8400}pre.sf-dump .sf-dump-ns{user-select:none;}pre.sf-dump .sf-dump-ellipsis-note{color:#1299DA}</style>\n                    <pre class=sf-dump id=sf-dump-1954553490 data-indent-pad=\"  \">\"\n                        <span class=sf-dump-str title=\"9 characters\">all chats</span>\"\n                        <span style=\"color: #A0A0A0;\"> // app/Http/Controllers/Chats/ChatsController.php:139</span>\n                    </pre>\n                    <script>Sfdump(\"sf-dump-1954553490\")</script>\n{\n    \"message\": \"SQLSTATE[HY000]: General error: 3024 Query execution was interrupted, maximum statement execution time exceeded (Connection: mysql, SQL: select `contacts`.*, `m`.`id` as `message_id` from `contacts` inner join (SELECT MAX(id) AS id, contact_id FROM messages GROUP BY contact_id) AS m on `contacts`.`id` = `m`.`contact_id` where `contacts`.`customer_id` = 1 and `contacts`.`customer_id` is not null and `contacts`.`status` is not null and `contacts`.`deleted_at` is null order by `m`.`id` desc limit 16 offset 0)\",\n    \"exception\": \"Illuminate\\\\Database\\\\QueryException\",\n    \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php\",\n    \"line\": 813,\n    \"trace\": [\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php\",\n            \"line\": 767,\n            \"function\": \"runQueryCallback\",\n            \"class\": \"Illuminate\\\\Database\\\\Connection\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php\",\n            \"line\": 398,\n            \"function\": \"run\",\n            \"class\": \"Illuminate\\\\Database\\\\Connection\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 2898,\n            \"function\": \"select\",\n            \"class\": \"Illuminate\\\\Database\\\\Connection\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 2883,\n            \"function\": \"runSelect\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 3467,\n            \"function\": \"Illuminate\\\\Database\\\\Query\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php\",\n            \"line\": 2882,\n            \"function\": \"onceWithColumns\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php\",\n            \"line\": 738,\n            \"function\": \"get\",\n            \"class\": \"Illuminate\\\\Database\\\\Query\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php\",\n            \"line\": 722,\n            \"function\": \"getModels\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php\",\n            \"line\": 961,\n            \"function\": \"get\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php\",\n            \"line\": 23,\n            \"function\": \"simplePaginate\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Builder\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php\",\n            \"line\": 52,\n            \"function\": \"forwardCallTo\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\Relation\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php\",\n            \"line\": 517,\n            \"function\": \"forwardDecoratedCallTo\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\Relation\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/app/Http/Controllers/Chats/ChatsController.php\",\n            \"line\": 89,\n            \"function\": \"__call\",\n            \"class\": \"Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\Relation\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/app/Http/Controllers/Chats/ChatsController.php\",\n            \"line\": 141,\n            \"function\": \"allChats\",\n            \"class\": \"App\\\\Http\\\\Controllers\\\\Chats\\\\ChatsController\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php\",\n            \"line\": 54,\n            \"function\": \"index\",\n            \"class\": \"App\\\\Http\\\\Controllers\\\\Chats\\\\ChatsController\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php\",\n            \"line\": 43,\n            \"function\": \"callAction\",\n            \"class\": \"Illuminate\\\\Routing\\\\Controller\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Routing/TracingControllerDispatcherTracing.php\",\n            \"line\": 21,\n            \"function\": \"dispatch\",\n            \"class\": \"Illuminate\\\\Routing\\\\ControllerDispatcher\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Routing/TracingRoutingDispatcher.php\",\n            \"line\": 31,\n            \"function\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\{closure}\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\TracingControllerDispatcherTracing\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Routing/TracingControllerDispatcherTracing.php\",\n            \"line\": 20,\n            \"function\": \"wrapRouteDispatch\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\TracingRoutingDispatcher\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php\",\n            \"line\": 260,\n            \"function\": \"dispatch\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Routing\\\\TracingControllerDispatcherTracing\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php\",\n            \"line\": 206,\n            \"function\": \"runController\",\n            \"class\": \"Illuminate\\\\Routing\\\\Route\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 806,\n            \"function\": \"run\",\n            \"class\": \"Illuminate\\\\Routing\\\\Route\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 144,\n            \"function\": \"Illuminate\\\\Routing\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php\",\n            \"line\": 50,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\SubstituteBindings\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php\",\n            \"line\": 159,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php\",\n            \"line\": 125,\n            \"function\": \"handleRequest\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\ThrottleRequests\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php\",\n            \"line\": 87,\n            \"function\": \"handleRequestUsingNamedLimiter\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\ThrottleRequests\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\ThrottleRequests\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php\",\n            \"line\": 64,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Auth\\\\Middleware\\\\Authenticate\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php\",\n            \"line\": 25,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 144,\n            \"function\": \"Laravel\\\\Sanctum\\\\Http\\\\Middleware\\\\{closure}\",\n            \"class\": \"Laravel\\\\Sanctum\\\\Http\\\\Middleware\\\\EnsureFrontendRequestsAreStateful\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 119,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php\",\n            \"line\": 24,\n            \"function\": \"then\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Laravel\\\\Sanctum\\\\Http\\\\Middleware\\\\EnsureFrontendRequestsAreStateful\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/app/Http/Middleware/ForceJsonResponse.php\",\n            \"line\": 20,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"App\\\\Http\\\\Middleware\\\\ForceJsonResponse\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 119,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 805,\n            \"function\": \"then\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 784,\n            \"function\": \"runRouteWithinStack\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 748,\n            \"function\": \"runRoute\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 737,\n            \"function\": \"dispatchToRoute\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 200,\n            \"function\": \"dispatch\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 144,\n            \"function\": \"Illuminate\\\\Foundation\\\\Http\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/FlushEventsMiddleware.php\",\n            \"line\": 13,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Http\\\\FlushEventsMiddleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestIpMiddleware.php\",\n            \"line\": 45,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Http\\\\SetRequestIpMiddleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestMiddleware.php\",\n            \"line\": 31,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Http\\\\SetRequestMiddleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php\",\n            \"line\": 49,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\View\\\\Middleware\\\\ShareErrorsFromSession\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php\",\n            \"line\": 121,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php\",\n            \"line\": 64,\n            \"function\": \"handleStatefulRequest\",\n            \"class\": \"Illuminate\\\\Session\\\\Middleware\\\\StartSession\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Session\\\\Middleware\\\\StartSession\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php\",\n            \"line\": 21,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php\",\n            \"line\": 50,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TrimStrings\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php\",\n            \"line\": 27,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Http\\\\Middleware\\\\ValidatePostSize\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php\",\n            \"line\": 103,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\PreventRequestsDuringMaintenance\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php\",\n            \"line\": 62,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Http\\\\Middleware\\\\HandleCors\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php\",\n            \"line\": 57,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Http\\\\Middleware\\\\TrustProxies\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Middleware.php\",\n            \"line\": 97,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 183,\n            \"function\": \"handle\",\n            \"class\": \"Sentry\\\\Laravel\\\\Tracing\\\\Middleware\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 119,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 175,\n            \"function\": \"then\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 144,\n            \"function\": \"sendRequestThroughRouter\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/public/index.php\",\n            \"line\": 51,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php\",\n            \"line\": 16,\n            \"function\": \"require_once\"\n        }\n    ]\n}"}],"_postman_id":"7baefa8b-f829-4457-b877-968af51f76a3"},{"name":"Chats em andamento, ordenado pelo mais antigo","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"037408ef-20e9-41c2-b900-ce1408cb70e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/chats?order=asc&include=*","description":"<p>parâmetro de ordenação <code>order</code> recebendo item a ser ordenado. Sinal negativo = DESC</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","chats"],"host":["{{host}}"],"query":[{"key":"order","value":"asc"},{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"0a45c4ab-a70c-480e-ab8b-aac686c36c5b","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"037408ef-20e9-41c2-b900-ce1408cb70e9"},{"name":"Chats em andamento","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"7aaea1c3-207d-4ee9-ba9e-297528e07295","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/chats?status=OPEN&include=*&order=-created_at","description":"<p>status OPEN e CLOSED</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","chats"],"host":["{{host}}"],"query":[{"key":"status","value":"OPEN"},{"key":"include","value":"*"},{"key":"order","value":"-created_at"}],"variable":[]}},"response":[{"id":"b84d1edc-b72d-459a-8d13-a55b16c1e0c5","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"7aaea1c3-207d-4ee9-ba9e-297528e07295"},{"name":"Chats finalizados","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"9fe3fc0e-e541-4f19-81c4-0c0ada235201","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/chats?status=CLOSED&include=read_status,chat_status,attendant,attributes,metadata&order=-created_at","description":"<p>chats cujo o último atendimento foi finalizado pelo atendente</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","chats"],"host":["{{host}}"],"query":[{"key":"status","value":"CLOSED"},{"key":"include","value":"read_status,chat_status,attendant,attributes,metadata"},{"key":"order","value":"-created_at"}],"variable":[]}},"response":[{"id":"251a1b91-bfe8-4103-990c-65377cbe1446","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"9fe3fc0e-e541-4f19-81c4-0c0ada235201"},{"name":"Chats não lidos","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"4633c29d-8629-408d-8527-3279393b219e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/chats?read_status=UNREAD&include=*&order=-created_at","description":"<p>Chats cuja última mensagem não foi lida pelo atendente responsável</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","chats"],"host":["{{host}}"],"query":[{"key":"read_status","value":"UNREAD"},{"key":"include","value":"*"},{"key":"order","value":"-created_at"}],"variable":[]}},"response":[{"id":"62b3c388-e89a-416a-b3b6-2890e8ef8760","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"4633c29d-8629-408d-8527-3279393b219e"},{"name":"Chats atribuídos a mim","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"888b1578-46d2-4f10-bac4-61a50dc29f7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/chats?assigned=myself&include=*&order=-created_at","description":"<p>Chats cujo o usuário autenticado é o responsável</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","chats"],"host":["{{host}}"],"query":[{"key":"assigned","value":"myself"},{"key":"include","value":"*"},{"key":"order","value":"-created_at"}],"variable":[]}},"response":[{"id":"a483d91d-5803-4f67-accb-ebe0101c33df","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"888b1578-46d2-4f10-bac4-61a50dc29f7e"},{"name":"Chats atribuídos a um usuário específico","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"beae0c63-b678-43dd-9994-6775d4125c61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/chats?assigned={{user_uuid}}&include=*&order=-created_at","description":"<p>Chats cujo o ID do usuário atribuído é o {{user_uuid}}</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","chats"],"host":["{{host}}"],"query":[{"key":"assigned","value":"{{user_uuid}}"},{"key":"include","value":"*"},{"key":"order","value":"-created_at"}],"variable":[]}},"response":[{"id":"ccb441e3-1225-4272-9fdf-0fab4316d4f4","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"beae0c63-b678-43dd-9994-6775d4125c61"},{"name":"Chats ordenação pela data da mensagem","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{}}}],"id":"abce9a16-035c-4073-b26d-142086bc760b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/chats?assigned={{user_uuid}}&include=*&order=date_last_message","description":"<p>Dentre todos os parâmetros de ordenação, a data de última mensagem é bastante útil. Se usar <code>order=-date_last_message será ordenação DESC</code></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","chats"],"host":["{{host}}"],"query":[{"key":"assigned","value":"{{user_uuid}}"},{"key":"include","value":"*"},{"key":"order","value":"date_last_message"}],"variable":[]}},"response":[{"id":"376533be-72b4-48db-9ff0-99261be07b43","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"abce9a16-035c-4073-b26d-142086bc760b"}],"id":"e794fae0-6596-4ce6-a3e4-bdb4c58bdd7b","description":"<p>A definição de chat é um contato com mensagens.<br />Um chat pode possuir diversos atendimentos (Attendances)</p>\n<p>Obs.: Para fins de performance, a collection de chats não contabiliza o total de páginas no metadata</p>\n","_postman_id":"e794fae0-6596-4ce6-a3e4-bdb4c58bdd7b","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Tags","item":[{"name":"List tags","id":"5f34a1e0-8a61-4944-b79b-2b704526392a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/tags?include=attributes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","tags"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"}],"variable":[]}},"response":[{"id":"2c4e8849-258b-4daa-b7e6-797006278e8d","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"5f34a1e0-8a61-4944-b79b-2b704526392a"},{"name":"Show specific tag","id":"9c9db5d2-8382-4cae-bba7-8e6ff3c371f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/tags/{{tag_uuid}}?include=status,category,attributes,contacts,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["tags","{{tag_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"status,category,attributes,contacts,metadata"}],"variable":[]}},"response":[{"id":"2d3c4907-171a-4aad-a8d3-fea2be36f932","name":"Show specific contact","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:33 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:33 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n    \"type\": \"PERSON\",\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"account\": {\n        \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n        \"name\": \"Root\"\n    },\n    \"channels\": [\n        {\n            \"uid\": \"556292825395\",\n            \"provider\": \"WHATSAPP\",\n            \"type\": \"DEFAULT\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        }\n    ],\n    \"metadata\": {\n        \"deprecated_contact_id\": 4,\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n    }\n}"}],"_postman_id":"9c9db5d2-8382-4cae-bba7-8e6ff3c371f8"},{"name":"Create Tag","id":"50684b1b-522d-4418-8a7c-8b867eb29597","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{vault:authorization-secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"ACTIVE\",\n    \"attributes\": {\n        \"name\": \"Etiqueta de teste\",\n        \"description\": \"Esta é uma etiqueta para validar a nossa API\",\n        \"color\": \"#f0f0f0\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/tags?include=atributes","urlObject":{"path":["accounts","{{account_uuid}}","tags"],"host":["{{host}}"],"query":[{"key":"include","value":"atributes"}],"variable":[]}},"response":[{"id":"e9056b2a-ecbb-4afa-951e-f734149a260b","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"},{"id":"63f58698-bde0-4ad5-9229-04d9059ba159","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"PERSON\", // <PERSON | GROUP>\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"doc\": \"701.556.232-33\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\"\n    },\n    \"channels\": [\n        {\n            \"uid\": \"556292825363\",\n            \"provider\": \"WHATSAPP\",\n            \"type\": \"DEFAULT\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Mon, 13 Nov 2023 19:15:48 GMT","enabled":true},{"key":"Date","value":"Mon, 13 Nov 2023 19:15:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a9af324-5e7e-4d7e-b577-7112d43d8902\",\n    \"type\": \"PERSON\",\n    \"attributes\": {\n        \"name\": \"John Doe\",\n        \"email\": \"john.doe@example.com\",\n        \"phone\": \"11 93823-4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"account\": {\n        \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n        \"name\": \"Root\"\n    },\n    \"channels\": [\n        {\n            \"uid\": \"556292825363\",\n            \"provider\": \"WHATSAPP\",\n            \"type\": \"DEFAULT\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"uuid\": \"9a9af324-7e7a-48b0-a26a-9f9b1dcb4207\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-11-13T19:15:48.000000Z\",\n                \"updated_at\": \"2023-11-13T19:15:48.000000Z\"\n            }\n        }\n    ],\n    \"metadata\": {\n        \"deprecated_contact_id\": 1,\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2023-11-13T19:15:48.000000Z\",\n        \"updated_at\": \"2023-11-13T19:15:48.000000Z\"\n    }\n}"}],"_postman_id":"50684b1b-522d-4418-8a7c-8b867eb29597"},{"name":"Update tag","id":"0a280531-e390-4d75-8086-cada9eae7d67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"ACTIVE\",\n    \"attributes\": {\n        \"name\": \"Atualizado\",\n        \"description\": \"Tudo alterado!\",\n        \"color\": \"#0000ff\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/tags/{{tag_uuid}}?include=attributes","description":"<p>Atualizar status, nome, cor e/ou descrição de uma etiqueta</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["tags","{{tag_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"}],"variable":[]}},"response":[{"id":"aca8a2ad-cb0b-401c-a7f3-c23a2c4162d2","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"doc\": \"701.556.232-33\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a80ce8a-36fc-4309-8832-0cf9bf70f759\",\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"addresses\": [\n        {\n            \"uuid\": \"9a80ce8a-5917-49e5-8080-f502e3f1b526\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-10-31T19:21:56.000000Z\",\n                \"updated_at\": \"2023-10-31T19:21:56.000000Z\"\n            }\n        }\n    ]\n}"}],"_postman_id":"0a280531-e390-4d75-8086-cada9eae7d67"},{"name":"Delete one tag","id":"42a3be9d-b70d-4743-97c9-21a8937f3afd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/tags/{{tag_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["tags","{{tag_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"f25e5866-2b8b-4eb4-9200-a82fc29c5850","name":"Contact not found","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/contacts/{{contact_uuid}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:01 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:01 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Contact not found\"\n}"},{"id":"43dc7959-9002-4362-9d4e-5d70de903fe6","name":"Delete","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/contacts/{{contact_uuid}}"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:48 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"55","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"42a3be9d-b70d-4743-97c9-21a8937f3afd"}],"id":"161d9063-5233-415c-8bdc-51c029e546df","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'status', 'category', 'attributes', 'contacts', 'metadata'</code></p>\n<hr />\n","_postman_id":"161d9063-5233-415c-8bdc-51c029e546df","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Attendances","item":[{"name":"List Attendances","id":"8f177b99-3c04-49e7-b95b-2a4c73c77f45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/attendances?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","attendances"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[],"_postman_id":"8f177b99-3c04-49e7-b95b-2a4c73c77f45"},{"name":"Show specific attendance","id":"5a99848d-2c72-482a-903f-eb2e1a05ba30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/attendances/{{attendance_uuid}}?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["attendances","{{attendance_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[],"_postman_id":"5a99848d-2c72-482a-903f-eb2e1a05ba30"},{"name":"Create Attendance for a contact","id":"1ecf30e9-443f-4033-b9ec-451a1a32702b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"contact_uuid\": \"{{contact_uuid}}\",\n    \"team_uuid\": \"{{team_uuid}}\",\n    \"user_uuid\": \"{{user_uuid}}\", // Nunca será \"BOT\", devemos substituir isso por \"APP ID\"\n    \"account_channel_uuid\": \"{{account_channel_uuid}}\", // Um contato pode ter +1 chat ao mesmo tempo, desde que seja de canais diferentes. \n     // <INITIATED_BY_CONTACT | INITIATED_BY_BUSINESS | INITIATED_BY_FORWARDING>\n    \"type\": \"INITIATED_BY_CONTACT\",\n    // O usuário precisa ser avisado disso, ter filtros na tela de chat e ter a possibilidade de fechar tudo\n    \"status\": \"CLOSED\", //<IN_PROGRESS | CLOSED | QUEUE>\n    \"closed_reason\": \"FINISHED_BY_USER\" // <FINISHED_BY_USER | FORWARDED | TIMEOUT>\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/attendances?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","attendances"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"d1f11e7b-02ee-40c5-a708-ce8715bf72b3","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"}],"_postman_id":"1ecf30e9-443f-4033-b9ec-451a1a32702b"},{"name":"Change Attendance Status","id":"8d03f385-f281-4abf-8b46-aa823b1d63b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"CLOSED\", //<IN_PROGRESS | CLOSED | QUEUE>\n    \"closed_reason\": \"FINISHED_BY_USER\" // <FINISHED_BY_USER | FORWARDED | TIMEOUT>\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/attendances/{{attendance_uuid}}/status","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["attendances","{{attendance_uuid}}","status"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"39b2557d-5075-4a65-9fb4-31fb5ec6bb1c","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"doc\": \"701.556.232-33\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a80ce8a-36fc-4309-8832-0cf9bf70f759\",\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"addresses\": [\n        {\n            \"uuid\": \"9a80ce8a-5917-49e5-8080-f502e3f1b526\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-10-31T19:21:56.000000Z\",\n                \"updated_at\": \"2023-10-31T19:21:56.000000Z\"\n            }\n        }\n    ]\n}"}],"_postman_id":"8d03f385-f281-4abf-8b46-aa823b1d63b7"},{"name":"Add Participant to Attendance","id":"fa766d54-1fdf-4531-ae77-629c0e79363f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"participant_type\": \"USER\", //<APP | USER>\n    \"participant_uuid\": \"{{user_uuid}}\", // <application_uuid | user_uuid>\n    \"data\": {\n        \"role\": \"USER\" // Optional. <ADMIN(can delete the chat) | MODERATOR(can delete a message) | USER(default)>\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/attendances/{{attendance_uuid}}/participants?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["attendances","{{attendance_uuid}}","participants"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"c43e8a1c-5132-4adf-8095-ece95cd7670e","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"doc\": \"701.556.232-33\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a80ce8a-36fc-4309-8832-0cf9bf70f759\",\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"addresses\": [\n        {\n            \"uuid\": \"9a80ce8a-5917-49e5-8080-f502e3f1b526\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-10-31T19:21:56.000000Z\",\n                \"updated_at\": \"2023-10-31T19:21:56.000000Z\"\n            }\n        }\n    ]\n}"}],"_postman_id":"fa766d54-1fdf-4531-ae77-629c0e79363f"}],"id":"5d51520c-57a6-4f78-b663-ee68b7a62ac3","description":"<p>Dados de atendimento</p>\n","_postman_id":"5d51520c-57a6-4f78-b663-ee68b7a62ac3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Teams","item":[{"name":"List teams from account","id":"10160f62-6508-4d60-aae7-5f6f812809ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/teams?include=key,status,visibility,staging,attributes,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","teams"],"host":["{{host}}"],"query":[{"key":"include","value":"key,status,visibility,staging,attributes,metadata"}],"variable":[]}},"response":[],"_postman_id":"10160f62-6508-4d60-aae7-5f6f812809ed"},{"name":"Show specific team","id":"bc6e4e7e-1d93-4792-8bef-3bdba7a56317","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/teams/{{team_uuid}}?include=key,status,visibility,staging,attributes,users,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["teams","{{team_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"key,status,visibility,staging,attributes,users,metadata"}],"variable":[]}},"response":[],"_postman_id":"bc6e4e7e-1d93-4792-8bef-3bdba7a56317"},{"name":"Create team for an account","id":"e2381fd5-a00c-4021-b35a-67e24ede4fa4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"ACTIVE\", //<ACTIVE | INACTIVE>\n    \"visibility\": \"PUBLIC\", //<team type: PUBLIC | PRIVATE>. Public: atendimento ao cliente, Private: uso interno\n    \"staging\": \"ENTRYPOINT\", // ENTRYPOINT | REQUESTED\n    \"attributes\": {\n        \"name\": \"Testing`s team\",\n        \"description\": \"Team created for organize the members of support\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/teams?include=key,status,visibility,staging,attributes,users,metadata","description":"<p>Um time (Ou departamento), é definido pelos seus atributos e pode ter 3 tipos de configurações:</p>\n<ul>\n<li>Status: Departamento está ativo ou não (Ninguém estará utilizando. Equivalente a uma exclusão temporária)</li>\n<li>Visibility: PUBLIC é utilizado quando é um time que realiza atendimento à clientes, PRIVATE é utilizado para um time interno</li>\n<li>Staging: Define se o departamenteo é o padrão para atendimento(ENTRYPOINT) ou se só recebe conversas quando é solicitado (REQUESTED). Apenas um departamento na conta pode ser do tipo ENTRYPOINT</li>\n</ul>\n<p>A chave (key) é o nome interno do time, é definido em sua criação e não pode ser alterado.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","teams"],"host":["{{host}}"],"query":[{"key":"include","value":"key,status,visibility,staging,attributes,users,metadata"}],"variable":[]}},"response":[{"id":"f90bc5fc-d929-4afc-bf6a-3ad495e3050e","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"}],"_postman_id":"e2381fd5-a00c-4021-b35a-67e24ede4fa4"},{"name":"Update","id":"2e2b7d77-4bd5-4a9a-81c4-e270ca0eaf36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"ACTIVE\", //<ACTIVE | INACTIVE>\n    \"visibility\": \"PRIVATE\", //<team type: PUBLIC | PRIVATE>\n    \"staging\": \"ENTRYPOINT\", // <ENTRYPOINT | REQUESTED>\n    \"attributes\": {\n        \"name\": \"Updated team\",\n        \"description\": \"Team created for organize the members of support\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/teams/{{team_uuid}}?include=key,status,visibility,staging,attributes,users,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["teams","{{team_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"key,status,visibility,staging,attributes,users,metadata"}],"variable":[]}},"response":[{"id":"8aeab63c-b494-4d3e-94cf-2244917a98ce","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"doc\": \"701.556.232-33\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts/{{contact_uuid}}?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts","{{contact_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Date","value":"Tue, 31 Oct 2023 19:32:38 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9a80ce8a-36fc-4309-8832-0cf9bf70f759\",\n    \"attributes\": {\n        \"name\": \"Jorge\",\n        \"email\": \"jorge@example.com\",\n        \"phone\": \"11 3003 4444\",\n        \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n        \"doc\": \"701.556.232-33\"\n    },\n    \"addresses\": [\n        {\n            \"uuid\": \"9a80ce8a-5917-49e5-8080-f502e3f1b526\",\n            \"type\": \"Headquarter\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\",\n            \"reference\": \"reference\",\n            \"metadata\": {\n                \"created_at\": \"2023-10-31T19:21:56.000000Z\",\n                \"updated_at\": \"2023-10-31T19:21:56.000000Z\"\n            }\n        }\n    ]\n}"}],"_postman_id":"2e2b7d77-4bd5-4a9a-81c4-e270ca0eaf36"},{"name":"Delete","id":"a1e27d7b-a3b0-467b-83d9-4060b5f026c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/teams/{{team_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["teams","{{team_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a1e27d7b-a3b0-467b-83d9-4060b5f026c4"}],"id":"368574e7-7dd9-49bb-8e40-dc87d98e7fc7","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'key', 'status', 'visibility', 'staging', 'attributes', 'users', 'metadata'</code></p>\n<hr />\n","_postman_id":"368574e7-7dd9-49bb-8e40-dc87d98e7fc7","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Messages","item":[{"name":"Show Message","id":"552c7a42-37c9-4313-ad32-a1561dfdc948","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/messages/{{message_uuid}}?include=contact,metadata,account_channel","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["messages","{{message_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"contact,metadata,account_channel"}],"variable":[]}},"response":[],"_postman_id":"552c7a42-37c9-4313-ad32-a1561dfdc948"},{"name":"List all messages from account","id":"35388529-2712-4c3b-94fe-17a3822ba30f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/messages?include=preview,context,components,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","messages"],"host":["{{host}}"],"query":[{"key":"include","value":"preview,context,components,metadata"}],"variable":[]}},"response":[],"_postman_id":"35388529-2712-4c3b-94fe-17a3822ba30f"},{"name":"Update one message","id":"d052962c-6453-45dd-8cfb-282d729671bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"components\": {\n    \"body\": {\n      \"text\": \"Teste de mensagem atualizada\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/messages/{{message_uuid}}?include=*","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["messages","{{message_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[{"id":"157bc1b8-6397-4750-af2e-0df93c81a6c9","name":"Update","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"components\": {\n    \"body\": {\n      \"text\": \"Teste de mensagem atualizada\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/messages/{{message_uuid}}?include=*","host":["{{host}}"],"path":["messages","{{message_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:15:45 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:15:45 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9ab94320-4926-41df-ab67-046a2990da14\",\n    \"context\": null,\n    \"preview\": [],\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem atualizada\"\n        }\n    },\n    \"interactive\": [],\n    \"metadata\": {\n        \"deprecated_customer_id\": 1,\n        \"external_message_id\": null,\n        \"deprecated_message_id\": 4,\n        \"direction\": \"OUT\",\n        \"created_at\": \"2023-11-28T20:54:18.000000Z\",\n        \"updated_at\": \"2023-11-29T14:15:45.000000Z\"\n    }\n}"}],"_postman_id":"d052962c-6453-45dd-8cfb-282d729671bf"},{"name":"Delete one message","id":"6ed47578-25b4-49a8-ac9b-395ea01a0591","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/messages/{{message_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["messages","{{message_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ae179afd-3e2b-4f45-9b1d-550be2743df2","name":"Message not found","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/messages/{{message_uuid}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:17:28 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:17:28 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Message not found\"\n}"},{"id":"0fd0c9a6-1528-47fe-99a6-8b941916db66","name":"Delete successfull","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/messages/{{message_uuid}}"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:21:13 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:21:13 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6ed47578-25b4-49a8-ac9b-395ea01a0591"},{"name":"Send Message","id":"a689edc7-74cb-440a-9804-899ff25adf8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"WHATSAPP\",\n    \"account_channel_uuid\": \"{{account_channel_uuid}}\",\n    \"type\": \"MEDIA\",\n    \"version\": \"v3\",\n    \"direction\": \"OUT\", //OUT | IN\n    \"contact\": {\n        \"type\": \"PERSON\", // PERSON | GROUP | INTERNAL_GROUP\n        \"contact_uuid\": \"{{contact_uuid}}\",\n        \"contact_channel_uid\": \"{{contact_channel_uid}}\"\n    },\n    \"author\": {\n        \"type\": \"USER\", // USER | CONTACT | PARTICIPANT | APPLICATION\n        \"user_uuid\": \"{{user_uuid}}\",\n        \"name\": \"Jorge Amado\"\n    },\n    \"components\": {\n        \"attachments\": [\n            {\n                \"type\": \"IMAGE\",\n                \"media\": {\n                    \"file_id\": \"{{file_id}}\",\n                    \"caption\": \"Teste de mensagem\"\n                }\n            }\n        ],\n        \"body\": {\n            \"text\": \"Teste de mensagem\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/messages","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","messages"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"20ce3c1b-1c34-447c-ae14-92fab7246027","name":"Miss parameter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"attributes\": {\n        \"name\": \"Root\",\n        \"doc\": \"00000000000\",\n        \"picture\": \"http://cnd.poli/e80cdcba-7c82-4129-a7fd-2ae437ec0b0a.png\"\n    },\n    \"addresses\": [\n        {\n            \"type\": \"Headquarter\",\n            \"country_code\": \"BRA\",\n            \"country\": \"Brasil\",\n            \"postal_code\": \"74453-440\",\n            \"state\": \"Goiás\",\n            \"city\": \"Goiânia\",\n            \"street\": \"Av C-12\",\n            \"number\": \"19\",\n            \"neighborhood\": \"Sudoeste\",\n            \"complement\": \"Edifício Sudoeste Center\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/contacts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Date","value":"Mon, 30 Oct 2023 19:45:48 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O campo attributes.phone é obrigatório. (and 1 more error)\",\n    \"errors\": {\n        \"attributes.phone\": [\n            \"O campo attributes.phone é obrigatório.\"\n        ],\n        \"attributes.email\": [\n            \"O campo attributes.email é obrigatório.\"\n        ]\n    }\n}"}],"_postman_id":"a689edc7-74cb-440a-9804-899ff25adf8d"}],"id":"83ceed86-dbfb-49be-a280-b7f6f2e9aa66","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>'event', 'type',\n'account_channel',\n'ack', 'direction', 'timestamp',\n'author', 'contact',\n'template', 'preview', 'context', 'components', 'interactive',\n'metadata'\n\n</code></pre><hr />\n","_postman_id":"83ceed86-dbfb-49be-a280-b7f6f2e9aa66","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Templates","item":[{"name":"Create Template","id":"89a7673b-6408-4c07-b157-911343c8d69c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"key\": \"template-teste\",\n    // \"team_uuid\": \"{{team_uuid}}\",\n    \"status\": \"VALIDATED\", // <NOT_VERIFIED | VALIDATED | REJECTED>\n    \"version\": \"v2\",\n    \"message\": {\n        \"body\": {\n            \"text\": \"Olá [contact_name], tudo bem? a sua compra no Poli Pay foi aprovada! A previsão de entrega é dia [custom]\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/templates?include=key,version,status,message,team,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","templates"],"host":["{{host}}"],"query":[{"key":"include","value":"key,version,status,message,team,metadata"}],"variable":[]}},"response":[{"id":"f94d1dcd-868e-4557-917e-11269e5df5dd","name":"Create Template v2","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"key\": \"template-teste-v2\",\n    // \"team_uuid\": \"{{team_uuid}}\",\n    \"status\": \"VALIDATED\", // <NOT_VERIFIED | VALIDATED | REJECTED>\n    \"version\": \"v2\",\n    \"message\": {\n        \"body\": {\n            \"text\": \"Olá [contact_name], tudo bem? a sua compra no Poli Pay foi aprovada! A previsão de entrega é dia [custom]\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/templates?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","templates"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 10 Jan 2024 20:39:46 GMT","enabled":true},{"key":"Date","value":"Wed, 10 Jan 2024 20:39:46 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"omniapi_session=rWEvvnZX6ylcbUElaiga6bEUFDmailQOinprF6Tp; expires=Wed, 10 Jan 2024 22:39:46 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9b0fc01c-753c-4ff7-8102-e4b4683263d9\",\n    \"key\": \"template-v2\",\n    \"version\": \"v2\",\n    \"status\": \"VALIDATED\",\n    \"message\": \"Olá [contact_name], tudo bem? a sua compra no Poli Pay foi aprovada! A previsão de entrega é dia [custom]\",\n    \"metadata\": {\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2024-01-10T20:44:59.000000Z\",\n        \"updated_at\": \"2024-01-10T20:44:59.000000Z\"\n    }\n}"},{"id":"b4f4ade4-cc61-4f34-b3af-5eeb239bb2f7","name":"Create Template v3","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"key\": \"template-v3\",\n    // \"team_uuid\": \"{{team_uuid}}\",\n    \"status\": \"VALIDATED\", // <NOT_VERIFIED | VALIDATED | REJECTED>\n    \"version\": \"v3\",\n    \"message\": {\n        \"type\": \"chat\",\n        \"version\": \"v3\",\n        \"product\": \"WHATSAPP\",\n        \"components\": {\n            \"header\": {\n                \"text\": \"Seja bem vindo à {{1}}\"\n            },\n            \"body\": {\n                \"text\": \"Olá {{2}}, tudo bem? a sua compra no Poli Pay foi aprovada! A previsão de entrega é dia {{3}}\"\n            },\n            \"footer\": {\n                \"text\": \"Rodapé da mensagem\"\n            }\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/accounts/{{account_uuid}}/templates?include=*","host":["{{host}}"],"path":["accounts","{{account_uuid}}","templates"],"query":[{"key":"include","value":"*"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 10 Jan 2024 20:52:26 GMT","enabled":true},{"key":"Date","value":"Wed, 10 Jan 2024 20:52:26 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"57","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"omniapi_session=rWEvvnZX6ylcbUElaiga6bEUFDmailQOinprF6Tp; expires=Wed, 10 Jan 2024 22:52:26 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9b0fc2c7-5705-42e2-a22a-a934d6c4e2db\",\n    \"key\": \"template-v3\",\n    \"version\": \"v3\",\n    \"status\": \"VALIDATED\",\n    \"message\": {\n        \"type\": \"chat\",\n        \"version\": \"v3\",\n        \"product\": \"WHATSAPP\",\n        \"components\": {\n            \"header\": {\n                \"text\": \"Seja bem vindo à {{1}}\"\n            },\n            \"body\": {\n                \"text\": \"Olá {{2}}, tudo bem? a sua compra no Poli Pay foi aprovada! A previsão de entrega é dia {{3}}\"\n            },\n            \"footer\": {\n                \"text\": \"Rodapé da mensagem\"\n            }\n        }\n    },\n    \"team\": null,\n    \"metadata\": {\n        \"deprecated_customer_id\": 1,\n        \"created_at\": \"2024-01-10T20:52:26.000000Z\",\n        \"updated_at\": \"2024-01-10T20:52:26.000000Z\"\n    }\n}"}],"_postman_id":"89a7673b-6408-4c07-b157-911343c8d69c"},{"name":"List Templates","id":"5f4997e1-8e58-4de7-9fdf-c08873484dd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/templates?include=key,version,status,message,team,metadata,account_channel","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","templates"],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>[QUICK_MESSAGE, LIST, BUTTON, WABA]</p>\n","type":"text/plain"},"key":"type","value":"LIST"},{"disabled":true,"description":{"content":"<p>[VALIDATED, REJECTED, NOT_VERIFIED]</p>\n","type":"text/plain"},"key":"status","value":"VALIDATED"},{"disabled":true,"key":"filters","value":"(account_channels=([{{filter_account_channels}}])),teams=([{{filter_teams}}]))"},{"key":"include","value":"key,version,status,message,team,metadata,account_channel"}],"variable":[]}},"response":[{"id":"c838b05c-dc37-4afe-903a-25d7106f6d5a","name":"List Templates","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/templates?include=key,version,status,message,team,metadata,account_channel","host":["{{host}}"],"path":["accounts","{{account_uuid}}","templates"],"query":[{"key":"type","value":"LIST","description":"[QUICK_MESSAGE, LIST, BUTTON, WABA]","disabled":true},{"key":"status","value":"VALIDATED","description":"[VALIDATED, REJECTED, NOT_VERIFIED]","disabled":true},{"key":"filters","value":"(account_channels=([{{filter_account_channels}}])),teams=([{{filter_teams}}]))","type":"text","disabled":true},{"key":"include","value":"key,version,status,message,team,metadata,account_channel"}]}},"status":"OK","code":200,"_postman_previewlanguage":"","header":[{"key":"Date","value":"Wed, 01 Oct 2025 17:11:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"4936"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-Ratelimit-Limit","value":"300"},{"key":"X-Ratelimit-Remaining","value":"283"},{"key":"Vary","value":"Origin"},{"key":"Set-Cookie","value":"api_session=2RTx84MGCjvQqwprSCgE5mwxKl0lhLzs0D2hBmt4; expires=Wed, 01-Oct-2025 17:41:22 GMT; Max-Age=1800; path=/; HttpOnly; SameSite=lax"},{"key":"Server","value":"swoole-http-server"},{"key":"Content-Encoding","value":"br"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9bfd28f7-446d-494a-9dbb-2be673811e0c\",\n            \"key\": \"template_01\",\n            \"version\": \"v2\",\n            \"keyboard_shortcut\": \"\",\n            \"status\": \"VALIDATED\",\n            \"type\": \"WABA\",\n            \"message\": \"Já tem alguns dias que não nós falamos… e queria saber como está o seu teste na nossa plataforma: Você precisa de ajuda?\",\n            \"team\": null,\n            \"account_channel\": null,\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_quick_message_id\": 1,\n                \"created_at\": \"2021-03-26T14:45:07.000000Z\",\n                \"updated_at\": \"2024-05-07T21:09:23.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9cb7bf3a-245f-430d-ba49-4df560625eba\",\n            \"key\": \"template_02\",\n            \"version\": \"v3\",\n            \"keyboard_shortcut\": \"\",\n            \"status\": \"VALIDATED\",\n            \"type\": \"WABA\",\n            \"message\": {\n                \"body\": \"Olá, [contact_first_name]! Meu nome é [operator_name] e sou analista comercial da plataforma Poli!\\r\\n\\r\\nConforme combinamos por ligação, estou encaminhando esta mensagem para confirmar o seu interesse em conhecer a nossa ferramenta e o agendamento da apresentação que faremos! Tudo certo?\",\n                \"header\": {\n                    \"type\": \"none\",\n                    \"text\": \"\",\n                    \"mediaUrl\": \"\"\n                },\n                \"footer\": \"\",\n                \"buttons\": [],\n                \"category\": 1,\n                \"language\": 46,\n                \"name\": \"polichat_quick_message_2\"\n            },\n            \"team\": {\n                \"uuid\": \"9b90aabd-feed-4bea-9347-34be80ca8543\"\n            },\n            \"account_channel\": {\n                \"uuid\": \"9b8bae9e-5fe2-4f2a-82a2-abb930c7d7ce\",\n                \"uid\": \"556299800123@c.us\",\n                \"name\": \"Canal Principal\",\n                \"status\": \"ACTIVE\",\n                \"provider\": \"WABA\"\n            },\n            \"metadata\": {\n                \"deprecated_customer_id\": 1,\n                \"deprecated_quick_message_id\": 2,\n                \"created_at\": \"2021-05-12T12:14:29.000000Z\",\n                \"updated_at\": \"2024-08-08T15:13:32.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://foundation-api.poli.digital/v3/accounts/9b8af98e-0407-49a2-bce9-3620f29c613a/templates?include=key%2Cversion%2Cstatus%2Cmessage%2Cteam%2Cmetadata%2Caccount_channel&page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": \"https://foundation-api.poli.digital/v3/accounts/9b8af98e-0407-49a2-bce9-3620f89f513a/templates?include=key%2Cversion%2Cstatus%2Cmessage%2Cteam%2Cmetadata%2Caccount_channel&page=2\",\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"https://foundation-api.poli.digital/v3/accounts/9b8af98e-0407-49a2-bce8-0020f29c513a/templates?include=key%2Cversion%2Cstatus%2Cmessage%2Cteam%2Cmetadata%2Caccount_channel&page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"https://foundation-api.poli.digital/v3/accounts/9b8af98e-0407-49a2-bcf9-0020f29c513a/templates?include=key%2Cversion%2Cstatus%2Cmessage%2Cteam%2Cmetadata%2Caccount_channel&page=125\",\n        \"next_page_url\": \"https://foundation-api.poli.digital/v3/accounts/9b8af98e-0407-49a2-bcf2-3620f29c513a/templates?include=key%2Cversion%2Cstatus%2Cmessage%2Cteam%2Cmetadata%2Caccount_channel&page=2\",\n        \"path\": \"https://foundation-api.poli.digital/v3/accounts/9b8af98e-0407-49a2-bce9-36200g9c513a/templates\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 2,\n        \"total\": 2\n    }\n}"}],"_postman_id":"5f4997e1-8e58-4de7-9fdf-c08873484dd4"},{"name":"Show Template","id":"7a57d8a2-6ae3-49b9-8739-4834ddcbc6d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/templates/{{template_uuid}}?include=key,version,status,message,team,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["templates","{{template_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"key,version,status,message,team,metadata"}],"variable":[]}},"response":[],"_postman_id":"7a57d8a2-6ae3-49b9-8739-4834ddcbc6d3"},{"name":"Update one template","id":"f2f5c127-1122-4bd0-b403-e535fa54f504","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"key\": \"template-modificado\",\n    \"status\": \"VALIDATED\",\n    \"team\": \"45bc7665-f3dc-4ded-a78f-c11bdc5fb4af\",\n    \"message\": {\n        \"type\": \"chat\",\n        \"version\": \"v3\",\n        \"product\": \"WHATSAPP\",\n        \"components\": {\n            \"body\": {\n                \"text\": \"Olá Gabriel, tudo bem? a sua compra na Magalu foi aprovada!\"\n            }\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/templates/{{template_uuid}}?include=key,version,status,message,team,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["templates","{{template_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"key,version,status,message,team,metadata"}],"variable":[]}},"response":[{"id":"42da3d12-546c-431c-adf2-211c67c720e0","name":"Update","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"components\": {\n    \"body\": {\n      \"text\": \"Teste de mensagem atualizada\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/messages/{{message_uuid}}?include=*","host":["{{host}}"],"path":["messages","{{message_uuid}}"],"query":[{"key":"include","value":"*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:15:45 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:15:45 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"uuid\": \"9ab94320-4926-41df-ab67-046a2990da14\",\n    \"context\": null,\n    \"preview\": [],\n    \"components\": {\n        \"body\": {\n            \"text\": \"Teste de mensagem atualizada\"\n        }\n    },\n    \"interactive\": [],\n    \"metadata\": {\n        \"deprecated_customer_id\": 1,\n        \"external_message_id\": null,\n        \"deprecated_message_id\": 4,\n        \"direction\": \"OUT\",\n        \"created_at\": \"2023-11-28T20:54:18.000000Z\",\n        \"updated_at\": \"2023-11-29T14:15:45.000000Z\"\n    }\n}"}],"_postman_id":"f2f5c127-1122-4bd0-b403-e535fa54f504"},{"name":"Delete one template","id":"fa02b623-250d-408d-bc77-8f31359850eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/templates/{{template_uuid}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["templates","{{template_uuid}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"936ca0c5-d9b4-4263-8f5d-4660c1666125","name":"Message not found","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/messages/{{message_uuid}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:17:28 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:17:28 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Message not found\"\n}"},{"id":"8369b706-6595-4faf-9e08-922462ce451f","name":"Delete successfull","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/messages/{{message_uuid}}"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:21:13 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:21:13 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"58","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"fa02b623-250d-408d-bc77-8f31359850eb"}],"id":"d941136c-f1c1-4568-a256-01d02625f34b","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'key', 'version', 'status', 'message', 'variables', 'team', 'metadata'</code></p>\n<hr />\n","_postman_id":"d941136c-f1c1-4568-a256-01d02625f34b","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Roles","item":[{"name":"List all roles","event":[{"listen":"test","script":{"id":"279ee67f-57fe-4e8c-90f8-f875d3d9aab2","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response has the required fields - uuid, name, label\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.not.be.empty;","    ","    responseData.data.forEach(function(item) {","        pm.expect(item.uuid).to.exist.and.to.be.a('string');","        pm.expect(item.name).to.exist.and.to.be.a('string');","        pm.expect(item.label).to.exist.and.to.be.a('string');","    });","});","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.exist.and.to.be.an('array').that.is.not.empty;","});","","pm.test(\"Links array is present and contains expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.have.property('links').that.is.an('array').and.to.have.lengthOf.at.least(1);","});","","pm.test(\"Validate meta object keys\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.meta).to.be.an('object');","    pm.expect(responseData.meta).to.include.all.keys('current_page', 'total', 'per_page');","});"],"type":"text/javascript"}}],"id":"1c553428-43d5-42d9-aac6-712944d9ecce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{host}}/roles","description":"<p>Essa rota lista todos os tipos de acessos que podem ser atribuídos aos usuários.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["roles"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c553428-43d5-42d9-aac6-712944d9ecce"},{"name":"Get specific role and list permissions","id":"0ea2ee41-65a8-458b-8d32-a9aa95d912cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{host}}/roles/{{role_uuid}}?include=*","description":"<p>Essa rota lista as permissões para um nível de acesso específico.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["roles","{{role_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[],"_postman_id":"0ea2ee41-65a8-458b-8d32-a9aa95d912cf"}],"id":"cb1e6ad1-5485-4b75-86e3-4495ce2e2eb1","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'permissions', 'metadata'</code></p>\n<hr />\n","_postman_id":"cb1e6ad1-5485-4b75-86e3-4495ce2e2eb1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Permissions","item":[{"name":"List all permissions","id":"2711a358-bab6-4d9c-81a2-51cfe1daee9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{host}}/permissions","description":"<p>Esta rota lista todas as permissões existentes.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["permissions"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2711a358-bab6-4d9c-81a2-51cfe1daee9a"},{"name":"Get specific permissions","id":"c8f36cc1-80c9-4ce0-8bee-d6b0626da461","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{host}}/permissions/{{permission_uuid}}?include=*","description":"<p>Esta rota exibe uma permissão específica, bem como a suas propriedades</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["permissions","{{permission_uuid}}"],"host":["{{host}}"],"query":[{"key":"include","value":"*"}],"variable":[]}},"response":[],"_postman_id":"c8f36cc1-80c9-4ce0-8bee-d6b0626da461"}],"id":"d61bd2d4-2e70-4b91-b8e3-dcb2634833eb","description":"<h3 id=\"includes-possíveis\">Includes possíveis:</h3>\n<p><code>'roles', 'metadata'</code></p>\n<hr />\n","_postman_id":"d61bd2d4-2e70-4b91-b8e3-dcb2634833eb","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Webhook Events","item":[{"name":"Webhook Created","id":"e663ce50-b73f-4c89-bc3a-e957653f3a2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"webhook\",\n  \"event\": \"created\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9b0109d0-2459-4fc1-86fb-1954338dfea2\",\n  \"value\": {\n    \"uuid\": \"9b0109d0-2459-4fc1-86fb-1954338dfea2\",\n    \"url\": \"https://webhook.site/43d7896b-696e-467a-a7b1-4ef371518449\",\n    \"application\": {\n      \"uuid\": \"9b01091f-7f91-471e-8247-95e56de3e191\",\n      \"attributes\": {\n        \"name\": \"App Test\",\n        \"description\": \"Autem quae vinco antiquus nihil verumtamen.\",\n        \"responsible\": \"John Doe\",\n        \"phone\": \"+55 11 98342-3423\",\n        \"email\": \"john.doe@developer.com\",\n        \"picture\": {\n          \"url\": \"https://minio-staging-polidigital.svc-us3.zcloud.ws/alpha/accounts/d49e64fd-fca7-40f7-be69-b4b7ac8ad46b/applications/GENIRt1zu9aVvjZq8XDr9u3iKmPLX4JgiaBF1Oqg.png\",\n          \"mime_type\": \"image/png\"\n        }\n      }\n    },\n    \"subscriptions\": [\n      \"organizations\",\n      \"messages\",\n      \"chats\",\n      \"contacts\",\n      \"users\",\n      \"applications\"\n    ],\n    \"metadata\": {\n      \"created_at\": \"2024-01-03T13:13:39.000000Z\",\n      \"updated_at\": \"2024-01-03T13:13:39.000000Z\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"e663ce50-b73f-4c89-bc3a-e957653f3a2d"},{"name":"Webhook updated","id":"58f49040-7656-435e-9235-b06292182c0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"webhook\",\n  \"event\": \"updated\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9b0109d0-2459-4fc1-86fb-1954338dfea2\",\n  \"changes\": {\n    \"subscriptions\": [\n      \"organizations\",\n      \"messages\",\n      \"contacts\",\n      \"chats\",\n      \"users\",\n      \"applications\",\n      \"campaigns\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"58f49040-7656-435e-9235-b06292182c0c"},{"name":"Application Created","id":"b441540b-735c-4d4f-9177-59c6315500cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"application\",\n  \"event\": \"created\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9b010a71-4fa4-4215-9037-b7c7a7988871\",\n  \"value\": {\n    \"uuid\": \"9b010a71-4fa4-4215-9037-b7c7a7988871\",\n    \"status\": \"IN_REVIEW\",\n    \"visibility\": \"PUBLIC\",\n    \"attributes\": {\n      \"name\": \"App Test 2\",\n      \"description\": \"Autem quae vinco antiquus nihil verumtamen.\",\n      \"responsible\": \"John Doe\",\n      \"phone\": \"+55 11 98342-3423\",\n      \"email\": \"john.doe@developer.com\",\n      \"picture\": {\n        \"url\": \"https://minio-staging-polidigital.svc-us3.zcloud.ws/alpha/accounts/d49e64fd-fca7-40f7-be69-b4b7ac8ad46b/applications/GENIRt1zu9aVvjZq8XDr9u3iKmPLX4JgiaBF1Oqg.png\",\n        \"mime_type\": \"image/png\"\n      }\n    },\n    \"attachments\": [\n      {\n        \"name\": \"Main Photo\",\n        \"file_id\": \"GENIRt1zu9aVvjZq8XDr9u3iKmPLX4JgiaBF1Oqg.png\"\n      },\n      {\n        \"name\": \"Photo of integration in chat\",\n        \"file_id\": \"GENIRt1zu9aVvjZq8XDr9u3iKmPLX4JgiaBF1Oqg.png\"\n      }\n    ],\n    \"resources\": [\n      {\n        \"type\": \"link\",\n        \"name\": \"Vendor\",\n        \"value\": \"https://google.com\"\n      },\n      {\n        \"type\": \"email\",\n        \"name\": \"Support\",\n        \"value\": \"support@google.com\"\n      }\n    ],\n    \"settings\": [\n      {\n        \"type\": \"link\",\n        \"name\": \"webhook\",\n        \"placeholder\": \"https://example.com/webhook\"\n      },\n      {\n        \"type\": \"bool\",\n        \"name\": \"XPTO\",\n        \"placeholder\": true\n      }\n    ],\n    \"accounts\": [\n      {\n        \"uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n        \"attributes\": {\n          \"name\": \"Poli Alpha\",\n          \"doc\": \"12342213412341\",\n          \"segment\": \"Serviços de Engenharia\",\n          \"phone\": \"62986073728\"\n        }\n      }\n    ],\n    \"metadata\": {\n      \"created_at\": \"2024-01-03T13:15:24.000000Z\",\n      \"updated_at\": \"2024-01-03T13:15:24.000000Z\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"b441540b-735c-4d4f-9177-59c6315500cf"},{"name":"Application Updated","id":"9235c2d7-39ae-4c9f-aade-7db2dceeb231","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"application\",\n  \"event\": \"updated\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9b01091f-7f91-471e-8247-95e56de3e191\",\n  \"changes\": {\n    \"attributes\": {\n      \"name\": \"App updated\",\n      \"description\": \"Autem quae vinco antiquus nihil verumtamen.\",\n      \"picture\": {\n        \"file_id\": \"GENIRt1zu9aVvjZq8XDr9u3iKmPLX4JgiaBF1Oqg.png\"\n      }\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"9235c2d7-39ae-4c9f-aade-7db2dceeb231"},{"name":"Account Updated","id":"43a4036f-d19d-4170-b3d7-61d93e9d8477","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"account\",\n  \"event\": \"updated\",\n  \"account_uuid\": \"9ae9a194-a2d4-4e80-9a37-7e9314429c4a\",\n  \"uuid\": \"9ae9a194-a2d4-4e80-9a37-7e9314429c4a\",\n  \"changes\": {\n    \"attributes\": {\n      \"name\": \"Conta atualizada\",\n      \"doc\": \"10.100.111/0001-10\",\n      \"segment\": \"Empresa de Software\",\n      \"picture\": {\n        \"file_id\": \"GENIRt1zu9aVvjZq8XDr9u3iKmPLX4JgiaBF1Oqg.png\"\n      },\n      \"phone\": \"0800 3003 4444\",\n      \"site\": \"https://teste.com.br\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"43a4036f-d19d-4170-b3d7-61d93e9d8477"},{"name":"User Updated","id":"d7f9f6ab-b647-4945-b869-c0b0dd7b4b78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"user\",\n  \"event\": \"updated\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9ae96e4b-f02b-40fb-8a56-c63011aef02e\",\n  \"changes\": {\n    \"attributes\": {\n      \"name\": \"Seu Jorge\",\n      \"email\": \"tesd@root\",\n      \"doc\": \"701-588-3638\",\n      \"picture\": \"https://cdn.images/fj9uhreugj4u9hegel5gkfgfgdafgh9ff.png\",\n      \"phone\": \"(55) 11 3330-2386\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"d7f9f6ab-b647-4945-b869-c0b0dd7b4b78"},{"name":"User Status Of Service Updated","id":"9f18224b-6e07-46d7-a1ef-ab00de8cf2ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"user\",\n  \"event\": \"updated\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9ae96e4b-f02b-40fb-8a56-c63011aef02e\",\n  \"changes\": {\n    \"status_of_service\": \"AVAILABLE\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"9f18224b-6e07-46d7-a1ef-ab00de8cf2ee"},{"name":"User attached role","id":"59c62519-2871-4f09-9da0-4cc150486f0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"user\",\n  \"event\": \"updated\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9ae96e4b-f02b-40fb-8a56-c63011aef02e\",\n  \"changes\": {\n    \"attach\": {\n      \"role_uuid\": \"manager\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"59c62519-2871-4f09-9da0-4cc150486f0a"},{"name":"User Deleted","id":"979350a5-ce47-4b64-929d-d7dc174f1ca0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"user\",\n  \"event\": \"deleted\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9ae96e4b-f02b-40fb-8a56-c63011aef02e\"\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"979350a5-ce47-4b64-929d-d7dc174f1ca0"},{"name":"Tag Created","id":"ac9c43d8-7f78-4789-9370-2a5340260bdf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"tag\",\n  \"event\": \"created\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9b010f1d-9990-40c8-9c86-99b9036e9805\",\n  \"value\": {\n    \"uuid\": \"9b010f1d-9990-40c8-9c86-99b9036e9805\",\n    \"status\": \"ACTIVE\",\n    \"category\": \"CAMPAIGN\",\n    \"attributes\": {\n      \"name\": \"2024_01_03_13_28-campaign-807af53b-608a-4a63-85b0-ea6b498d8a7e\",\n      \"description\": \"Created by campaign\",\n      \"color\": \"#DDDDDD\"\n    },\n    \"contacts\": 0,\n    \"metadata\": {\n      \"deprecated_customer_id\": 1,\n      \"created_at\": \"2024-01-03T13:28:28.000000Z\",\n      \"updated_at\": \"2024-01-03T13:28:28.000000Z\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"ac9c43d8-7f78-4789-9370-2a5340260bdf"},{"name":"Tag Updated","id":"7f1920b3-9048-4c3d-83fa-dfbcccc03c4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"tag\",\n  \"event\": \"updated\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9b010f8c-da1d-4354-885c-d2057e0e753f\",\n  \"changes\": {\n    \"status\": \"ACTIVE\",\n    \"attributes\": {\n      \"name\": \"Atulizado\",\n      \"description\": \"Tudo alterado!\",\n      \"color\": \"#0000ff\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"7f1920b3-9048-4c3d-83fa-dfbcccc03c4c"},{"name":"Tag Deleted","id":"7b6e1e40-b752-4956-a01f-7c7a8c320974","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"tag\",\n  \"event\": \"deleted\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9b010f8c-da1d-4354-885c-d2057e0e753f\"\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"7b6e1e40-b752-4956-a01f-7c7a8c320974"},{"name":"Campaign Created","id":"2518ade7-cda0-447f-88bc-3e25f15aaac8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"campaign\",\n  \"event\": \"created\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9b010f1d-bb34-421b-bf0f-e2c9b748e184\",\n  \"value\": {\n    \"uuid\": \"9b010f1d-bb34-421b-bf0f-e2c9b748e184\",\n    \"attributes\": {\n      \"name\": \"Campanha de teste de Janeiro\",\n      \"description\": \"Apenas uma campanha de teste para notificar toda a nossa base\"\n    },\n    \"template\": {\n      \"uuid\": \"9affd3df-09c1-4041-9d9d-7c6ab3ea934e\",\n      \"key\": \"temp_update_status\",\n      \"status\": \"VALIDATED\",\n      \"message\": \"O status de {{1}} foi atualizado para {{2}}.\"\n    },\n    \"account_channel\": {\n      \"uuid\": \"9af4f2b6-0c9f-49bf-835e-8009b6005745\",\n      \"uid\": \"6074@polichat.webchat\",\n      \"name\": \"Webchat Alpha Test\",\n      \"status\": \"ACTIVE\",\n      \"provider\": \"WEBCHAT\"\n    },\n    \"tag\": {\n      \"uuid\": \"9b010f1d-9990-40c8-9c86-99b9036e9805\"\n    },\n    \"settings\": {\n      \"mode\": \"SEQUENTIAL\",\n      \"targets\": [\n        {\n          \"tags\": [\n            \"9acb4ac8-d3d7-485b-937d-ecf5869a579f\",\n            \"9acb3e0b-b67d-43c5-a792-9510beb1fc53\"\n          ],\n          \"users\": [\n            \"0d61d249-84a7-4b86-88cd-4c0ca10222f4\"\n          ]\n        },\n        {\n          \"tags\": [\n            \"9ae9a640-2736-443f-afd4-00c7e1a1065b\"\n          ]\n        }\n      ],\n      \"delay_between_messages\": 10,\n      \"start\": \"1702069200\",\n      \"end\": \"1702242000\",\n      \"timezone\": \"America/Sao_Paulo\",\n      \"send_if_has_active_chat\": false,\n      \"open_new_chat\": false,\n      \"allowed_sending_times\": [\n        {\n          \"days\": [\n            \"MONDAY\",\n            \"TUESDAY\",\n            \"WEDNESDAY\",\n            \"THURSDAY\",\n            \"FRIDAY\"\n          ],\n          \"hours\": [\n            {\n              \"start\": \"08:00\",\n              \"end\": \"12:00\"\n            },\n            {\n              \"start\": \"14:00\",\n              \"end\": \"18:00\"\n            }\n          ]\n        },\n        {\n          \"days\": [\n            \"SATURDAY\"\n          ],\n          \"hours\": [\n            {\n              \"start\": \"08:00\",\n              \"end\": \"12:00\"\n            }\n          ]\n        }\n      ]\n    },\n    \"metadata\": {\n      \"created_at\": \"2024-01-03T13:28:28.000000Z\",\n      \"updated_at\": \"2024-01-03T13:28:28.000000Z\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"2518ade7-cda0-447f-88bc-3e25f15aaac8"},{"name":"Contact Updated","id":"b8e53d58-8544-4b1c-81ff-f72ad13213fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"contact\",\n  \"event\": \"updated\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"75dca1c2-0f76-49b4-a3a6-dad879a42c08\",\n  \"changes\": {\n    \"attributes\": {\n      \"name\": \"Gabriel Henrique\",\n      \"picture\": {\n        \"file_id\": \"GENIRt1zu9aVvjZq8XDr9u3iKmPLX4JgiaBF1Oqg.png\"\n      }\n    },\n    \"tags\": [\n      {\n        \"uuid\": \"9ae9a640-2736-443f-afd4-00c7e1a1065b\"\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"b8e53d58-8544-4b1c-81ff-f72ad13213fb"},{"name":"Contact Forwarded","id":"394417b0-fc84-4491-baf0-69aba42fc0b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"contact\",\n  \"event\": \"forwarded\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"75dca1c2-0f76-49b4-a3a6-dad879a42c08\",\n  \"data\": {\n    \"forwarded_to\": {\n      \"type\": \"USER\",\n      \"uuid\": \"9ae96e4b-e41b-4e99-bcef-9bbea9a98398\"\n    },\n    \"chat_uuid\": \"9b011253-2f0c-4a33-b3e0-0154935b360a\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"394417b0-fc84-4491-baf0-69aba42fc0b4"},{"name":"Attendance Created","id":"b36a79a4-acf2-4cc0-b2ff-0406906feaa8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"attendance\",\n  \"event\": \"created\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9b011253-2f0c-4a33-b3e0-0154935b360a\",\n  \"value\": {\n    \"uuid\": \"9b011253-2f0c-4a33-b3e0-0154935b360a\",\n    \"status\": \"IN_PROGRESS\",\n    \"type\": \"INITIATED_BY_FORWARDING\",\n    \"closed_reason\": null,\n    \"attributes\": {\n      \"obs\": null\n    },\n    \"participants\": [],\n    \"account_channel\": {\n      \"uuid\": \"9af4f2b6-1d5a-4193-91ab-fefa0570a5d1\",\n      \"uid\": \"556298089582\",\n      \"name\": \"Alpha WABA\",\n      \"status\": \"ACTIVE\",\n      \"provider\": \"WABA\"\n    },\n    \"attendant\": null,\n    \"contact\": {\n      \"uuid\": \"75dca1c2-0f76-49b4-a3a6-dad879a42c08\",\n      \"attributes\": {\n        \"name\": \"Gabriel Henrique\",\n        \"email\": \"gabrieldesousa.h@gmail.com\",\n        \"phone\": \"5562986073728\",\n        \"doc\": \"134.231.324-23\",\n        \"picture\": {\n          \"url\": \"https://cdn.images/75dca1c2-0f76-49b4-a3a6-dad879a42c08.png\",\n          \"mime_type\": \"image/png\"\n        }\n      }\n    },\n    \"messages\": [],\n    \"metadata\": {\n      \"deprecated_chat_id\": null,\n      \"created_at\": \"2024-01-03T13:37:27.000000Z\",\n      \"updated_at\": \"2024-01-03T13:37:27.000000Z\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"b36a79a4-acf2-4cc0-b2ff-0406906feaa8"},{"name":"Attendance Updated","id":"4f4a6698-81d6-498b-add7-8b45c033903b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"attendance\",\n  \"event\": \"updated\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9ae9a63f-f2e7-419e-a624-b923a6664c94\",\n  \"changes\": {\n    \"attributes\": {\n      \"obs\": \"O cliente queria o produto XPTO, que está fora do estoque\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"4f4a6698-81d6-498b-add7-8b45c033903b"},{"name":"Team Created","id":"8d9830c2-30e2-464d-9deb-b53d50374ca6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"team\",\n  \"event\": \"created\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9b011379-cfc6-4c27-97f4-d307fff905cb\",\n  \"value\": {\n    \"uuid\": \"9b011379-cfc6-4c27-97f4-d307fff905cb\",\n    \"key\": \"testings-team\",\n    \"status\": \"ACTIVE\",\n    \"visibility\": \"PUBLIC\",\n    \"staging\": \"ENTRYPOINT\",\n    \"attributes\": {\n      \"name\": \"Testing`s team\",\n      \"description\": \"Team created for organize the members of support\"\n    },\n    \"metadata\": {\n      \"deprecated_customer_id\": 1,\n      \"created_at\": \"2024-01-03T13:40:40.000000Z\",\n      \"updated_at\": \"2024-01-03T13:40:40.000000Z\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"8d9830c2-30e2-464d-9deb-b53d50374ca6"},{"name":"Team updated","id":"907d95bb-61d4-4088-b1d2-3d3be581733b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"team\",\n  \"event\": \"updated\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9affd29d-821d-45fc-8af1-d74717031f91\",\n  \"changes\": {\n    \"attributes\": {\n      \"name\": \"Updated team\",\n      \"description\": \"Team created for organize the members of support\"\n    },\n    \"status\": \"ACTIVE\",\n    \"staging\": \"ENTRYPOINT\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"907d95bb-61d4-4088-b1d2-3d3be581733b"},{"name":"Team deleted","id":"12c34e79-9452-4652-8cc5-b9f8db2dda1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"team\",\n  \"event\": \"deleted\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9affd29d-821d-45fc-8af1-d74717031f91\"\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"12c34e79-9452-4652-8cc5-b9f8db2dda1d"},{"name":"Message Updated","id":"0f21ab15-ee12-437a-a5e2-51fc3f14a86e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"message\",\n  \"event\": \"updated\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9affd120-fc9f-47fd-a090-42929f4065d7\",\n  \"changes\": {\n    \"components\": {\n      \"body\": {\n        \"text\": \"Teste de mensagem atualizada 2\"\n      }\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"0f21ab15-ee12-437a-a5e2-51fc3f14a86e"},{"name":"Message Status (ACK)","id":"fe72d263-22b0-4024-a517-866b302ebeb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"message\",\n  \"event\": \"ack\",\n  \"account_uuid\": \"d49e64fd-fca7-40f7-be69-b4b7ac8ad46b\",\n  \"uuid\": \"9affd120-fc9f-47fd-a090-42929f4065d7\",\n  \"status\": \"RECEIVED_BY_CLIENT\"\n}","options":{"raw":{"language":"json"}}},"url":"","description":"<p>Status da mensagem possíveis:  </p>\n<ul>\n<li><p>CREATED (mensagem salva na Poli)</p>\n</li>\n<li><p>QUEUED_BY_PROVIDER (Mensagem chegou no provedor e está sendo processada) 🕑</p>\n</li>\n<li><p>RECEIVED_BY_PROVIDER (Mensagem confirmada pelo provedor) ✔️</p>\n</li>\n<li><p>RECEIVED_BY_CLIENT (Mensagem recebida pelo cliente) <strong>✔️✔️</strong></p>\n</li>\n<li><p>READ_BY_CLIENT (Cliente visualizou a mensagem) <strong>☑️☑️</strong></p>\n</li>\n<li><p>AUDIO_LISTENED (Áudio escutado pelo cliente)</p>\n</li>\n<li><p>ERROR (Falha no envio da mensagem)</p>\n</li>\n<li><p>LEAVING (Cliente saiu da chamada/grupo)</p>\n</li>\n<li><p>UNKNOWN (Status desconhecido)</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"fe72d263-22b0-4024-a517-866b302ebeb6"},{"name":"Message Sent","id":"0f4dbf41-ff4e-4127-bccf-09876fece799","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"message\",\n  \"event\": \"sent\",\n  \"account_uuid\": \"9b622002-3866-49ae-b378-642e7c9a2237\",\n  \"uuid\": \"9b7dcc71-e366-42d0-a15f-6e9aca0e2334\",\n  \"value\": {\n    \"uuid\": \"9b7dcc71-e366-42d0-a15f-6e9aca0e2334\",\n    \"event\": \"MESSAGE\",\n    \"type\": \"CHAT\",\n    \"product\": \"WHATSAPP\",\n    \"ack\": \"UNDEFINED\",\n    \"direction\": \"OUT\",\n    \"timestamp\": \"1709646036\",\n    \"template\": null,\n    \"author\": {\n      \"type\": \"USER\",\n      \"uuid\": \"ebcd8487-f42a-400c-972b-9647a93d6a98\",\n      \"attributes\": {\n        \"name\": \"Gabriel Henrique\"\n      }\n    },\n    \"contact\": {\n      \"uuid\": \"9b622247-2fac-40d8-a377-9ad2e1174f0d\",\n      \"attributes\": {\n        \"name\": \"Gabriel Henrique\",\n        \"phone\": \"5562986073728\",\n        \"picture\": {\n          \"url\": \"https://cdn.dev.cloud.polichat.com.br/company/1/media/contacts/556286073728.jpg\"\n        }\n      }\n    },\n    \"context\": null,\n    \"preview\": null,\n    \"components\": {\n      \"body\": {\n        \"text\": \"olá\"\n      }\n    },\n    \"interactive\": [],\n    \"metadata\": {\n      \"deprecated_customer_id\": 1,\n      \"external_message_id\": \"3EB0DCDF33F26FB30C5C34\",\n      \"deprecated_message_id\": 46466078,\n      \"direction\": \"OUT\",\n      \"created_at\": \"2024-03-05T13:40:32.000000Z\",\n      \"updated_at\": \"2024-03-05T13:40:37.000000Z\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"0f4dbf41-ff4e-4127-bccf-09876fece799"},{"name":"Message Received","id":"f1d9fd26-85af-4f02-b291-41ea0e1c0b70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n  \"object\": \"message\",\n  \"event\": \"received\",\n  \"account_uuid\": \"9b622002-3866-49ae-b378-642e7c9a2237\",\n  \"uuid\": \"rec-1-msg-1709647940.3149-867\",\n  \"value\": {\n    \"uuid\": \"rec-1-msg-1709647940.3149-867\",\n    \"event\": \"MESSAGE\",\n    \"type\": \"CHAT\",\n    \"product\": \"SYSTEM\",\n    \"ack\": \"UNDEFINED\",\n    \"direction\": \"IN\",\n    \"timestamp\": \"1709647938\",\n    \"template\": null,\n    \"author\": {\n      \"type\": \"CONTACT\",\n      \"uuid\": \"9b622247-2fac-40d8-a377-9ad2e1174f0d\",\n      \"attributes\": {\n        \"name\": \"Gabriel Henrique\",\n        \"phone\": \"5562986073728\",\n        \"picture\": {\n          \"url\": \"https://cdn.dev.cloud.polichat.com.br/company/1/media/contacts/556286073728.jpg\"\n        }\n      }\n    },\n    \"contact\": {\n      \"uuid\": \"9b622247-2fac-40d8-a377-9ad2e1174f0d\",\n      \"attributes\": {\n        \"name\": \"Gabriel Henrique\",\n        \"phone\": \"5562986073728\",\n        \"picture\": {\n          \"url\": \"https://cdn.dev.cloud.polichat.com.br/company/1/media/contacts/556286073728.jpg\"\n        }\n      }\n    },\n    \"context\": null,\n    \"preview\": null,\n    \"components\": {\n      \"body\": {\n        \"text\": \"Message Received\"\n      }\n    },\n    \"interactive\": [],\n    \"metadata\": {\n      \"deprecated_customer_id\": 1,\n      \"external_message_id\": \"3EB0A3C471180BBAE912CF\",\n      \"deprecated_message_id\": 46466104,\n      \"direction\": \"IN\",\n      \"created_at\": \"2024-03-05T14:12:20.000000Z\",\n      \"updated_at\": \"2024-03-05T14:12:20.000000Z\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"f1d9fd26-85af-4f02-b291-41ea0e1c0b70"},{"name":"Message Sent - Buttons","id":"341d6fc2-ff22-4dcc-8f73-012dd23c39bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"message\",\n    \"event\": \"sent\",\n    \"account_uuid\": \"9b8af98e-0407-49a2-bce9-3620f29c500a\",\n    \"uuid\": \"a0c83860-3262-4342-b3d5-d3e12fd202gf\",\n    \"value\": {\n        \"uuid\": \"a0c83860-3262-4342-b3d5-d3e12fd202gf\",\n        \"event\": \"MESSAGE\",\n        \"type\": \"CHAT\",\n        \"account_channel\": {\n            \"uuid\": \"9b8bae9e-2fe2-4f2a-82a2-abb931c7d7fe\",\n            \"uid\": \"556299800123@c.us\",\n            \"name\": \"Canal Principal\",\n            \"status\": \"ACTIVE\",\n            \"provider\": \"WABA\"\n        },\n        \"ack\": \"UNDEFINED\",\n        \"direction\": \"OUT\",\n        \"timestamp\": \"1767817997\",\n        \"template\": {\n            \"uuid\": \"9fa9d6bc-81f3-47ac-b10b-95d96d434gfc\",\n            \"key\": \"#BotMenuIniciar\",\n            \"keyboard_shortcut\": \"\",\n            \"status\": \"NOT_VERIFIED\",\n            \"type\": \"BUTTON\",\n            \"message\": {\n                \"body\": \"Ol\\u00e1, tudo bem?\\nSeja muito bem-vindo ao canal de atendimento da *Poli Digital!*\\n\\nPara melhor atend\\u00ea-lo, digite o n\\u00famero da op\\u00e7\\u00e3o desejada:\",\n                \"header\": {\n                    \"type\": \"none\",\n                    \"text\": \"\",\n                    \"mediaUrl\": \"\",\n                    \"mediaFormat\": \"TEXT\"\n                },\n                \"footer\": \"\",\n                \"buttons\": [\n                    {\n                        \"id\": 1749588280766,\n                        \"type\": \"reply\",\n                        \"text\": \"J\\u00e1 sou cliente! \\ud83d\\ude80\",\n                        \"actionType\": \"\",\n                        \"actionText\": \"\"\n                    },\n                    {\n                        \"id\": 1749588282469,\n                        \"type\": \"reply\",\n                        \"text\": \"N\\u00e3o sou, cliente \\u2639\\ufe0f\",\n                        \"actionType\": \"\",\n                        \"actionText\": \"\"\n                    }\n                ],\n                \"name\": \"polichat_buttons_message_479058\"\n            }\n        },\n        \"author\": {\n            \"type\": \"USER\",\n            \"uuid\": \"62b48ab4-2ab9-4348-b7d5-29a58ff897ec\",\n            \"attributes\": {\n                \"name\": \"GH\"\n            }\n        },\n        \"contact\": {\n            \"uuid\": \"9b9093f1-d73d-4425-bb63-00a2cd59258e\",\n            \"attributes\": {\n                \"name\": \"Gabriel Henrique\",\n                \"email\": \"gabriel.henrique@poli.digital\",\n                \"phone\": \"556286073728\",\n                \"doc\": \"701.554.831-37\",\n                \"picture\": {\n                    \"url\": \"https:\\/\\/pps.whatsapp.net\\/v\\/t61.24694-24\\/594404168_1900892990505802_8370711389218786582_n.jpg?ccb=11-4&oh=01_Q5Aa3QFnRzL7BIw8CTt_YHvZjJtoFe7B53WU9bbS7b7Qkd7FmQ&oe=69563806&_nc_sid=5e03e0&_nc_cat=102\"\n                }\n            }\n        },\n        \"context\": null,\n        \"preview\": null,\n        \"components\": {\n            \"body\": {\n                \"text\": \"*GH diz:*\\n\\nOl\\u00e1, tudo bem?\\nSeja muito bem-vindo ao canal de atendimento da *Poli Digital!*\\n\\n\\nPara melhor atend\\u00ea-lo, digite o n\\u00famero da op\\u00e7\\u00e3o desejada:\"\n            }\n        },\n        \"note\": null,\n        \"attendance\": {\n            \"uuid\": \"f999d265-cb8e-11f0-96e3-021a37396159\",\n            \"status\": null,\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": null,\n            \"metadata\": {\n                \"deprecated_attendance_id\": 237763514,\n                \"created_at\": \"2025-11-27T12:45:38.000000Z\",\n                \"updated_at\": \"2025-12-12T18:12:38.000000Z\"\n            }\n        },\n        \"metadata\": {\n            \"deprecated_customer_id\": 1,\n            \"deprecated_attendance_id\": 23763514,\n            \"external_message_id\": \"wamid.HBgMNTU2Mjg2MDczNzI4FQIAERgSRkI5NjhDRUYxMEE3RThCMDNDAA==\",\n            \"deprecated_message_id\": 175542103,\n            \"direction\": \"OUT\",\n            \"created_at\": \"2026-01-07T20:33:17.000000Z\",\n            \"updated_at\": \"2026-01-07T20:33:18.000000Z\",\n            \"deprecated_contact_id\": 1005382\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"341d6fc2-ff22-4dcc-8f73-012dd23c39bd"},{"name":"Message Sent - List","id":"bca248cb-fddf-4688-bc6a-d7d49dc331dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"body":{"mode":"raw","raw":"{\n    \"object\": \"message\",\n    \"event\": \"sent\",\n    \"account_uuid\": \"b8af8e-0407-4a2-bce-3620f2c513a\",\n    \"uuid\": \"a0c8383-1d7-427a-8872-e48db03e243\",\n    \"value\": {\n        \"uuid\": \"a0c8383-1d7-427a-8872-e48db03e243\",\n        \"event\": \"MESSAGE\",\n        \"type\": \"CHAT\",\n        \"account_channel\": {\n            \"uuid\": \"b8baee-2fe2-4f2a-82a2-abb31c7d7ce\",\n            \"uid\": \"5562800123@c.us\",\n            \"name\": \"Canal Principal\",\n            \"status\": \"ACTIVE\",\n            \"provider\": \"WABA\"\n        },\n        \"ack\": \"RECEIVED_BY_PROVIDER\",\n        \"direction\": \"OUT\",\n        \"timestamp\": \"176781772\",\n        \"template\": {\n            \"uuid\": \"ef6d52a-8b05-4a0-0a1-e50dc12213c\",\n            \"key\": \"#colaboradores\",\n            \"keyboard_shortcut\": \"\",\n            \"status\": \"NOT_VERIFIED\",\n            \"type\": \"LIST\",\n            \"message\": {\n                \"body\": \"Legal! S\\u00f3 pra eu ter uma ideia do tamanho da opera\\u00e7\\u00e3o;\\n\\nAproximadamente, quantas pessoas trabalham a\\u00ed na sua empresa?\\n\",\n                \"header\": {\n                    \"type\": \"none\",\n                    \"text\": \"\"\n                },\n                \"footer\": \"\",\n                \"button\": \"Toque Aqui \",\n                \"section\": [\n                    {\n                        \"id\": \"174735540632\",\n                        \"text\": \" \",\n                        \"rows\": [\n                            {\n                                \"id\": \"174735540632\",\n                                \"messageOption\": {\n                                    \"title\": \"Sou aut\\u00f4nomo\",\n                                    \"description\": \" \"\n                                }\n                            },\n                            {\n                                \"id\": \"174735572060\",\n                                \"messageOption\": {\n                                    \"title\": \"2 a 4 colaboradores\",\n                                    \"description\": \" \"\n                                }\n                            },\n                            {\n                                \"id\": \"17473557842\",\n                                \"messageOption\": {\n                                    \"title\": \"5 a 10 colaboradores\",\n                                    \"description\": \" \"\n                                }\n                            },\n                            {\n                                \"id\": \"174735583477\",\n                                \"messageOption\": {\n                                    \"title\": \"11 a 20 colaboradores\",\n                                    \"description\": \" \"\n                                }\n                            },\n                            {\n                                \"id\": \"1747355306\",\n                                \"messageOption\": {\n                                    \"title\": \"21 a 50 colaboradores\",\n                                    \"description\": \" \"\n                                }\n                            },\n                            {\n                                \"id\": \"17473556027\",\n                                \"messageOption\": {\n                                    \"title\": \"Mais de 50 colaboradores\",\n                                    \"description\": \" \"\n                                }\n                            }\n                        ]\n                    }\n                ],\n                \"name\": \"polichat_list_message_475630\"\n            }\n        },\n        \"author\": {\n            \"type\": \"USER\",\n            \"uuid\": \"62b48ab4-2ab-4348-b7d5-2a58ff867ec\",\n            \"attributes\": {\n                \"name\": \"GH\"\n            }\n        },\n        \"contact\": {\n            \"uuid\": \"b03f1-d73d-4425-bb63-00a2cd57258e\",\n            \"attributes\": {\n                \"name\": \"Gabriel Henrique\",\n                \"email\": \"gabriel.henrique@poli.digital\",\n                \"phone\": \"556286073728\",\n                \"doc\": \"701.554.831-37\",\n                \"picture\": {\n                    \"url\": \"https:\\/\\/pps.whatsapp.net\\/v\\/t61.2464-24\\/54404168_100820505802_837071138218786582_n.jpg?ccb=11-4&oh=01_Q5Aa3QFnRzL7BIw8CTt_YHvZjJtoFe7B53WUbbS7b7Qkd7FmQ&oe=6563806&_nc_sid=5e03e0&_nc_cat=102\"\n                }\n            }\n        },\n        \"context\": null,\n        \"preview\": null,\n        \"components\": {\n            \"body\": {\n                \"text\": \"*GH diz:*\\n\\nLegal! S\\u00f3 pra eu ter uma ideia do tamanho da opera\\u00e7\\u00e3o;\\n\\n\\nAproximadamente, quantas pessoas trabalham a\\u00ed na sua empresa?\"\n            }\n        },\n        \"note\": null,\n        \"attendance\": {\n            \"uuid\": \"fd265-cb8e-11f0-6e3-021a373615\",\n            \"status\": null,\n            \"type\": \"INITIATED_BY_FORWARDING\",\n            \"closed_reason\": null,\n            \"metadata\": {\n                \"deprecated_attendance_id\": 237763514,\n                \"created_at\": \"2025-11-27T12:45:38.000000Z\",\n                \"updated_at\": \"2025-12-12T18:12:38.000000Z\"\n            }\n        },\n        \"metadata\": {\n            \"deprecated_customer_id\": 1,\n            \"deprecated_attendance_id\": 237763514,\n            \"external_message_id\": \"wamid.HBgMNTU2Mjg2MDczNzI4FQIAERgSNzRGOEJDNDQ1QkFGMDc0NzkzAA==\",\n            \"deprecated_message_id\": 1755427516,\n            \"direction\": \"OUT\",\n            \"created_at\": \"2026-01-07T20:32:52.000000Z\",\n            \"updated_at\": \"2026-01-07T20:32:54.000000Z\",\n            \"deprecated_contact_id\": 10053812\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"bca248cb-fddf-4688-bc6a-d7d49dc331dc"}],"id":"67148bff-6d94-4ab9-9077-b8553efb30a2","description":"<p>Aqui você encontra exemplos de como sua aplicação será notificada</p>\n","_postman_id":"67148bff-6d94-4ab9-9077-b8553efb30a2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Uploads","item":[{"name":"Upload File","event":[{"listen":"test","script":{"id":"a664e792-6f01-4506-a46f-47ee8a2a7529","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response has the required fields - id and url\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('id');","    pm.expect(responseData).to.have.property('url');","});","","","pm.test(\"ID is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.id).to.be.a('string').and.to.have.lengthOf.at.least(1, \"ID should not be empty\");","});","","","pm.test(\"URL is in a valid format\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.url).to.be.an('string');","});","","","pm.test(\"Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","",""],"type":"text/javascript"}}],"id":"043ae40b-7300-478b-a44d-f9b153791f75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/gabrielhenrique/Downloads/person-icon.jpg"],"src":"postman-cloud:///1eeaa64d-e128-4030-8deb-50fd60644c6d"}]},"url":"{{host}}/accounts/{{account_uuid}}/uploads","description":"<p>Esta rota gera um ID temporário para enviar um arquivo.<br />Após utilizar o id, o arquivo ficará indisponível</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","uploads"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4a1e5ed5-55ea-45a8-b126-30b81da3c489","name":"Upload File","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/gabrielhenrique/Downloads/person-icon.jpg"],"src":"postman-cloud:///1eeaa64d-e128-4030-8deb-50fd60644c6d"}]},"url":"{{host}}/accounts/{{account_uuid}}/uploads"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 12 Jun 2024 18:30:05 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Content-Length","value":"169","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"X-Ratelimit-Limit","value":"60","enabled":true},{"key":"X-Ratelimit-Remaining","value":"59","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"Set-Cookie","value":"omniapi_session=1FQjvwdHo9eeg6NTvlHXWD7oAQqh7wDXonEaYxip; expires=Wed, 12-Jun-2024 20:30:05 GMT; Max-Age=7200; path=/; httponly; samesite=lax","enabled":true},{"key":"Content-Encoding","value":"br","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"DCt0uG7Lk2PA8Uria1MiOWYGQDO4plGTxYNnQ6ZM.jpg\",\n    \"url\": \"https://minio-staging-polidigital.svc-us3.zcloud.ws/alpha/temp/DCt0uG7Lk2PA8Uria1MiOWYGQDO4plGTxYNnQ6ZM.jpg\",\n    \"mime_type\": \"image/jpeg\"\n}"}],"_postman_id":"043ae40b-7300-478b-a44d-f9b153791f75"}],"id":"088c102c-5859-4e41-85ba-0a7fc08f2723","description":"<p>Crie um endpoint para suas mídias serem utilizadas posteriormente</p>\n","_postman_id":"088c102c-5859-4e41-85ba-0a7fc08f2723","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Commerce","item":[{"name":"Categories","item":[{"name":"List categories","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"e4b47528-eb0d-4706-9f49-dd68d0a0839d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/categories?include=attributes,status,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","categories"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,status,metadata"}],"variable":[]}},"response":[{"id":"fc9767df-9b48-4d5d-a97a-1fb37629bd94","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"e4b47528-eb0d-4706-9f49-dd68d0a0839d"},{"name":"List categories in trash","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"c9515e4c-a6b9-462d-bc1f-6dc880075027","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/categories?status_of_life_cycle=DELETED&include=attributes,status,metadata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","categories"],"host":["{{host}}"],"query":[{"key":"status_of_life_cycle","value":"DELETED"},{"key":"include","value":"attributes,status,metadata"}],"variable":[]}},"response":[{"id":"f6ae8e2d-ea29-4c55-a7a7-e2e1d78bd1d4","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"c9515e4c-a6b9-462d-bc1f-6dc880075027"},{"name":"Create Category","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"3e959fec-bb9b-42d3-a568-870189aa628f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Electronics\",\n        \"description\": \"Electronic products and gadgets\"\n    },\n    \"status\": \"ACTIVE\",\n    \"parent_category_id\": null\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/categories?include=attributes,status","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","categories"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,status"}],"variable":[]}},"response":[{"id":"d3e3db67-b51f-460a-814a-43ccaa2a6827","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"3e959fec-bb9b-42d3-a568-870189aa628f"},{"name":"Delete Category","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"96c6c164-48a7-48a2-abf1-ab1be020b7dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Electronics\",\n        \"description\": \"Electronic products and gadgets\"\n    },\n    \"status\": \"ACTIVE\",\n    \"parent_category_id\": null\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/categories/{{category_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["categories","{{category_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"6a3f82ef-59da-4bf1-8fe1-bdf8af4f0373","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"96c6c164-48a7-48a2-abf1-ab1be020b7dd"},{"name":"Restore Category","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"42b9b8e6-1aa6-43e0-9f4f-3db2c5ce2b1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Electronics\",\n        \"description\": \"Electronic products and gadgets\"\n    },\n    \"status\": \"ACTIVE\",\n    \"parent_category_id\": null\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/categories/{{category_id}}/restore","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["categories","{{category_id}}","restore"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"00a2af25-a506-4347-b836-38d1459cbb0b","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"42b9b8e6-1aa6-43e0-9f4f-3db2c5ce2b1a"},{"name":"Update Category","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"7d014b38-281c-4ddc-b024-68637dec99a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Updated Electronics\"\n    },\n    \"status\": \"INACTIVE\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/categories/{{category_id}}?include=attributes,status","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["categories","{{category_id}}"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,status"}],"variable":[]}},"response":[{"id":"2e316e73-6897-4a06-9a90-604b535d7655","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"7d014b38-281c-4ddc-b024-68637dec99a9"},{"name":"Show Category","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"6baf23ae-c3ec-4df0-b172-3ff52898ca01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/categories/{{category_id}}?include=attributes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["categories","{{category_id}}"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes"}],"variable":[]}},"response":[{"id":"59af1b40-b79b-4e80-9819-214c1826e372","name":"List contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/accounts/{{account_uuid}}/contacts?include=*&order=-created_at","host":["{{host}}"],"path":["accounts","{{account_uuid}}","contacts"],"query":[{"key":"include","value":"*"},{"key":"order","value":"-created_at"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Date","value":"Wed, 29 Nov 2023 14:55:40 GMT","enabled":true},{"key":"Connection","value":"close","enabled":true},{"key":"X-Powered-By","value":"PHP/8.2.11","enabled":true},{"key":"Cache-Control","value":"no-cache, private","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"X-RateLimit-Limit","value":"60","enabled":true},{"key":"X-RateLimit-Remaining","value":"56","enabled":true},{"key":"Vary","value":"Origin","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"uuid\": \"9abac5bd-3b1b-4856-8ed2-36e03db7ea68\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825395\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9abac5bd-4bb7-411a-a979-7c1bafc27d78\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                        \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 4,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:55:21.000000Z\",\n                \"updated_at\": \"2023-11-29T14:55:21.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ababf8c-8631-4178-854f-7f087ebb6d6f\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [],\n            \"addresses\": [],\n            \"metadata\": {\n                \"deprecated_contact_id\": 2,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-29T14:38:02.000000Z\",\n                \"updated_at\": \"2023-11-29T14:38:02.000000Z\"\n            }\n        },\n        {\n            \"uuid\": \"9ab93439-937a-4ac8-8b6e-a06b069ec229\",\n            \"type\": \"PERSON\",\n            \"attributes\": {\n                \"name\": \"John Doe\",\n                \"email\": \"john.doe@example.com\",\n                \"phone\": \"11 93823-4444\",\n                \"picture\": \"https://cdn.poli/f2e0325a-9bc8-4d46-806a-f0f4be062636.png\",\n                \"doc\": \"701.556.232-33\"\n            },\n            \"account\": {\n                \"uuid\": \"9a54042e-5590-49d4-bf74-acf0a193d99d\",\n                \"name\": \"Root\"\n            },\n            \"channels\": [\n                {\n                    \"uid\": \"556292825394\",\n                    \"provider\": \"WHATSAPP\",\n                    \"type\": \"DEFAULT\"\n                }\n            ],\n            \"addresses\": [\n                {\n                    \"uuid\": \"9ab93439-ad94-456c-a330-8c76c30ca475\",\n                    \"type\": \"Headquarter\",\n                    \"country\": \"Brasil\",\n                    \"postal_code\": \"74453-440\",\n                    \"state\": \"Goiás\",\n                    \"city\": \"Goiânia\",\n                    \"street\": \"Av C-12\",\n                    \"number\": \"19\",\n                    \"neighborhood\": \"Sudoeste\",\n                    \"complement\": \"Edifício Sudoeste Center\",\n                    \"reference\": \"reference\",\n                    \"metadata\": {\n                        \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                        \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n                    }\n                }\n            ],\n            \"metadata\": {\n                \"deprecated_contact_id\": 1,\n                \"deprecated_customer_id\": 1,\n                \"created_at\": \"2023-11-28T20:12:38.000000Z\",\n                \"updated_at\": \"2023-11-28T20:12:38.000000Z\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"Anterior\",\n            \"active\": false\n        },\n        {\n            \"url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"Próxima\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://127.0.0.1:8000/v3/accounts/9a54042e-5590-49d4-bf74-acf0a193d99d/contacts\",\n        \"per_page\": 15,\n        \"prev_page_url\": null,\n        \"to\": 3,\n        \"total\": 3\n    }\n}"}],"_postman_id":"6baf23ae-c3ec-4df0-b172-3ff52898ca01"}],"id":"6e3061f0-666b-4bd7-b89c-bb4db240eacb","_postman_id":"6e3061f0-666b-4bd7-b89c-bb4db240eacb","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}},{"name":"Products","item":[{"name":"List products","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"ae19eecb-9889-4db5-922e-b262215eb0ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/products?include=attributes,status,category","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","products"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,status,category"}],"variable":[]}},"response":[],"_postman_id":"ae19eecb-9889-4db5-922e-b262215eb0ab"},{"name":"List products in trash","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"97a716af-8639-4cd1-8734-42096a1d5639","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/products?status_of_life_cycle=DELETED&include=attributes,status,category","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","products"],"host":["{{host}}"],"query":[{"key":"status_of_life_cycle","value":"DELETED"},{"key":"include","value":"attributes,status,category"}],"variable":[]}},"response":[],"_postman_id":"97a716af-8639-4cd1-8734-42096a1d5639"},{"name":"List products by category","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"f9532cac-9a4a-4ba1-b370-52bbe5a226a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/accounts/{{account_uuid}}/products?include=attributes,status,category","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","products"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,status,category"}],"variable":[]}},"response":[],"_postman_id":"f9532cac-9a4a-4ba1-b370-52bbe5a226a5"},{"name":"Show product","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"f68bcaa6-8c12-4508-845d-fcad54a3b297","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/products/{{product_id}}?include=attributes,status,category","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["products","{{product_id}}"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,status,category"}],"variable":[]}},"response":[],"_postman_id":"f68bcaa6-8c12-4508-845d-fcad54a3b297"},{"name":"Update product","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"0653a876-c93a-4199-a889-2c4c3b6c551d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Updated Electronics\"\n    },\n    \"status\": \"INACTIVE\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/products/{{product_id}}?include=attributes,status,category","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["products","{{product_id}}"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,status,category"}],"variable":[]}},"response":[],"_postman_id":"0653a876-c93a-4199-a889-2c4c3b6c551d"},{"name":"Create product","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"a08247ef-2bdc-4220-9016-5972641ceac3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Electronics\",\n        \"description\": \"Electronic products and gadgets\"\n    },\n    \"status\": \"ACTIVE\",\n    \"parent_category_id\": null,\n    \"category_id\": 12\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/accounts/{{account_uuid}}/products?include=attributes,status,category","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["accounts","{{account_uuid}}","products"],"host":["{{host}}"],"query":[{"key":"include","value":"attributes,status,category"}],"variable":[]}},"response":[],"_postman_id":"a08247ef-2bdc-4220-9016-5972641ceac3"},{"name":"Delete product","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"fa74d878-ffdf-4213-8059-c37d3c395286","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Electronics\",\n        \"description\": \"Electronic products and gadgets\"\n    },\n    \"status\": \"ACTIVE\",\n    \"parent_category_id\": null\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/products/{{product_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["products","{{product_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa74d878-ffdf-4213-8059-c37d3c395286"},{"name":"Restore Category","event":[{"listen":"test","script":{"id":"e39cb916-e780-4d99-8a94-b6f14ceca09b","exec":["","pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","","    responseData.data.forEach(contact => {","        if(contact.attributes.email) {","            pm.expect(contact.attributes.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/,\"Email format is not valid\");","        }","    });","});","","","pm.test(\"Data array is present and contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').and.to.have.lengthOf.at.least(1);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"24b15c50-be65-4c46-b6ea-236159412510","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attributes\": {\n        \"name\": \"Electronics\",\n        \"description\": \"Electronic products and gadgets\"\n    },\n    \"status\": \"ACTIVE\",\n    \"parent_category_id\": null\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/products/{{product_id}}/restore","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}},"urlObject":{"path":["products","{{product_id}}","restore"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"24b15c50-be65-4c46-b6ea-236159412510"}],"id":"b84cef2e-d866-457a-922a-77da08974eb7","_postman_id":"b84cef2e-d866-457a-922a-77da08974eb7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}}],"id":"cae39444-7119-4b9b-86c6-c5b16a19cff2","_postman_id":"cae39444-7119-4b9b-86c6-c5b16a19cff2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]},"isInherited":true,"source":{"_postman_id":"1651d1ff-9b24-45af-8611-cff297997f9b","id":"1651d1ff-9b24-45af-8611-cff297997f9b","name":"API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{AuthToken}}"}]}},"event":[{"listen":"prerequest","script":{"id":"44507b58-d50b-437a-bc63-acbc23eb8a76","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8c450ebf-97b7-4796-9535-fc910a6e04de","type":"text/javascript","exec":[""]}}]}