Generate email sequence steps with AI (async)

Changed on

Starts a background job that writes 1–20 emails and creates them as steps. Returns a token; poll GET /email-sequences/ai-generate/{token}/status until status is completed or failed; created_ids lists the new step ids. Discover options first with GET /email-sequences/ai-generate/style-packs, .../sequence-templates, .../quizzes, .../paywalls. For cta_type quiz/paywall pass cta_resource_id; for custom pass cta_link.

post/email-sequences/ai-generate

Request

  • Base URL
    https://api.web2wave.com/api
  • URL
    https://api.web2wave.com/api/email-sequences/ai-generate
  • Auth
    API key in header api_key

Headers

api_keystring required

Request body

style_packstring

Id from style-packs; from_quiz / from_paywall copy the visual style of style_source_id

style_source_type'quiz' | 'paywall'
style_source_idinteger

Response

Generation started

successboolean
tokenstring uuid
status_urlstring

Changes