Task: Import contacts in Mailjet list

n8n workflow:
{"id":"3","meta":{"instanceId":"7b4204bd4d49acdf52820bdf240299b8e41a2f4055799ec9dcffa792f9643368"},"name":"Import contacts in Mailjet list","tags":[],"nodes":[{"id":"2efe9278-965f-44f2-80e4-4910c12ad601","name":"Sticky Note2","type":"n8n-nodes-base.stickyNote","position":[3900,3498.4361465816473],"parameters":{"width":441.6510949141564,"height":243.18107665208947,"content":"### API DOC\n\nhttps://dev.mailjet.com/email/guides/contact-management/#manage-multiple-contacts-in-a-list\n\nhttps://dev.mailjet.com/email/guides/contact-management/#overview"},"typeVersion":1},{"id":"97a900c7-d613-4054-b86d-ecfdb368a32b","name":"Sticky Note4","type":"n8n-nodes-base.stickyNote","position":[2940,2778.4361465816473],"parameters":{"width":904.1667813291737,"height":277.79095172370467,"content":"## Create a list on the Mailjet account\n\nDouble click on the node to configure it.\n\n**1. Mailjet - create a list**\n- Choose the user's Mailjet credentials\n- In Body parameters > \"Value\" field, write the name of the contact list to create\n- Execute the node (play button above the node) \n- Double click on the node and in the \"output\" panel (on the right),\ncopy the \"ID\" value and **paste it in node 4**: in the \"URL\" field, as indicated here: https://api.mailjet.com/v3/REST/contactslist/PASTE_HERE/managemanycontacts\n"},"typeVersion":1},{"id":"39be8668-886a-4d06-89bc-3a8feaa54510","name":"Sticky Note5","type":"n8n-nodes-base.stickyNote","position":[2940,2633.584206246656],"parameters":{"width":556.8240207957331,"height":124.48170110370168,"content":"## Create Mailjet Credentials\nAdd the Mailjet API and secret keys of your user in N8N \"Credentials\" tab. [See the doc](https://docs.n8n.io/integrations/builtin/credentials/mailjet/)\n"},"typeVersion":1},{"id":"57e26418-73fe-4062-a916-c06fd7fd98bb","name":"Sticky Note6","type":"n8n-nodes-base.stickyNote","position":[2940,3078.4361465816473],"parameters":{"width":913.2478202839083,"height":666.2226758207432,"content":"## Import your contacts from OFN to Mailjet list\n\n**2. Schedule trigger** Choose the frequency you want\n\n**3. Your data source**\n\n**4. Mailjet - Import contacts in list**\nIn \"Credential Mailjet API\", choose your user credentials\n\n\n**Click on \"Execute workflow\" once** The list will be imported.\n\n**Activate your workflow** (click on the toggle on the top right of your screen). Your contact list will be updated automatically! 🤟\n\n"},"typeVersion":1},{"id":"db95f229-35d2-4bab-acd8-c02facd5a6a1","name":"Execute Workflow","type":"n8n-nodes-base.manualTrigger","position":[3000,3438.4361465816473],"parameters":{},"typeVersion":1},{"id":"29797c17-6438-4567-b6bb-e5e0c6090cfe","name":"Create emailList Array","type":"n8n-nodes-base.code","position":[3460,3498.4361465816473],"parameters":{"jsCode":"const initialArray = items[0].json.data\n\nvar emails = []\n\ninitialArray.forEach(element =>{\n  emails.push({\n    \"Email\": element.attributes.email\n  })\n})\n\nreturn {\n  \"emailList\": emails\n}\n "},"typeVersion":1},{"id":"6fc4b81a-3e16-4dc1-b532-5f9f259a6369","name":"2. Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","position":[3000,3578.4361465816473],"parameters":{"rule":{"interval":[{}]}},"typeVersion":1},{"id":"ce8d4b6e-4e80-40f7-bab9-41e6b1ca4de9","name":"4. Mailjet - Import contacts in list","type":"n8n-nodes-base.httpRequest","position":[3660,3498.4361465816473],"parameters":{"url":"https://api.mailjet.com/v3/REST/contactslist/51259/managemanycontacts","method":"POST","options":{},"sendBody":true,"authentication":"predefinedCredentialType","bodyParameters":{"parameters":[{"name":"Action","value":"addnoforce"},{"name":"Contacts","value":"={{ $json.emailList }}"}]},"nodeCredentialType":"mailjetEmailApi"},"credentials":{"mailjetEmailApi":{"id":"","name":""}},"typeVersion":3},{"id":"8d2b1e95-abc9-47e7-a642-a0faa96b0ef0","name":"1. Mailjet - create a list","type":"n8n-nodes-base.httpRequest","position":[3600,2838.4361465816473],"parameters":{"url":"https://api.mailjet.com/v3/REST/contactslist","method":"POST","options":{},"sendBody":true,"authentication":"predefinedCredentialType","bodyParameters":{"parameters":[{"name":"Name","value":"CoopCircuits"}]},"nodeCredentialType":"mailjetEmailApi"},"credentials":{"mailjetEmailApi":{"id":"","name":""}},"typeVersion":3},{"id":"505b02dd-61bd-4499-ad21-66fac190cdc5","name":"3. Your data source - Get customers list","type":"n8n-nodes-base.httpRequest","position":[3240,3498.4361465816473],"parameters":{"url":"https://yoururl","options":{},"authentication":"genericCredentialType","genericAuthType":"httpQueryAuth"},"credentials":{"httpQueryAuth":{"id":"","name":""}},"typeVersion":2},{"id":"e4350634-88e5-4352-b975-6262d4d3d08b","name":"test function: return email list","type":"n8n-nodes-base.code","position":[3460,3700],"parameters":{"jsCode":"var contactList = []\n\n\nfor(i=0;i<2;i++) {\n  contactList.push(\n    {\n      \"Email\" : \"bomboclattt\"+i + \"@ecomail.com\"\n      \n    })\n}\n\nreturn {\n  \"emailList\":\n  contactList\n}\n\n"},"typeVersion":1}],"active":false,"pinData":{},"settings":{},"versionId":"bf4ae309-635b-458f-90ff-b71b1e20f06e","connections":{"Execute Workflow":{"main":[[{"node":"3. Your data source - Get customers list","type":"main","index":0}]]},"2. Schedule Trigger":{"main":[[{"node":"3. Your data source - Get customers list","type":"main","index":0}]]},"Create emailList Array":{"main":[[{"node":"4. Mailjet - Import contacts in list","type":"main","index":0}]]},"3. Your data source - Get customers list":{"main":[[{"node":"Create emailList Array","type":"main","index":0}]]}}}