I’m trying to connect the Mailjet API to n8n using the HTTP Request node (custom API), as I want to automate the creation of email campaigns from my Excel file.
My goal is to use the https://api.mailjet.com/v3/REST/campaigndraft endpoint to create campaign drafts, as well as other endpoints related to campaigns (messages, contact lists, etc.).
However, I’m unsure about the exact configuration I should use in the HTTP Request node (authentication, headers, body, etc.).
Has anyone successfully done this integration and could share a working configuration example to help me get started?
Then you might have added the auth incorrectly. I created an account now and added a contact from an http node. Can you check if you can run this node using your credentials.
Oh wait I see the issue. You’re using a GET method on the contactfilter for segmentaiton. I believe there is only a POST available for creating segmentations. If you want to copy the api into n8n, click the copy button on curl from the api documentation: