Use JSON Generator to create a JSON Data Structure and make an HTTP request using an API Key (SendGrid example)


Use the JSON Generator in the 'Create JSON' module to automatically add a data structure using a sample JSON. Learn how to modify it and make an HTTP request using an API key to connect to a third-party service. In this tutorial, we have used SendGrid and have shown how to do the following:

  1. Connect to SendGrid over HTTP
  2. Send an email using SendGrid directly from the HTTP module on Integromat
  3. Send an email using a template on SendGrid

Pertinent points to note:

  • SendGrid's authentication takes place using an API Key and hence why we use the 'Make a request' HTTP module on Integromat. 


  • To send an email directly from the HTTP module, you need to add the 'content' Parameter to your JSON data structure. As you can see below, 'content' is an array of collections; 'type' and 'value' are where you need to define the content type and the actual content respectively. Also, it is a required parameter and will result in an error if left blank. 


  • To send an email using a template, you need to add the 'template_id' parameter. As you can see in the image below, 'template_id' is a simple string and is an optional parameter and hence why it can be left blank. 

Video Tutorial: 


Here's the link to the template used in this scenario and you can refer to the SendGrid API Docs here.

Please note that Integromat only supports V3 of the SendGrid API. 


Popular use cases from our blog


How to Automate Data Collection - Part 5: CRM Systems


How to Automate Data Collection - Part 4: Chatbot Marketing


How to Automate Data Collection - Part 3: Paid Ads


How to Automate Data Collection - Part 2: Email Marketing Segmentation


5 Automated Solutions to Personalize Customer Experience


How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?


Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.