Test Email

Full reference for the Test Email resource in the bluefox.email API. See the API overview for authentication, the response envelope, and pagination.

Send a test email

POST /v1/projectId/{projectId}/test-email/{id}

Sends a campaign, triggered, or transactional email to a single recipient (by email or by picking a contact from a private subscriber list) without affecting real send stats or contact state.

Sending fails with a 405 if the account is out of email credit ("Insufficient credits available") - there is no public endpoint to check remaining balance ahead of time, only in the app. It also fails with a 405 if a sandbox project's daily send cap is exceeded, or if bounce/complaint rates have triggered automatic restriction (see Project.status and GET .../sandbox/deliverability).

Parameters

NameInTypeRequiredDescription
projectIdpathstringyesThe project _id, found in the app under Project Settings.
idpathstringyesThe campaign/triggered-email/transactional-email _id.

Request body

FieldTypeRequiredDescription
typestring (campaign | triggered | transactional)yes
emailstringRequired unless subscriberListId is given.
subscriberListIdstringA private subscriber list to send to (picks a subscriber from it). Required unless email is given.
dataanyTemplate variables to render into the email.

Responses

StatusDescription
200OK, queued for sending
400Invalid request body or query - every violation found (missing/invalid/unexpected fields) is reported in one response, semicolon-separated, not just the first one hit.
403Missing or invalid API key
405The operation is blocked by a business rule (e.g. the resource is still in use)

Response body

FieldTypeRequiredDescription
successboolean