Overview
A client-mode connector for a curated messaging slice of the Twilio SendGrid API v3:
Default
BASE_ADDRESS is https://api.sendgrid.com/v3. Topics use messaging/sendgrid/<object>/<verb>.
All events send
Authorization: Bearer {api_key}. Prefer Hub secret SENDGRID_API_KEY. Inbound Event Webhook (delivered / bounce / open) → MQTT is out of scope for this client-mode package. EU regional subusers may use https://api.eu.sendgrid.com/v3. Status remains blocked until an authenticated live smoke succeeds.Basic Syntax
Events
Auth
- Create an API key in the SendGrid UI with Mail Send (and preferably Template Engine Read) scopes. Use a verified sender identity for
from. - Set connector
BASE_ADDRESStohttps://api.sendgrid.com/v3(orhttps://api.eu.sendgrid.com/v3for EU regional). - Pass
api_keyon the MQTT payload soAuthorization: Bearer {value.json.api_key}resolves. - Store the key in Hub /
GET SECRET "SENDGRID_API_KEY". Never commit real credentials. - Successful
GET /user/profilereturns HTTP 200.POST /mail/sendreturns 202 Accepted.GET /templatesreturns 200 with a pagedresultarray.
Example payloads
getUserProfile:Install
- The template ships with the broker. List it with
-listTemplatesor fetch it from the Hub catalog. - Deploy with
-addRoutefromSendGridRestApi.lot(nothub-metadata.lot).

