Write the emails
Replaces the sequence. The first email needs a subject; follow-ups default to the same thread (Re: …) and wait delay_days after the previous email. Variables: {{first_name}}, {{last_name}}, {{company}}, {{title}}, plus any column you sent with the leads ({{plan}}, {{city}} …). Spintax {a|b} varies phrasing per recipient. variants adds A/B copy for a step; each variant is rotated evenly with the main text.
Authorization
BearerAuth AuthorizationBearer <token>
Your API key from app.argorant.com/profile, sent as Authorization: Bearer <key>.
In: header
Path Parameters
campaign_id*string
Campaign id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
Shell
curl -X POST "https://app.argorant.com/api/v1/campaigns/7f3a2c1e-9b4d-4e8a-a1c2-5d6e7f8a9b0c/emails" \ -H "Content-Type: application/json" \ -d '{ "emails": [ { "subject": "Quick question, {{first_name}}", "body": "Hi {{first_name}},\\n\\nsaw {{company}} is hiring in finance. Worth a 10 minute call?\\n\\nBest", "variants": [ { "label": "Direct", "body": "Hi {{first_name}}, do you have 10 minutes this week to talk finance hiring at {{company}}?" } ] }, { "body": "Bumping this up in case it got buried.", "delay_days": 3, "same_thread": true } ] }'JSON
{ "emails": [ { "step": 1, "subject": "Quick question, {{first_name}}", "delay_days": 0, "variants": 2 }, { "step": 2, "subject": "Re: Quick question, {{first_name}}", "delay_days": 3, "variants": 1 } ]}