Email API1 min read

How to Send Transactional Emails with Piisend's REST API

Learn how to quickly integrate Piisend's REST API to send essential transactional emails like OTPs, password resets, and receipts, ensuring reliable delivery and easy setup for developers.

How to Send Transactional Emails with Piisend's REST API

Section 1

What are Transactional Emails?

Transactional emails are automated, one-to-one messages triggered by a user's action, such as password resets, order confirmations, or account verifications. Unlike marketing emails, they are crucial for user experience and often legally required. Piisend provides a robust API designed for developers to reliably send these critical communications.

Section 2

Setting Up Your Piisend Account and API Key

To begin sending emails with Piisend, first sign up for an account on our platform. Once registered, navigate to your dashboard to generate an API key. This key is essential for authenticating your requests to the Piisend API and should be kept secure.

Section 3

Sending an Email with a Simple cURL Request

Piisend's REST API makes sending emails straightforward. You can use a simple HTTP POST request to our /send endpoint. Include your API key in the Authorization header and specify the sender, recipient, subject, and body of your email in the JSON payload. This allows for quick integration into any application.

Section 4

Streamlining Emails with Piisend Templates

For recurring transactional emails, Piisend's template feature is invaluable. Design your email layouts once within the Piisend dashboard, incorporating placeholders for dynamic data. Then, when sending an email via the API, simply reference the template ID and provide the necessary data variables in your request, simplifying content management.

Section 5

Tracking Delivery and Event-Driven Workflows

After sending, it's vital to know if your emails are delivered. Piisend offers delivery logs in your dashboard for real-time status updates. For more advanced, event-driven workflows, configure webhooks to receive notifications about bounces, opens, clicks, and other events directly in your application, enabling immediate responses.

Start sending

Ship transactional email in minutes

Create an API key, verify a domain, and send your first message with Piisend.