# Preview a sent campaign `GET /api/v1/campaigns/{id}/preview` Returns the subject and rendered HTML of a sent campaign. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Campaigns → Read**. ## Headers - `X-Sport-Id` (integer, required) — The sport ID from [List sports](/api/sports/list.md). Use the sport the record belongs to. ## Path parameters - `id` (integer, required) — ID of the campaign. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request GET \ --url "https://api.asdincloud.com/api/v1/campaigns/${ID:?Set ID}/preview" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" ``` ## Response **200 OK** Returns the subject and HTML in `data`. Example with fictional data and selected fields. ```json { "status": "success", "data": { "subject": "News from the club", "html": "
Registration for the winter program opens this week.
" } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found. - `409` — The campaign's current state does not allow this operation.