Create an outreach cadence
https://myagentmail.com/cadencesA cadence is a server-side outreach sequence — an ordered list of steps (LinkedIn invite → wait → DM → email → ...) that fire automatically per enrollment with branching on real-world events (invite accepted, lead replied).
The runtime is on MyAgentMail's side. Customer apps call
POST /v1/cadences/:id/enrollments to enroll a lead and receive
webhook events as the cadence progresses.
Request body
Content-Type: application/json
namerequired string | |
descriptionstring | |
businessHoursOnlyboolean | default: true |
exitOnReplyboolean | default: true |
exitOnUnsubscribeboolean | default: true |
dailySendCapinteger | default: 50 |
webhookUrlstring | format: uri |
stepsobject[] | Optional inline step list. You can also PATCH /v1/cadences/:id/steps later. |
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
okboolean | |
cadenceobject | |
idstring | format: uuid |
namestring | |
descriptionstring | |
enabledboolean | |
businessHoursOnlyboolean | |
exitOnReplyboolean | |
exitOnUnsubscribeboolean | |
dailySendCapinteger | |
webhookUrlstring | |
webhookSecretstring | HMAC secret for X-MyAgentMail-Signature. |
createdAtstring | format: date-time |
updatedAtstring | format: date-time |
stepsany[] |
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.