# Email Sequences
Email Sequences allow you to create automated series of emails that are sent to subscribers over time. This is perfect for onboarding, nurturing, and educational campaigns.
# Sequence Object
# Properties
| Property | Type | Description | 
|---|---|---|
| id | integer | Unique sequence identifier | 
| title | string | Sequence name | 
| slug | string | URL-friendly identifier | 
| status | string | Sequence status (draft, published) | 
| type | string | Always "email_sequence" | 
| design_template | string | Template design type | 
| created_at | string | Creation timestamp | 
| updated_at | string | Last update timestamp | 
# Get All Sequences
HTTP Request
GET /wp-json/fluent-crm/v2/sequences
1
# Parameters
| Parameter | Type | Default | Description | 
|---|---|---|---|
| per_page | integer | 15 | Sequences per page | 
| page | integer | 1 | Page number | 
| search | string | - | Search sequence names | 
| orderBy | string | id | Sort field | 
| order | string | DESC | Sort direction | 
| with[] | array | - | Additional data to include | 
Available with options:
- stats- Include sequence statistics
# Example Request
curl "https://yourdomain.com/wp-json/fluent-crm/v2/sequences?with[]=stats" \
  -H "Authorization: Basic API_USERNAME:API_PASSWORD"
1
2
2
# Get a Specific Sequence
HTTP Request
GET /wp-json/fluent-crm/v2/sequences/{id}
1
# Parameters
| Parameter | Type | Description | 
|---|---|---|
| with[] | array | Additional data to include | 
Available with options:
- sequence_emails- Include individual emails in sequence
- email_stats- Include email performance statistics
# Example Request
curl "https://yourdomain.com/wp-json/fluent-crm/v2/sequences/1?with[]=sequence_emails" \
  -H "Authorization: Basic API_USERNAME:API_PASSWORD"
1
2
2
# Get Sequence Subscribers
HTTP Request
GET /wp-json/fluent-crm/v2/sequences/{id}/subscribers
1
# Parameters
| Parameter | Type | Default | Description | 
|---|---|---|---|
| per_page | integer | 15 | Subscribers per page | 
| page | integer | 1 | Page number | 
# Example Request
curl "https://yourdomain.com/wp-json/fluent-crm/v2/sequences/1/subscribers" \
  -H "Authorization: Basic API_USERNAME:API_PASSWORD"
1
2
2
# Get Sequences for Subscriber
HTTP Request
GET /wp-json/fluent-crm/v2/sequences/subscriber/{subscriber_id}/sequences
1
# Example Request
curl "https://yourdomain.com/wp-json/fluent-crm/v2/sequences/subscriber/123/sequences" \
  -H "Authorization: Basic API_USERNAME:API_PASSWORD"
1
2
2
# Duplicate a Sequence
HTTP Request
POST /wp-json/fluent-crm/v2/sequences/{id}/duplicate
1
# Example Request
curl "https://yourdomain.com/wp-json/fluent-crm/v2/sequences/1/duplicate" \
  -X POST \
  -H "Authorization: Basic API_USERNAME:API_PASSWORD"
1
2
3
2
3
# Delete a Sequence
HTTP Request
DELETE /wp-json/fluent-crm/v2/sequences/{id}
1
# Bulk Delete
HTTP Request
POST /wp-json/fluent-crm/v2/sequences/do-bulk-action
1
# Parameters
| Parameter | Type | Required | Description | 
|---|---|---|---|
| sequence_ids | array | Yes | Array of sequence IDs to delete | 
# Example Request
curl "https://yourdomain.com/wp-json/fluent-crm/v2/sequences/do-bulk-action" \
  -X POST \
  -H "Authorization: Basic API_USERNAME:API_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{
    "sequence_ids": [1, 2, 3]
  }'
1
2
3
4
5
6
7
2
3
4
5
6
7
# Sequence Email Structure
Each sequence contains multiple emails sent at different intervals:
{
  "sequence_emails": [
    {
      "id": 1,
      "parent_id": "1",
      "type": "sequence_mail", 
      "title": "Welcome to the Course",
      "email_subject": "Day 1: Getting Started",
      "delay": "0",
      "settings": {
        "timings": {
          "delay_unit": "days",
          "delay": "0"
        }
      }
    },
    {
      "id": 2,
      "parent_id": "1", 
      "type": "sequence_mail",
      "title": "Your First Lesson",
      "email_subject": "Day 3: Diving Deeper", 
      "delay": "2880",
      "settings": {
        "timings": {
          "delay_unit": "days",
          "delay": "2"
        }
      }
    }
  ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Common Sequence Types
# Welcome Series
Onboard new subscribers:
- Day 0: Welcome & Introduction
- Day 2: Getting Started Guide
- Day 5: Success Stories
- Day 7: Resources & Next Steps
# Educational Course
Deliver educational content:
- Week 1: Foundation Concepts
- Week 2: Intermediate Techniques
- Week 3: Advanced Strategies
- Week 4: Implementation & Action
# Product Launch
Build anticipation:
- Day -7: Announcement
- Day -3: Behind the Scenes
- Day 0: Launch Day
- Day +3: Success Stories
# Nurture Campaign
Build relationships:
- Week 1: Value-driven content
- Week 3: Case study
- Week 5: Social proof
- Week 7: Soft promotion
# Best Practices
# 1. Timing Strategy
- Welcome sequences: Daily for first week, then weekly
- Educational content: Weekly intervals
- Promotional sequences: Every 2-3 days
- Nurture campaigns: Bi-weekly to monthly
# 2. Content Flow
- Start with high value, low promotion
- Gradually introduce your products/services
- End with clear call-to-action
- Always provide value in each email
# 3. Personalization
Use merge tags for personalization:
- \{\{contact.first_name\}\}
- \{\{contact.company\}\}
- Custom field values
# 4. Performance Monitoring
Track key metrics:
- Open rates by email
- Click-through rates
- Unsubscribe rates
- Conversion rates
# Error Handling
# Sequence Not Found (404)
{
  "code": "rest_post_invalid_id",
  "message": "Invalid sequence ID.",
  "data": {"status": 404}
}
1
2
3
4
5
2
3
4
5
# Access Denied (403)
{
  "code": "rest_forbidden",
  "message": "Sorry, you are not allowed to access this resource.",
  "data": {"status": 403}
}
1
2
3
4
5
2
3
4
5