# Get the message preview for a step

### Get the message preview for a step

`GET /api/v1/campaigns/{campaignId}/steps/{nodeId}/message-preview`

Operation ID: `getMessagePreviewForStep`

What a step would send to the lead of one of the campaign's enrollments, from the step's account. Nothing is sent or saved. AI steps write the message fresh on every call, from the lead's current profile, posts and conversation, so two calls can differ and each one reads the channel as the sending account.

**Path parameters**

- `campaignId` (string · uuid, required): Campaign id
- `nodeId` (string, required): Step id, the node id in the campaign graph

**Query parameters**

- `enrollmentId` (string · uuid, required): An enrollment in this campaign; its lead is the one written to. List them with GET /campaigns/{campaignId}/leads.

**200**: The message, or status unavailable with the reason there is none.

- `preview` (object, required)
- `requestId` (string · uuid, required): Id of this request, for support and troubleshooting

**Errors**

- `400`: Bad request
- `401`: Unauthorized: missing or invalid API key
- `403`: Forbidden
- `404`: Not found
- `422`: Invalid request payload
