Skip to main content
POST
Preview agent message
Preview a single message against an agent configuration before sending.

Overview

Request body

string
required
UUID of the agent to preview against.
string
required
One of email, linkedin, or whatsapp.
string
Defaults to en.
object
Requires company. Either lead or lead_cursor must be supplied, but not both.
string
An existing preview contact cursor. Ownership is checked.
boolean
Omitted uses the agent’s saved preview research toggle.
object
Optional overrides applied only to this request.
cURL

Config overrides

The saved agent configuration is the base. Optional config overrides apply only to this request and are not saved.
  • active_system_prompt
  • active_goal_prompt
  • active_reference_template
  • reference_template_strict
  • extra_context
  • sender_name
  • sender_title
  • sender_company
  • sender_company_website
  • sender_company_summary
  • sender_bio
  • send_language
  • style_tags
  • content_generation_mode
  • content_input
  • goal_type
Preview does not publish the agent, send messages, or change the generation version.

Response

202

Result

Successful item.result contains:
  • agent_id
  • channel
  • messages
  • research_run_id
  • agent_version
item.billing contains the billing result. Email messages retain subject and text. Cancellation is allowed only before the first execution, not while waiting for retries.

Behavior

  • Agent ownership and cursor ownership are checked.
  • Ordinary generation consumes one ordinary outreach allowance unit.
  • Research generation consumes one research outreach unit, including research and writing, without an additional ordinary unit.
  • Meta WhatsApp templates reuse the existing template result and consume an ordinary unit.
  • Confirmed generation failures refund the reservation.
  • Unknown outcomes retain the original billing batch for recovery without regenerating or assuming a refund.

Errors

Ownership, allowance, and generation failures surface in the asynchronous job error.