Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Overview

Kasplo Email API enables applications, microservices, and platforms to send transactional, operational, and application-generated emails through HTTP REST API or SMTP.

Use this guide to choose the right integration method, understand core platform behaviors, and review prerequisites before sending live traffic.


Integration Methods

Kasplo offers two high-throughput sending channels depending on your application architecture:

1. Send via HTTP API

Ideal for modern web applications, microservices, and serverless runtimes.

  • Single endpoint: POST https://api.kasplo.com/v1/send-email

  • Synchronous JSON acceptance responses with unique clickTrackingId tracking tokens.

  • Native JSON payloads supporting single recipients (to), grouped recipients (toList), CC, BCC, URL-hosted attachments, Base64 attachments, and AMP for Email.

2. Send via SMTP

Ideal for legacy backend systems, standard mail libraries (PHPMailer, Nodemailer, JavaMail), CRMs, CMS platforms (WordPress), and existing mail relays.

  • Connection Host: smtp.kasplo.com

  • Secure Ports: 587 (STARTTLS) or 2525 (TLS)

  • Custom message headers to control transactional mode, scheduled delivery (X-Sent-At), and custom tracking IDs (X-Kasplo-Click-Tracking-ID).


Documentation Roadmap

  • Send via API: Authenticate, format requests, handle errors, and view language-specific code samples.

  • Send via SMTP: Configure SMTP clients, connection reuse, authentication, and custom headers.

  • Suppression APIs: Programmatic suppression management (UNSUB, MANUALLY-DEACTIVATED, DOMAIN) with batch operations.

  • Unsubscribe Management: Configure RFC 8058 one-click unsubscribe headers, custom opt-out URLs, and HTML footers.

  • AMP Email: Send interactive AMP emails via API or SMTP, and complete mailbox provider whitelisting.

  • Delivery & Usage: Understand the message lifecycle, billing boundaries (Accepted vs Rejected), bounces, and platform limits.

  • Webhooks: Subscribe to real-time delivery and engagement events using OAuth2, Bearer, or API Key authentication.

  • Monitoring: Monitor deliverability trends in Analytics and inspect individual recipient timelines in Live Feed.

  • Limits & Retention: Review size limits (10 MB), recipient caps, scheduling windows, and 30-day retention policies.


Acceptance vs Delivery Lifecycle

When sending through either the HTTP API or SMTP, it is important to distinguish acceptance from final delivery:

  1. Submission Acceptance:

    • An HTTP 200 OK or SMTP 250 OK response means Kasplo has successfully validated and accepted the message for processing.

    • Billable usage is recorded upon acceptance.

  2. Internal Processing & Rejection:

    • If the recipient is suppressed (UNSUB, MANUALLY-DEACTIVATED, DOMAIN, Bounced, Spam Complaint) or violates a sending policy, Kasplo stops the message and marks it as Rejected. No external delivery attempt is made.

  3. External Delivery:

    • Messages that pass validation are dispatched to the recipient's mail exchange (MX) server.

    • Delivery outcomes (Delivered, Deferred, Delayed, or Bounced) and recipient engagement (Opened, Clicked, Unsubscribed, Spam Complaint) are streamed in real time to your configured Webhooks and logged in Live Feed.

Last updated