Integromat
  • Back to website
Articles in this section
  • Example of a Default route configured for a router
  • Send data to Integromat as JSON via an action in a Bubble workflow using the API Connector plugin
  • How to iterate columns of a Google Sheet worksheet
  • How to fully reset your Google connections
  • Calling Google APIs via the "HTTP > Make a OAuth 2.0 request" module
  • Calling Microsoft Graph REST API via the "HTTP > Make a OAuth 2.0 request" module
  • Create a Data Thing or a Bulk of Data Things on Bubble
  • Use JSON Generator to create a JSON Data Structure and make an HTTP request using an API Key (SendGrid example)
  • Extract an item and/or its value from an array of collections
  • Automate Invoicing with Invoice Ninja
See more
  1. Integromat Support
  2. Tutorials
  3. Tutorials

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

Integromat Integromat Updated January 27, 2021 15:12

Summary: 

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. 

 

Was this article helpful?
5 out of 10 found this helpful
Menu
  • Features
  • Apps & Services
  • Templates
  • Pricing
  • What's new
  • Use cases
Information
  • Terms,  Privacy
  • FAQ
  • Help & Tutorials
  • Community
  • Affiliate Program
  • Blog
Developers
  • Developer Platform
Company
  • About the company
  • Join our team
  • Contact
Follow us
© 2020 Integromat by Celonis. All rights reserved. Integromat® is a registered trademark.
  • English