# POST /auto-sequences/:queue_id/bulk-enroll

**Resource:** [Auto Sequences](./auto-sequences.md)  
**MCP tool:** `bulk_enrol_in_auto_sequence`  
**Scopes:** `automations:write`  
**Write operation:** yes

Bulk-enrol contacts or opportunities in a sequence. Pass ids directly, or a filter to enrol everything matching it. At least one of contact_ids, deal_ids, contact_filter or customer_filter is required. To RESUME a series for people who already received its first steps, backdate enrollment_time so the steps they already had fall in the past and set skip_past_steps: true; only the future steps are scheduled. Example: steps at Day 0, 2, 4, 6 and the person had the first two, so set enrollment_time to now minus 2 days minus 1 hour (for a sequence with count_business_days, count back in open days). Returns enrolled, skipped, failed, past_steps_skipped and past_steps_scheduled; a warning is returned when a backdated enrolment without skip_past_steps scheduled past steps, which all send within a minute.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `queue_id` | path | string | yes |  |
| `contact_ids` | body | array | no | Contact UUIDs to enrol. |
| `deal_ids` | body | array | no | Opportunity UUIDs to enrol. |
| `contact_filter` | body | object | no | Enrol every contact matching this filter instead of listing ids. |
| `customer_filter` | body | object | no | Enrol every company matching this filter instead of listing ids. |
| `enrollment_time` | body | string | no | When enrolment takes effect (ISO 8601). Defaults to now. Each step is scheduled at this time plus its delay. A backdated time WITHOUT skip_past_steps sends every past step at once. |
| `skip_if_already_enrolled` | body | boolean | no | Skip records already in the sequence instead of re-enrolling them. |
| `skip_past_steps` | body | boolean | no | Leave out every step whose time (enrollment_time plus its delay) is already past, so only future steps are scheduled. Use with a backdated enrollment_time to resume a series part-way. Defaults to false. If every step is past, the record is skipped with skipped_reason all_steps_in_past. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/auto-sequences/:queue_id/bulk-enroll"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"contact_ids":"...","deal_ids":"...","contact_filter":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`