# Send a campaign test email `POST /api/v1/campaigns/{id}/send-test` Sends a test copy to the supplied email addresses. The campaign keeps its current state. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Campaigns → Write**. ## 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. ## Body parameters - `emails` (array of strings or string, required) — One or more email addresses. A string can use commas or newlines. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/campaigns/${ID:?Set ID}/send-test" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --header "Content-Type: application/json" \ --data '{"emails":["reviewer@example.com"]}' ``` ## Response **200 OK** Returns the number of successful and failed sends, plus the failed addresses. Example with fictional data and selected fields. ```json { "status": "success", "campaign_id": 24, "sent": 1, "failed": 0, "failed_emails": [] } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found. - `422` — The addresses are invalid or the campaign content is incomplete. - `500` — The campaign operation could not be completed. - `502` — All test sends failed.