Generate Sequence Spintax
POST /sequences/generate-spintax
One-time AI generation: rewrite a manual email into spintax.
Returns the subject + body rewritten with (possibly nested)
{{option a|option b}} blocks; the sequencer’s per-contact resolver
then sends a different-looking variant to each lead. Content-level and
sequence-agnostic: paste the result into any sequence or campaign email
step as a MANUAL_TEMPLATE.
Requires an active subscription and consumes credits (token-metered;
402 on either failure). Synchronous, up to ~2 minutes; per-worker
concurrency is capped (429 + Retry-After when saturated). Output is
validated server-side (balanced braces, {{variables}} and links
preserved) - invalid model output surfaces as 422, never as silently
broken content.
Authorizations
Parameters
Header Parameters
Request Body required
One-time AI generation: rewrite a manual email into spintax.
Field types intentionally mirror the internal
sequencer.interfaces.voice.email_generation.GenerateSpintaxPayload
(same Literals) so outer/inner validation cannot drift. The legacy
target_combinations knob is deliberately NOT exposed on the public
surface; strength supersedes it.
object
Email body to rewrite into spintax
Body format. ‘html’ preserves every link and all {{variables}} in the rewrite.
Variation intensity: how heavily to vary the copy and how deeply to nest spintax blocks. Each level carries an ENFORCED ceiling on total distinct renderings (subject x body), applied after generation: ‘light’ up to 200 (flat blocks only), ‘balanced’ up to 5,000, ‘maximum’ up to 100,000. Output over the ceiling is trimmed down, never rejected.
Email subject to rewrite into spintax
Responses
200
Successful Response
object
Spintax-encoded email plus its distinct-rendering counts.
object
Body rewritten with (possibly nested) spintax blocks
Distinct renderings the body can produce
Subject rewritten with {{option a|option b}} spintax blocks
Distinct renderings the subject can produce
Distinct full-email renderings (subject x body)
422
Validation Error