Get the message of a send activity

GET
/advanced/campaigns/{campaignId}/activities/{activityId}/message

Rebuilds the content sent for a SENT, MESSAGE_SENT, INMAIL_SENT, INVITED or WHATSAPP_MESSAGE_SENT activity by replaying the step template against the contact. The sent content itself is not stored: the result can differ if the step or the contact changed since. Errors use a different format here: {"error": "NOT_FOUND"} (404) or {"error": "NO_MESSAGE"} (422).

Authorization

apiKey
Authorization<token>

Your 48 character API key, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api.

In: header

Path Parameters

campaignId*string

Identifier of a multichannel campaign (24 hexadecimal characters), as returned by POST /advanced/campaigns or GET /advanced/campaigns.

Match^[0-9a-fA-F]{24}$
activityId*string

Activity id.

Match^[0-9a-fA-F]{24}$

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/advanced/campaigns/6650f1a2b839d80011c5a0f1/activities/6650f1a2b839d80011c5e001/message" \  -H "Authorization: YOUR_API_KEY"
{  "channel": "EMAIL",  "subject": "Quick question, John",  "message": "<p>Hi John,</p>",  "attachments": []}