Skip to main content
POST
/
send
/
email
Send transactional email
curl --request POST \
  --url https://api.sendx.io/api/v1/rest/send/email \
  --header 'Content-Type: application/json' \
  --header 'X-Team-ApiKey: <api-key>' \
  --data '{
  "from": {
    "email": "from@example.com",
    "name": "From Name"
  },
  "to": [
    {
      "email": "to@example.com",
      "name": "To Name",
      "customFields": {}
    }
  ],
  "replyTo": {
    "email": "reply@example.com",
    "name": "Reply Name"
  },
  "subject": "Your Subject Here",
  "htmlBody": "<h1>Your HTML Content</h1>",
  "textBody": "Your Text Content",
  "headers": {
    "X-Custom-Header": "Value"
  }
}'
[
  {
    "to": "jsmith@example.com",
    "submittedAt": 123,
    "errorCode": 123,
    "message": "<string>"
  }
]
🎯 Key Features:
  • Send to multiple recipients with CC/BCC support
  • HTML, plain text, and AMP content
  • Custom headers and tracking options
  • Webhook notifications for delivery events
📋 Rate Limits:
  • Account-based email sending limits apply

Authorizations

X-Team-ApiKey
string
header
required

Team API key for authentication. Find your API key in SendX Settings → Team API Key.

Example:

X-Team-ApiKey: your_team_api_key_here

Body

application/json
from
object
required
to
object[]
required
Minimum length: 1
subject
string
required
Example:

"Your Subject Here"

htmlBody
string
required
Example:

"<h1>Your HTML Content</h1>"

replyTo
object
textBody
string
Example:

"Your Text Content"

headers
object

Custom headers can be added to the email. These will be passed on when receving webhooks events for this email.

Example:
{ "X-Custom-Header": "Value" }

Response

✅ Email sent successfully

to
string<email>

Recipient email address

submittedAt
integer

Unix timestamp of submission

errorCode
integer

Error code (0 = success)

message
string

Status message

I