@orchesty/connector-send-grid
v2.0.0
Published
[](https://www.npmjs.com/package/@orchesty/connector-send-grid) [](https://github.com/Orchesty/orchesty-nodej
Readme
SendGrid Connector
An Orchesty connector for SendGrid (Twilio), a cloud-based email delivery platform for sending transactional and marketing emails at scale.
Application Type
Basic
This connector authenticates using a SendGrid API key sent as a Bearer token in the Authorization header.
| Field | Description |
|---|---|
| token | Your SendGrid API key |
Components
| Class | Type | Description |
|---|---|---|
| SendGridSendEmailConnector | Connector | Sends a transactional email via a SendGrid template using POST /v3/mail/send |
Setup
Credentials
- Log in to SendGrid.
- Navigate to Settings → API Keys and create a new API key with Mail Send permissions.
- Copy the key immediately — it will not be shown again.
- In Orchesty, open the SendGrid application settings and paste the key into the Api key field.
API Documentation
SendGrid Mail Send API: https://docs.sendgrid.com/api-reference/mail-send/mail-send
Installation & Usage
Install the package:
npm install @orchesty/connector-send-grid @orchesty/nodejs-sdk
# or
pnpm add @orchesty/connector-send-grid @orchesty/nodejs-sdkRegister the application and nodes in your Orchesty DI container:
import { container } from '@orchesty/nodejs-sdk';
import SendGridApplication from '@orchesty/connector-send-grid/dist/SendGridApplication';
import SendGridSendEmailConnector from '@orchesty/connector-send-grid/dist/Connector/SendGridSendEmailConnector';
const app = new SendGridApplication();
container.setApplication(app);
container.setNode(new SendGridSendEmailConnector(), app);License
This connector is released under the Apache License 2.0. See the LICENSE file for the full license text.
Contributing
Contributions are welcome! This connector is part of the open-source Orchesty Node.js Connectors monorepo.
For guidelines on how to create or update connectors — including project setup, coding conventions, and how to write tests — please refer to the Contributing to Connectors guide.
All contributions should include:
- Source code in
src/following the existing connector structure - Tests in
src/**/__tests__/withinput.json,mock.json, andoutput.jsonfixtures - An updated
CHANGELOG.mdentry
