API reference
Introduction
PSend is the email API for developers. Authenticate with a workspace API key to send mail and manage send-related resources. Account administration (API keys, billing, teams) stays in the dashboard — never expose those controls to a long-lived API key.
Base URL
https://api.runpsend.comAuthentication
Include your API key on every data-plane request. Live keys start with ps_live_; test keys with ps_test_. Create keys in the dashboard; the full secret is shown once and stored hashed. An API key cannot list, create, or revoke other API keys.
Authorization: Bearer ps_live_...
Content-Type: application/jsonSee Security · API keys for rotation and storage guidance.
What belongs in the API vs dashboard
- API key — send / batch email, domains for sending, contacts & audiences, webhooks, analytics.
- Dashboard session only — create/revoke API keys, billing, teams & seats, Cloudflare account linking.
Idempotency
Pass an optional Idempotency-Key header on Send Email to prevent duplicate delivery. Keys expire after 24 hours.
Quick start
Send your first email in one request:
curl -X POST 'https://api.runpsend.com/v1/emails' \
-H 'Authorization: Bearer ps_live_...' \
-H 'Content-Type: application/json' \
-d '{
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Hello from PSend",
"html": "<p>It works.</p>"
}'Endpoints
- POSTSend Email
- POSTBatch Emails
- GETRetrieve Email
- GETList Domains
- POSTCreate Domain
- POSTVerify Domain
- POSTSync DNS via Cloudflare
- GETList Contacts
- POSTCreate Contact
- DELETEDelete Contact
- GETList Audiences
- POSTCreate Audience
- POSTAudience Members
- POSTCreate Inbox
- POSTCreate Broadcast
- POSTSend Broadcast
- GETOverview
- POSTCreate Webhook
- GETErrors