Overview
Jasni makes it easy to send and receive emails on behalf of your AI agents. This guide covers the fundamentals of email operations.Sending Emails
To send an email, use theemails.send endpoint. You can send plain text, HTML, or both.
- TypeScript SDK
- Python SDK
- cURL
Sending to Multiple Recipients
You can send to multiple recipients by providing an array:Adding Attachments
Include attachments with your emails:Receiving Emails
Listing Emails
Retrieve emails from an inbox:- TypeScript SDK
- Python SDK
Getting a Specific Email
Retrieve the full content of a single email:Real-Time Email Reception
For instant notifications when emails arrive, use webhooks:See the Webhooks Overview for detailed information on setting up real-time notifications.
Replying to Emails
Reply to an existing email thread:Forwarding Emails
Forward an email to another recipient:Best Practices
Always provide both text and HTML
Always provide both text and HTML
Some email clients don’t render HTML. Providing both ensures your message is readable everywhere.
Use webhooks for real-time processing
Use webhooks for real-time processing
Instead of polling for new emails, set up webhooks to receive instant notifications when emails arrive.
Handle rate limits gracefully
Handle rate limits gracefully
Implement exponential backoff when you encounter rate limit errors (429 status code).
Validate email addresses
Validate email addresses
Always validate email addresses before sending to avoid bounces and protect your sender reputation.