---
title: "Get the message of a send activity"
method: GET
path: "/advanced/campaigns/{campaignId}/activities/{activityId}/message"
tags: ["Campaign tracking"]
---

# Get the message of a send activity

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

## Request

- Base URL: `https://api.emelia.io`
- URL: `https://api.emelia.io/advanced/campaigns/{campaignId}/activities/{activityId}/message`
- Auth: API key in header `Authorization`

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).

## Path parameters

- `campaignId` string, required: MongoDB ObjectId: 24 hexadecimal characters.
- `activityId` string, required: MongoDB ObjectId: 24 hexadecimal characters.

## Response `200`

Success.

- object
  - `channel` 'EMAIL' | 'LINKEDIN' | 'WHATSAPP'
  - `subject` string, nullable
  - `message` string
  - `attachments` object[]
    - `name` string
    - `mediaType` string

## Other responses

- `401`: Missing, malformed, unknown or disabled API key. The key must be exactly 48 characters, otherwise it is treated as a session token and rejected the same way.
- `404`: Unknown activity, campaign, step or contact.
- `422`: The activity is not a send event.
- `500`: Unexpected error. IMPORTANT: this is also what you receive today when the per minute quota of your account is exceeded (the quota error is not mapped to 429 for API keys). No `Retry-After` header is sent. Wait until the next minute window before retrying.

---

[API](https://skmtc.dev/emelia/apis/emelia-api.md) · [All operations](https://skmtc.dev/emelia/apis/emelia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/emelia/apis/emelia-api/revisions/8c0cb435f2c4?raw)
