Developer Documentation & Reference
Sendport REST API v1
Dispatch transactional & marketing emails, manage DNS records, check links, and configure webhooks with predictable JSON responses.
Getting Started
Integration SDKs
- Node.js / TypeScript
- Python 3.8+
- Go 1.18+
- PHP / Laravel
Quickstart: Dispatch Your First Email
Send your first email in under 30 seconds using standard cURL or your favorite language SDK.
curl -X POST https://api.getsendport.com/v1/emails \
-H "Authorization: Bearer sp_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"from": "Acme <hello@yourdomain.com>",
"to": ["alex@example.com"],
"subject": "Welcome to Acme SaaS",
"html": "<strong>Your account has been activated!</strong>",
"trackOpens": true,
"trackClicks": true
}'Authentication
Authenticate your requests by including your secret API key in the Authorization: Bearer header. You can generate new keys with full or sending-only scopes in your Sendport Dashboard.
Authorization: Bearer sp_live_9a7f82b1c4e6...Generate Key
Key Endpoints
POST
Dispatch single or batched emails with HTML, React, or plaintext/v1/emailsPOST
Create an audience and import subscribers via bulk JSON/v1/audiencesPOST
Pre-flight scan all URLs inside email HTML for 404s and phishing flags/v1/tools/link-checkerPOST
Trigger instant DNS lookup to verify 2048-bit RSA DKIM & SPF records/v1/domains/verifyGET
Retrieve active plan quota, daily limit, and total emails sent/v1/usageTry It in the Interactive Playground
Send test emails right inside your browser without touching code.