> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailofly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send with API

> Trigger broadcast dispatch and automate campaign workflows using our REST API.

# Send with API

In addition to launching campaigns via the dashboard, you can trigger broadcasts programmatically via the API.

## Triggering an Immediate Broadcast

```bash theme={null}
curl -X POST "https://api.mailofly.com/api/campaigns/cmp_01J8G52XYZ/send" \
  -H "Authorization: Bearer mf_live_..."
```

## Scheduling via API

Pass a future ISO-8601 timestamp in `scheduled_at`:

```bash theme={null}
curl -X POST "https://api.mailofly.com/api/campaigns" \
  -H "Authorization: Bearer mf_live_..." \
  -d '{
    "title": "Product Launch Announcement",
    "template_id": "tpl_launch",
    "segment_id": "seg_beta_users",
    "scheduled_at": "2026-10-01T09:00:00Z"
  }'
```


## Related topics

- [Send Email](/api/emails/send-email.md)
- [Send Campaign](/api/campaigns/send-campaign.md)
- [Send Batch Emails](/api/emails/send-batch-emails.md)
- [Create API key](/getting-started/api-keys.md)
- [Manage API Keys](/guides/api-keys/manage-api-keys.md)
