curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/steps/{stepId}/send-test \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"toEmail": "jsmith@example.com"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/steps/{stepId}/send-test"
payload = { "toEmail": "jsmith@example.com" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({toEmail: 'jsmith@example.com'})
};
fetch('https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/steps/{stepId}/send-test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sent": true,
"toEmail": "maya@northwind.io",
"fromEmail": "alex@northwind.io",
"subject": "Quick question about BrightPay's finance hiring"
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Send the step as a test email
Sends this email step as a test to toEmail, as the app’s Send test does: a real email, sent now from one of your email accounts and written for one contact of the campaign, its tokens filled and an AI step written live. It can go to any address except one that opted out of your team’s email, which is refused with RECIPIENT_UNSUBSCRIBED. It is not a send of the campaign: it creates no scheduled send and no lead, writes no open or click tracking and charges no credits, though like any email the account sends it uses one of the account’s daily sends. The account is fromEmail when you send one; otherwise the first active account among those the step sends from or, when the step names none, your first active account. The contact is contactId when you send one, else the first contact of the campaign’s first source list. The step is sent as saved, and every call sends another email. Only the token owner’s own campaigns resolve: a campaign delegated to you, one shared by your team’s visibility settings, and a deleted one all answer 404. Rate limit: this endpoint has its own cap of 10 requests/minute and 100/day per token owner, the same allowance the app’s Send test spends, applied inside the shared campaigns bucket of 30 requests/minute and 1,000/day per token owner (shared by every campaign, scheduled-send, campaign-template and knowledge-hub endpoint).
Errors:
404CAMPAIGN_NOT_FOUND— No campaign with this id exists, it belongs to another account (including a campaign delegated to you or shared by your team’s visibility settings), or it has been deleted.404SEQUENCE_STEP_NOT_FOUND— No step with this id belongs to this campaign.422EMAIL_ACCOUNT_NOT_AVAILABLE—fromEmailis not an active, connected email account of yours or one shared with you: it is unknown, someone else’s, paused or disconnected.paramisfromEmail.404CONTACT_NOT_FOUND—contactIdis not a contact on any of the campaign’s source lists.paramiscontactId.422STEP_NOT_AN_EMAIL— The step is not an email step (a LinkedIn step or a condition, for example), so it has no email to send.422NO_ACTIVE_EMAIL_ACCOUNTS— No account can send the test: you have no active, connected email account, or nofromEmailwas sent and none of the accounts the step sends from is active (sendingfromEmailwith one of your active accounts then sends from it instead).422CAMPAIGN_HAS_NO_LIST— The campaign has no source list, so there is no contact to fill the step for.422CAMPAIGN_LIST_EMPTY— There is no contact to fill the step for: the campaign’s first source list holds none, or no longer exists. A contact from another of its lists can be sent ascontactId.422STEP_CONTENT_EMPTY— The step came out with no body or no subject: a manual step without them written, or a reply whose thread’s first email has no subject to give it.422STEP_GENERATION_FAILED— The email could not be written for this contact: the AI generation failed (for an AI step, or for the subject a reply takes from an AI first email), or the template could not be rendered. Nothing was sent; a retry can succeed.422RECIPIENT_UNSUBSCRIBED—toEmailunsubscribed from the sending account’s emails, so nothing was sent.paramistoEmail.422EMAIL_ACCOUNT_DISCONNECTED— The sending account is disconnected. Nothing was sent.422EMAIL_ACCOUNT_RATE_LIMITED— The sending account’s provider refused the send because the account reached its own sending limit. Nothing was sent; another account, or a later try, can send it.422EMAIL_ACCOUNT_REQUIRES_REAUTH— The sending account’s sign-in expired or was revoked; it must be reconnected in the app. Nothing was sent.422VALIDATION_FAILED— campaignId, stepId or contactId is not a 24-character hex id, toEmail is missing, toEmail or fromEmail is not an email address, or the body carries an unknown field.429RATE_LIMITED— Either this endpoint’s own cap (10 requests/minute, 100/day for this token owner, shared with the app’s Send test) or the shared campaigns bucket (30/minute, 1,000/day, shared by every /business/campaigns, /business/scheduled-sends, /business/campaign-templates and /business/knowledge-hubs call) was exceeded. The RateLimit-* and Retry-After headers describe the bucket that refused.500UNEXPECTED_ERROR— The account’s provider failed the send, one of the step’s attachments could not be loaded, or another failure; the detail stays in our logs and is never returned.
Requires one of the following token scopes: campaigns.
curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/steps/{stepId}/send-test \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"toEmail": "jsmith@example.com"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/steps/{stepId}/send-test"
payload = { "toEmail": "jsmith@example.com" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({toEmail: 'jsmith@example.com'})
};
fetch('https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/steps/{stepId}/send-test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sent": true,
"toEmail": "maya@northwind.io",
"fromEmail": "alex@northwind.io",
"subject": "Quick question about BrightPay's finance hiring"
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Authorizations
Path Parameters
Body
The email account to send from: the emailAddress of an active, connected row of GET /business/accounts?channel=email, an account of yours or one shared with you. Omitted: the first active account among those the step sends from or, when the step names none, your first active account.