Blocking endpoint. Runs find_commonalities + generate_email inline against the provided lead + sender profile. Returns subject, body, commonality, and the prompt source used. Does not create a campaign, does not queue a job.
Documentation Index
Fetch the complete documentation index at: https://docs.bavlio.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Input for the sync personalization preview.
The lead fields to personalize against (company, role, linkedin_url, etc.)
ID of a saved sender profile. If omitted, sender_data must be provided.
Inline sender profile data. Ignored if sender_profile_id is provided.
Optional prompt override. Must be 100-5000 characters if provided.
Optional pre-fetched research context (overrides enrichment). Max 20000 chars.
20000Optional dataset id for research cache persistence. Paired with row_index.
Row index within the dataset. Required when dataset_id is set.
x >= 0Bypass the research cache and fetch fresh (e.g. user hit 'Refresh research').
Successful Response
Which prompt was used: 'default', 'sender_profile_custom', or 'custom_override'.
Which enrichment sources ran and whether they succeeded.
Aggregate research metadata. Currently exposes zero_research_reason (one of the ZERO_RESEARCH_REASON_* enum values) when the joined research_chars was below the useful threshold. Used by ops sweep scripts to derive a per-cohort distribution of why some leads return empty research.