Campaigns

Show

Get method to preview a message sent to a specific contact

Parameters

Name Description
account_id required Your account unique identifier to access API.
campaign_id required Unique identifier of the campaign
contact_id required Unique identifier of the contact

Request

Route
GET 
/v2/account/:account_id/campaigns/:campaign_id/message/contact/:contact_id
Headers
Accept: application/json 
Authorization: Token token={account.secret}
Content-Type: application/json

Response

Status
200
Body
{
  "message": {
    "campaign_id": "58ef92a5edb7aa101c00005b",
    "contact_id": "58ef468dedb7aa5131000034",
    "channel": "EMAIL",
    "delivery_id": "58ef92b4edb7aa3947000002",
    "template_data": {
      "sender": "test <test@psh.pm>",
      "content": "<html><body></body></html>",
      "template_email_id": "58bee1f5edb7aa6e5700000b",
      "content_template_email_id": null,
      "reply_to": "",
      "subject": "test"
    }
  }
}