Python package to call the SendGrid Web API v3, including mail send and other endpoints. You use it inside applications that already have a SendGrid account and API key.
Overview
SendGrid Python is the official Twilio SendGrid client for Python. It lets application code send email and interact with SendGrid Web API v3 endpoints, including the v3 mail send route.
The library offers quick-start examples with a mail helper class or lower-level request construction, plus patterns for general v3 API calls with or without a fluent interface. Documentation covers installation, environment variables for API keys, inbound parse webhooks, transactional templates, and migration from older API versions.
It is maintained by Twilio SendGrid and intended for developers who deploy Python apps that need programmatic email delivery and related API operations. Using it requires the SendGrid cloud service and an API key; the package itself does not host mail infrastructure.
Support and troubleshooting are documented through Twilio SendGrid’s help center and project guides.
Key features
- SendGrid Web API v3 coverage
- Mail send helper API
- Fluent and raw API clients
- Inbound parse webhook helpers
- Transactional template examples
- Environment-based API key setup
Use cases
- Transactional email from Python apps
- Marketing and notification sends
- Automated mail via SendGrid API
- Inbound email processing hooks