Test a campaign
POST /campaigns/{CampaignID}/send_test.{Format}
Tests and previews a draft campaign by sending it to a list of email addresses.
Request
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| Accept | header | string | true | Determines the expected format and data type to retrieve the response data.Value: application/json |
| CampaignID | path | string | true | The ID of the draft campaign that you want to test. |
| Format | path | string | true | The supported file format for getting a response.Possible values: json and xml. |
| apikey | query | string | true | The API key of your account. |
| TestEmails | body | array | true | A list of email addresses that you want to use to send your test campaign. Use a comma (,) to separate up to a maximum of five email addresses. |
http
curl
Response
| Status | Description | Headers | Schema |
|---|---|---|---|
| 200 OK | The request is successful. | Content-Type/jsonAccept/json | N/A |
json
-
Code- the response code. This is0if successful. -
Error- the response error message. This isnullif successful. -
Context- this isnullif successful.
If you have suggestions for improving this article, let us know!