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

Send Via API

The Kasplo HTTP Email API allows you to send transactional, marketing, and operational emails over a high-performance RESTful interface.

With a single POST request, you can dispatch single or bulk recipient messages, schedule deliveries, attach documents, embed interactive AMP markup, and associate application-specific tracking metadata.


Endpoint Details

  • Endpoint: https://api.kasplo.com/v1/send-email

  • HTTP Method: POST

  • Content-Type: application/json


Authentication

Every API request must include your Kasplo API key. Kasplo accepts your key using either of the following header formats:

api-key: YOUR_API_KEY
Content-Type: application/json

Alternative: Authorization: Bearer Header

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Security Warning: Never expose your API keys in client-side code, public GitHub repositories, or browser environments. All API calls should originate from your backend servers.


Quick Start (cURL)

Here is a minimal, complete request to send a basic HTML email:

Response (200 OK)

  • statusCode: 1000: Indicates that Kasplo has validated and accepted the message into the delivery queue.

  • clickTrackingId: A unique UUID generated for this message submission. Store this token in your database to correlate with webhook delivery events and Live Feed searches.


Section Guide

  • API Send: Full parameter reference, schema definitions, and required fields.

  • API Options: Advanced features: grouped recipients (toList), CC/BCC, scheduling (send_at), Base64/URL attachments, custom IDs, and link tracking overrides.

  • API Responses & Errors: Platform status codes (1000 to 9999), HTTP status codes, validation errors, and exponential backoff retry guidelines.

  • Code Samples: Ready-to-use SDK code in Node.js, Python, PHP, Java, Go, Ruby, C#, and cURL.

Last updated