APICampaigns

Send a campaign step as a test

Renders a saved email step for the given contact exactly as a real send would (template variables, AI content, tracking and unsubscribe settings) and delivers it to `recipientEmail` instead of the contact. `recipientEmail` must belong to an active user in your organization. Works on draft campaigns. Nothing is recorded against the contact. Uses one of the campaign's sending inboxes, so it counts toward that inbox's daily limit.

POST
/v1/campaigns/{id}/steps/{stepId}/test-send

Renders a saved email step for the given contact exactly as a real send would (template variables, AI content, tracking and unsubscribe settings) and delivers it to recipientEmail instead of the contact. recipientEmail must belong to an active user in your organization. Works on draft campaigns. Nothing is recorded against the contact. Uses one of the campaign's sending inboxes, so it counts toward that inbox's daily limit.

X-Api-Key<token>

In: header

Path Parameters

id*string
stepId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/steps/497f6eca-6276-4993-bfeb-53cbbbba6f08/test-send" \  -H "Content-Type: application/json" \  -d '{    "contactId": "b5ec5d98-4bee-4da1-ad24-dde86346cb1d"  }'
{
  "data": {
    "status": "string",
    "recipientEmail": "string",
    "mailboxId": "string",
    "replyContextSimulated": true,
    "warning": "string"
  }
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
Empty