For Agents
Send emails at scale via HTTP, manage batch sends, and track delivery with open and click analytics. Supports templates and scheduling.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Twilio SendGrid Mail API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Twilio SendGrid Mail API.
Deliver transactional emails with dynamic template substitution and category tagging
Schedule email batches for future delivery with pause and cancel controls
Track recipient engagement through open and click event tracking
GET STARTED
Use for: I need to send a transactional email with a dynamic template, I want to schedule a batch of emails for delivery tomorrow morning, Check whether a batch send has been cancelled, Retrieve the batch ID for a group of scheduled emails
Not supported: Does not handle SMS, push notifications, or contact list management — use for email delivery and batch scheduling only.
Send transactional and marketing emails at scale over HTTP with support for templates, categories, open and click tracking, and batch scheduling. Group mail sends into batches that can be scheduled, paused, or cancelled by batch ID. Supports global and EU-regional endpoints for data residency compliance.
Route mail through global or EU-regional endpoints for data residency
Attach files, embed images, and set custom headers per recipient
Configure sandbox mode for testing sends without actual delivery
Tag sends with custom arguments for downstream analytics filtering
Patterns agents use Twilio SendGrid Mail API for, with concrete tasks.
★ AI Agent Email Automation
AI agents send transactional emails through Jentic by searching for the send email operation, loading the request schema, and executing with recipient, subject, and content fields. Jentic handles bearer token injection and schema validation so the agent never touches raw API keys. A single API call to POST /v3/mail/send delivers the message with full template and tracking support.
Send a transactional email to user@example.com with subject 'Order Confirmation' using template ID d-abc123 and verify the 202 accepted response
Batch Email Scheduling
Schedule large volumes of marketing or transactional emails for future delivery by generating a batch ID and assigning it to individual sends. The API supports pausing or cancelling entire batches before their scheduled send time, giving operations teams control over time-sensitive campaigns without rebuilding send lists.
Create a new mail batch via POST /v3/mail/batch, then send 3 emails assigned to that batch ID with a send_at timestamp of tomorrow 9:00 AM UTC
Transactional Order Notifications
Trigger real-time email notifications for e-commerce events like order confirmations, shipping updates, and delivery receipts. Each send supports dynamic template data substitution, allowing personalized content per recipient without maintaining multiple templates. Open and click tracking provide visibility into engagement rates for critical communications.
Send an order confirmation email to a customer with dynamic data including order_id, item_list, and total_amount using a SendGrid dynamic template
Multi-Region Email Delivery
Route email sends through region-specific endpoints to comply with data residency requirements. The EU endpoint at api.eu.sendgrid.com processes mail within the European Union, while the global endpoint handles all other traffic. This requires no code changes beyond switching the base URL, making it straightforward for applications serving international users.
Send a GDPR-compliant email through the EU regional endpoint at https://api.eu.sendgrid.com/v3/mail/send with tracking disabled for a European subscriber
3 endpoints — send transactional and marketing emails at scale over http with support for templates, categories, open and click tracking, and batch scheduling.
METHOD
PATH
DESCRIPTION
/v3/mail/send
Send an email with full template, tracking, and personalization support
/v3/mail/batch
Generate a batch ID for grouping scheduled sends
/v3/mail/batch/{batch_id}
Retrieve the status of a mail batch
/v3/mail/send
Send an email with full template, tracking, and personalization support
/v3/mail/batch
Generate a batch ID for grouping scheduled sends
/v3/mail/batch/{batch_id}
Retrieve the status of a mail batch
Three things that make agents converge on Jentic-routed access.
Credential isolation
SendGrid bearer tokens are stored encrypted in the Jentic vault (MAXsystem). Agents receive scoped access — the raw API key never enters the agent's context or logs.
Intent-based discovery
Agents search by intent (e.g., 'send a transactional email') and Jentic returns the matching SendGrid mail send operation with its full request schema, so the agent can construct the payload without reading documentation.
Time to first call
Direct SendGrid integration: 1-2 days for auth setup, template configuration, and error handling. Through Jentic: under 1 hour — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
Specific to using Twilio SendGrid Mail API through Jentic.
What authentication does the SendGrid Mail API use?
The SendGrid Mail API uses Bearer token authentication. You include your API key in the Authorization header as 'Bearer SG.your-api-key'. Through Jentic, your SendGrid API key is stored encrypted in the MAXsystem vault and injected automatically into requests, so agents never handle raw credentials.
Can I schedule emails for future delivery with the SendGrid Mail API?
Yes. First create a batch ID via POST /v3/mail/batch, then include that batch_id and a send_at Unix timestamp in your mail send request. You can later retrieve the batch status via GET /v3/mail/batch/{batch_id} to verify scheduling or cancel the batch before delivery.
What are the rate limits for the SendGrid Mail API?
SendGrid enforces rate limits based on your plan tier. Free accounts allow 100 emails per day. Pro plans support higher throughput with burst limits on the /v3/mail/send endpoint. The API returns a 429 status code with a Retry-After header when limits are reached.
How do I send a templated email through Jentic?
Search for 'send a transactional email' in Jentic, load the SendGrid mail send operation schema, then execute with your template_id in the request body along with dynamic_template_data for personalization. Jentic injects the bearer token automatically. Install with pip install jentic and use the search-load-execute flow.
Does the SendGrid Mail API support attachments?
Yes. Include base64-encoded file content in the attachments array of the POST /v3/mail/send request body. Each attachment requires a filename, content (base64), and type (MIME type). The API supports multiple attachments per message with a total message size limit of 30MB.
Can I use separate endpoints for EU data residency?
Yes. SendGrid provides a dedicated EU endpoint at https://api.eu.sendgrid.com for subusers provisioned in the EU region. The API contract is identical to the global endpoint — only the base URL changes. This ensures email processing stays within EU boundaries for GDPR compliance.