This page documents the canonical HTTP contract for this endpoint.
Path parameters
sequence_idrequiredstring
Sequence identifier.
| Name | Type | Description |
|---|---|---|
| sequence_idrequired | string | Sequence identifier. |
Body parameters
leadIdrequiredstring
Lead to render the draft for.
stepIdrequiredstring
Sequence step identifier.
variables· optionalobject
Explicit values for template variables.
variableMap· optionalobject<string,string>
Map template variables to source fields.
researchContext· optionalobject
Optional research context.
researchRowId· optionalstring
Optional source research row identifier.
| Name | Type | Description |
|---|---|---|
| leadIdrequired | string | Lead to render the draft for. |
| stepIdrequired | string | Sequence step identifier. |
| variables | object | Explicit values for template variables. |
| variableMap | object<string,string> | Map template variables to source fields. |
| researchContext | object | Optional research context. |
| researchRowId | string | Optional source research row identifier. |
Errors
| Status | Meaning |
|---|---|
| 401 | Authentication is missing or invalid. |
| 403 | Missing sequences:write. |
| 404 | Sequence or step not found. |
| 409 | The step is not configured for AI drafting. |
