The SendPost Email API allows you to send emails programmatically with speed, scalability, and detailed analytics. It is ideal for developers who prefer API-based integrations or want to embed email-sending functionality directly into their applications.
Using the API gives you greater control over email delivery while maintaining reliable performance and visibility into sending activity.
Before You Begin
Before sending emails using the SendPost Email API, ensure that:
You have an active SendPost account
An API key has been generated
Your sending domain is whitelisted
You have the required permissions to access API features
The recipient email address is valid and reachable
Step-by-Step Instructions
Step 1: Access the API Reference
Navigate to the API Reference section and click the Try It button. https://docs.sendpost.io/
Step 2: Add the API Key
Enter your API key to authenticate the request. You can obtain the API key from the Subaccount section by navigating to Profile → Subaccounts → API Key.
Step 3: Enter the From Email Address
Specify the sender email address, ensuring it belongs to a whitelisted domain.
Add Your API Key
Enter your API key to authenticate the request.
Enter the From Email Address
Make sure the email address belongs to your whitelisted domain.
Step 5: Add the Subject
Enter a relevant subject line for the email.
Add the Email Body
Compose the content of your email message.
Step 7: Send the Email
Click the Send button in the top-right corner of the modal to send the email.
Step 8: Verify Successful Sending
Confirm a 200 OK status response, which indicates the email was sent successfully.
Step 9: Confirm Receipt
Check the recipient’s mailbox to ensure the email has been received.
Tips & Best Practices
Always use a whitelisted and authenticated domain
Test API calls before deploying them to production
Handle API responses and errors properly
Monitor delivery and engagement metrics regularly
Keep API keys secure and rotate them when necessary
