Sending

Send email with POST /emails—status lifecycle, tracking, scheduling, attachments, and deep-dive guides for each feature.

Everything you need to call POST /emails (see API reference for https://api.piisend.com/api/v1/emails), poll status, and handle scheduling, tracking, and attachments.

POST /emails

Requires API key scope emails:send. Send either raw content (subject + html/text) or a template_id with template_vars—not both.

Optional header Idempotency-Key deduplicates retries for 24 hours. See the Idempotency keys guide.

Disposable recipients

By default, POST /emails rejects any to, cc, or bcc address on Piisend’s disposable domain blocklist (same list used for Piisend account signup). The API returns HTTP 400 with a message like Disposable email addresses are not allowed: user@example.com.

  • Call GET /check/email/{email} at signup to block disposable, spam-domain and no-MX addresses (and catch typos) before you build a template payload.
  • For integration tests, send to real inboxes you control (Gmail, Outlook, etc.), not throwaway domains.
  • Platform operators can disable send-time checks with DISPOSABLE_EMAIL_BLOCK_SEND=false or allow specific suffixes via DISPOSABLE_EMAIL_ALLOWED_DOMAINS (server env).

Message lifecycle

statusMeaning
queuedAccepted; waiting for the worker
scheduledWill send at scheduled_at
sentHanded to the delivery stack
deliveringIn flight at the provider
deliveredConfirmed delivery event
failedSend or provider error
bouncedHard/soft bounce recorded
cancelledScheduled send cancelled before dispatch

Cancel a scheduled message with POST /emails/{id}/cancel while status is scheduled. Resend with POST /emails/{id}/resend.

Topic guides

Each feature has a dedicated guide with step-by-step instructions:

Send lifecyclePOST /emailsqueuedsentdeliveringdeliveredfailed / bounced / cancelled are terminal branches from queued or delivering

Documentation

Integrate with the REST API

Quickstart, API reference, and IDE prompts—everything you need to send from your app.