Brand
Messaging
Send Email

Send Email

Send a transactional email using a predefined template. Provide the recipient address, template ID, and template variables. Returns provider metadata and timing details.

Overview

  • Method: POST
  • Path: /brand/messaging/send-email
  • Tags: brand

Parameters

No parameters required.

Request Body

  • Content Type: application/json
  • Required: Yes

Fields

FieldTypeRequiredDetails
tostringYesformat: email
templateIdstringYes
variablesstringYes
priorityobjectYes

Responses

200

Successful response

Content Type: application/json

{
  "messageId": "string",
  "status": {},
  "provider": "string",
  "request_id": "string",
  "to": "user@example.com",
  "templateId": "string",
  "queued_at": "string",
  "sent_at": "string",
  "retry_after_seconds": 123,
  "message": "string",
  "error": "string"
}

400

Bad Request

Content Type: application/json

{}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  https://api.pillexa.com/brand/messaging/send-email \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'