Replace the step list atomically
https://myagentmail.com/cadences/{id}/stepsSends the full ordered list of steps in one call — wipes the previous steps and reinserts. Steps are tiny; diffing is more trouble than it's worth.
Step kinds:
• linkedin_connect — POST a connection request (with note)
• linkedin_message — DM a 1st-degree connection
• email — (v1.1) send via configured inbox
• wait — no-op delay before the next step
Conditions (optional, NULL = always run):
• after_accept — only run if the previous linkedin_connect step's
invite has been accepted (signal.connection_accepted with
outbound attribution)
• no_reply_to_prev — only run if the lead hasn't replied since
the previous step
• never_replied — only run if the lead has never replied during
this enrollment
Path parameters
idrequired string |
Request body
Content-Type: application/json
stepsrequired object[] | |
kindrequired "linkedin_connect" | "linkedin_message" | "email" | "wait" | enum: "linkedin_connect" | "linkedin_message" | "email" | "wait" |
delayDaysrequired number | Days after the previous step's completion. 0 = fire on enrollment for step 0; 0.25 = 6 hours. |
condition"after_accept" | "no_reply_to_prev" | "never_replied" | enum: "after_accept" | "no_reply_to_prev" | "never_replied" |
draftStrategy"ai" | "static" | enum: "ai" | "static" default: "ai" |
staticSubjectstring | |
staticBodystring | |
promptHintstring | |
notesstring |
Responses
Authentication
Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.