1. Campaign
Plusvibe.ai API Documentation
  • Getting Started
    • Getting Started
    • Webhooks - Overview
    • Webhooks - Payload - Email Replies
    • Webhooks - Payload - Lead Marked As Label
    • Webhooks - Payload - Campaign Emails Sent
    • Webhooks - Payload - Bounced Email
    • Webhooks - Payload - Unibox Email Sent
    • Webhooks - Payload - System Alert
    • URL Deep Linking
  • User API Endpoints
    • Workspace
      • Get workspaces
      • Add a new workspace
      • Copy workspace settings
      • Invite a user to a workspace
    • Campaign
      • Create a new campaign
        POST
      • Create a new subsequence
        POST
      • List all campaigns
        GET
      • Get campaign name
        GET
      • Get campaign status
        GET
      • Get campaign email accounts
        GET
      • Get campaign emails
        GET
      • Send a campaign test email
        POST
      • Get campaign variation stats
        GET
      • Set campaign name
        POST
      • Preview a campaign email
        POST
      • Activate campaign
        POST
      • Pause campaign
        POST
      • Update Campaign
        PATCH
      • Delete or archive a campaign
        DELETE
      • Duplicate campaign
        POST
      • Bulk Assign/Remove Tags from Campaigns
        PUT
    • Lead
      • Add leads to a campaign
      • Add leads to a subsequence campaign
      • Get or search for lead
      • Delete leads from a campaign
      • Lead Variable/Label Update or Add
      • Fetch workspace leads
      • Update the status of a lead
      • Get lead counts by status
      • Lead Associated Emails Add or Remove
    • Email Account
      • List all email accounts in the workspace
      • Get email account status
      • Check account vitals
      • Enable Email account warmup
      • Pause Email account warmup
      • Get Warmup Stats (Per Mailbox)
      • Bulk Add SMTP Accounts
      • Bulk Update Email Accounts
      • Bulk Update Email Account Warmup Status
      • Bulk Assign/Remove Tags from Email Accounts
      • Bulk reconnect email accounts
      • Get workspace email stats for a date range
      • Move Email Accounts to Another Workspace
      • Get email account stats for a date range (per mailbox)
      • Get Warmup Stats (Workspace-Level)
      • Bulk Delete Email Accounts
      • Send a test email from an email account
    • Analytics
      • Get campaign summary
      • Get campaign stats
      • Get workspaces summary
      • Get all campaigns statistics
      • Get workspaces performance
    • Unibox
      • Get email threads (conversations)
      • Get emails
      • Get emails in Others folder
      • Get count of unread emails
      • Reply to an email
      • Cancel a scheduled reply
      • Forward an existing email
      • Mark Email Read
      • Compose New Email
      • Delete an Entire Email Thread
      • Send to any address
      • Save Email as Draft
      • Delete a Single Email Message
      • Delete Draft
    • Blocklist
      • Get entries in the blocklist
      • Adds entries to the blocklist
      • Delete entries in the blocklist
    • Webhook
      • Add a new webhook
      • List webhooks
      • Delete webhook(s)
    • Tags
      • List Tags
      • Create a New Tag
      • Update an Existing Tag
      • Delete Multiple Tags
    • Client Access
      • Create client
      • Edit client
      • Update client status
      • Delete client
      • List clients
    • Email Placement Test
      • Child (Test Run) Test
        • List child (Test Run) tests
        • Get child test details
      • Results & Analytics
        • Get test summary
        • Get detailed test statistics
        • Get test result for a sender account
      • Parent Test (Recurring & One-off)
        • Create a new parent test
        • Update a parent test
        • List all parent tests
        • Get parent test details
        • Delete parent test(s)
        • Duplicate a parent test
      • Get recipient providers
    • Workspace Additional Fields
      • List Additional Fields
      • Create Additional Field
      • Update Additional Field Default Value
      • Delete Additional Field
    • DFY
      • Search Domain Availability
      • List DFY Subscriptions
      • Generate Sender Identities (MS Enterprise)
      • Place a DFY Order
      • Cancel a DFY Subscription
    • Email Account Automation
      • List automation rules
      • Create automation rule
      • Update automation rule
      • Delete automation rule
      • Get automation rule
      • Enable / disable automation rule
      • Duplicate automation rule
      • Get account recovery details
    • Workspace Settings
      • Get Workspace Settings
      • Update Workspace Settings
      • List Lead Labels
      • Add Custom Lead Label
      • Delete Custom Lead Labels
    • Email Verification
      • Queue email verification
      • Get email verification task
      • Stop email verification task
      • Verify a list of emails
      • Get email verification credits
      • Get email list verification results
      • List email verification tasks
    • Notifications
      • List Notifications
      • Get a Notification
      • Get Unread Notification Count
      • Mark Notifications as Read or Unread
      • Delete Notifications
    • Schemas
      • ScheduleV2
      • Campaign
      • EmailAccountId
      • WarmupStatus
      • BulkUpdateWarmupRequest
      • TagAction
      • BulkTagAssignmentRequest
      • ObjectId
      • HexColor
      • CreateTagRequest
      • UpdateTagRequest
      • DeleteTagsRequest
      • DeleteCampaignRequest
      • BulkReconnectRequest
      • SuccessResponse
      • ErrorResponse
      • ClientWorkspacePermission
      • CreateClientRequest
      • CreateClientResponse
      • UpdateClientRequest
      • ClientListItem
      • PatchClientStatusRequest
      • GenericSuccessResponse
      • ParentTest
      • ParentTestDetail
      • ChildTest
      • ChildTestDetail
      • VariationStepStats
      • VariationStats
      • CopyWorkspaceRequest
      • ResourceType
      • CopyWorkspaceResponse
      • EmailStatsHeader
      • EmailStatsResponse
      • EmailStatsChartPoint
      • ValidationErrorResponse
      • CheckSuccess
      • AuthFailure
  • For Email Infra Provider
    • Email Infra Provider Guide
    • List workspaces
    • List all email accounts in the workspace
    • Check if an email exists in another workspace
    • Initiate Google OAuth login flow
    • Initiate Microsoft OAuth login flow
    • Bulk Add SMTP Accounts (via Username and Password)
    • Schemas
      • AuthFailure
      • CheckSuccess
      • ErrorResponse
  1. Campaign

Preview a campaign email

POST
https://api.plusvibe.ai/api/v1/campaign/preview-email
Returns a campaign email as one lead would receive it: the subject, preheader and body with every variable, spintax and condition filled in for that lead and sender. This is the same as Preview Email in the campaign's sequence editor. Nothing is sent.
By default it uses step 1, the first variation of that step, the lead most recently added to the campaign, and one of the campaign's email accounts as the sender. Use step, variation, lead_email (or lead_id) and from to pick others.
To try copy you have not saved yet, send subject, body and/or preheader: each one you send replaces the saved one.
A follow-up step with an empty subject goes out as a reply in the real campaign; here it uses the step 1 subject.
When the campaign has no leads yet, sample lead details are used (John Doe, johndoe@example.com). When it has no email account, a sample sender is used.
Spintax picks a random option on every call, so calling again can return different wording.

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Body Params application/json

Examples

Responses

🟢200OK
application/json
Successful
Bodyapplication/json

🟠400Bad Request
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.plusvibe.ai/api/v1/campaign/preview-email' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "workspace_id": "65f3c92d3dbe5dbb35374a9a",
    "campaign_id": "6634b8e9f8bd4a7c2e1d3f09",
    "step": 1,
    "lead_email": "lead@example.com"
}'
Response Response Example
200 - Example 1
{
    "status": "success",
    "from": "jane@yourdomain.com",
    "lead_email": "lead@example.com",
    "step": 1,
    "variation": "A",
    "subject": "Quick question, John",
    "preheader": "A quick idea for Acme Inc",
    "body": "<p>Hi John,</p><p>Saw that Acme Inc is hiring.</p>"
}
Modified at 2026-11-27 10:10:39
Previous
Set campaign name
Next
Activate campaign
Built with