Skip to main content
PATCH
/
api
/
v1
/
campaigns
/
{campaign_id}
/
sequences
/
{sequence_id}
curl -X PATCH "https://api.foxreach.io/api/v1/campaigns/cmp_abc123/sequences/seq_002" \
  -H "X-API-Key: otr_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "delayDays": 5,
    "subject": "Following up, {{firstName}}"
  }'
{
  "data": {
    "id": "seq_002",
    "campaignId": "cmp_abc123",
    "stepNumber": 2,
    "name": "Follow-up",
    "subject": "Following up, {{firstName}}",
    "body": "Hi {{firstName}},\n\nJust wanted to follow up...",
    "delayDays": 5,
    "delayHours": 0,
    "sendOnlyIfNoReply": true,
    "createdAt": "2025-01-10T08:05:00",
    "updatedAt": "2025-01-12T14:30:00"
  }
}

Path Parameters

campaign_id
string
required
The unique identifier of the campaign.
sequence_id
string
required
The unique identifier of the sequence step.

Body Parameters

All fields are optional. Only include fields you want to update.
subject
string
Email subject line. Supports template variables and spin syntax.
body
string
Email body content. Supports template variables and spin syntax.
name
string
Step name.
delayDays
integer
Days to wait after the previous step.
delayHours
integer
Additional hours to wait.
sendOnlyIfNoReply
boolean
Skip this step if lead has already replied.

Response

Returns the updated sequence step object.
curl -X PATCH "https://api.foxreach.io/api/v1/campaigns/cmp_abc123/sequences/seq_002" \
  -H "X-API-Key: otr_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "delayDays": 5,
    "subject": "Following up, {{firstName}}"
  }'
{
  "data": {
    "id": "seq_002",
    "campaignId": "cmp_abc123",
    "stepNumber": 2,
    "name": "Follow-up",
    "subject": "Following up, {{firstName}}",
    "body": "Hi {{firstName}},\n\nJust wanted to follow up...",
    "delayDays": 5,
    "delayHours": 0,
    "sendOnlyIfNoReply": true,
    "createdAt": "2025-01-10T08:05:00",
    "updatedAt": "2025-01-12T14:30:00"
  }
}

Errors

StatusDescription
400Campaign is active — pause it first
400Invalid spin syntax in subject or body
404Sequence step not found
404Campaign not found