X Lead Connect
  1. eDM
X Lead Connect
  • Overview
  • API Key Integration
  • SMS
    • Message Delivery Flow
    • Send Message
      POST
    • Get Usage Report
      GET
  • MMS
    • Message Delivery Flow
    • Send Message
      POST
    • Get Usage Report
      GET
  • eDM
    • Message Delivery Flow
    • Send Message
      POST
  • Account Management
    • Get Points Balance
      GET
    • Get Quota Balance
      GET
  1. eDM

Send Message

POST
https://api.connect.xleadfunnel.com/v1/edm/send
This is to send eDM message, each request is to send to one recipient.
Calling API requires to have ID of that eDM campaign, which would be produced during the setup of eDM in the portal. API accepts merge of parameters.

Request

Body Params application/json

Example
// basic send
{
    "campaign_id": "6635336483187fa41502323f",
    "email": "johnny@example.com"
}

// merge and send
{
    "campaign_id": "6635336483187fa41502323f",
    "email": "johnny@example.com",
    "params":[
        {"name": "Johnny Li"}, 
        {"member_level":"็™ฝ้‡‘ๆœƒๅ“ก"},
        {"score":"78"}
    ]
}

// send also to unsubscribed users
{
    "campaign_id": "6635336483187fa41502323f",
    "email": "johnny@example.com",
    "send_also_unsubscribed_users" : 1
}

Responses

๐ŸŸข200Success
application/json
Body

Example
// valid send request
{
    "rc": 100,
    "rm": "OK",
    "ref_id": "145737475"
}

// invalid send request
{
    "rc": -100,
    "rm": "Missing sender, your region requires Sender ID to send out messages."
}
Modified atย 2025-12-05 06:39:29
Previous
Message Delivery Flow
Next
Get Points Balance
Built with