4. Sending a subscriber to a mailing Campaign via API

The method is intended for trigger-based sending of an existing Subscriber into an existing Mailing Campaign. Data is transmitted in application/json format.

HTTP Request
  • URL: https://sender-solutions.com/api/subscribers/send-subscriber-into-campaign/
  • HTTP Method: POST
  • Content-Type: application/json
Request Body (JSON)
{
    "SendIntoCampaign": {
        "SubscriberId": 21,
        "CampaignId": 5
    }
}
Example request using cURL

curl --location 'https://sender-solutions.com/api/subscribers/send-subscriber-into-campaign/' \
--header 'Content-Type: application/json' \
--header 'Authorization: {{api-token}}' \
--data '{
    "SendIntoCampaign": {
        "SubscriberId": 21,
        "CampaignId": 5
    }
}'
Field Description
Field Type Required Description
SendIntoCampaign.SubscriberId boolean Subscriber identifier
SendIntoCampaign.CampaignId boolean Mailing campaign identifier
Example of a Successful Response
{
    "success": true,
    "SendIntoCampaign": {
        "SubscriberId": 21,
        "CampaignId": 5,
        "MessageId": "kidabt3j31mo6vp611gx2yfpo4zr1a5c@sender-solutions.com"
    }
}