Skip to main content

Preview sequence draft content

Render a sequence step draft for one lead. AI-draft-enabled steps can invoke the configured content-generation path; this preview does not enroll the lead or send the message.

POST/api/sequences/{sequence_id}/audience/preview-draft
HTTP referenceScope sequences:writeUpdated September 27, 2026

This page documents the canonical HTTP contract for this endpoint.

Path parameters

  • sequence_idrequired

    string

    Sequence identifier.

Body parameters

  • leadIdrequired

    string

    Lead to render the draft for.

  • stepIdrequired

    string

    Sequence step identifier.

  • variables · optional

    object

    Explicit values for template variables.

  • variableMap · optional

    object<string,string>

    Map template variables to source fields.

  • researchContext · optional

    object

    Optional research context.

  • researchRowId · optional

    string

    Optional source research row identifier.

Errors

StatusMeaning
401Authentication is missing or invalid.
403Missing sequences:write.
404Sequence or step not found.
409The step is not configured for AI drafting.

Docs