Sequences

Generate Sequence 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.

post/sequences/generate-spintax

Request

  • Base URL: https://be.graph8.com/api/v1
  • URL: https://be.graph8.com/api/v1/sequences/generate-spintax
  • Auth: HTTP bearer

Headers

Authorizationstring nullable
X-Target-Org-Idstring nullable

Request body

subjectstring required

Email subject to rewrite into spintax

bodystring required

Email body to rewrite into spintax

email_type'plain' | 'html'

Body format. 'html' preserves every <a href> link and all {{variables}} in the rewrite.

tone_instructionsstring nullable

Optional tone/style guidance applied during the rewrite (e.g. 'casual, no exclamation marks').

strength'light' | 'balanced' | 'maximum'

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.

Response

Successful Response

Changes

No recorded changes to this operation across all 2 revisions of this API.