Campaigns
Create campaign
Create a new campaign draft.
Boosters (type: booster):
- The parent campaign (boosterSettings.campaignID) must be a regular email campaign in 'draft' or 'sent' status; 'scheduled' and 'started' parents return 409.
- Each parent campaign supports at most one booster; creating another returns 409. Delete the existing booster first to replace it.
- sendingSettings is only allowed when the parent is already sent; for a draft parent provide boosterSettings.delay instead (max 240 hours) and the booster is scheduled automatically when the parent sends.
Scopes: campaigns.write
Rate Limiting: This endpoint is rate limited to 400 requests per minute.
post/campaigns
Request
- Base URLhttps://api.omnisend.com/api
- URLhttps://api.omnisend.com/api/campaigns
- Auth
- OAuth 2Client credentialsToken URL: https://app.omnisend.com/oauth2/token scopes: campaigns.write
- or API key in header Authorization
Headers
Omnisend-Versionstring required
API version that specifies the response format and behaviour
Request body
Example request
{
"abTest": {
"settings": {
"decisionTime": {
"amount": 4,
"unit": "h"
},
"testSizePercent": 30,
"winningMetric": "openRate"
},
"variants": {
"a": {
"content": {
"email": {
"preheader": "Check it out",
"replyToEmail": "support@example.com",
"senderEmail": "hello@example.com",
"senderName": "My Store",
"subject": "Welcome!",
"templateID": "000000000000000000000001"
}
}
},
"b": {
"content": {
"email": {
"preheader": "Check it out",
"replyToEmail": "support@example.com",
"senderEmail": "hello@example.com",
"senderName": "My Store",
"subject": "Welcome!",
"templateID": "000000000000000000000001"
}
}
}
}
},
"boosterSettings": {
"campaignID": "000000000000000000000001",
"delay": {
"amount": 48,
"unit": "h"
},
"sendTo": "nonOpeners"
},
"content": {
"email": {
"preheader": "Discover what we have in store for you",
"replyToEmail": "support@example.com",
"senderEmail": "hello@example.com",
"senderName": "My Store",
"subject": "Welcome to Omnisend!",
"templateID": "000000000000000000000001"
},
"sms": {
"compliance": {
"stopKeywordText": "Reply STOP to opt out",
"unsubscribeLinkText": "Unsubscribe [[unsubscribe_link]]"
},
"imageID": "000000000000000000000001",
"isLinkShorteningEnabled": true,
"message": "Hi! Check out our deals"
}
},
"language": "en_US",
"name": "Welcome Campaign",
"sendingSettings": {
"optimizeFor": "opens",
"respectQuietHours": true,
"scheduledAt": "2026-06-15T00:00:00+03:00",
"strategy": "immediate"
},
"type": "regular"
}Response
Created campaign
Example response
{
"abTest": {
"result": {
"selectedAt": "2026-01-15T10:30:00Z",
"winnerVariantID": "000000000000000000000011"
},
"settings": {
"decisionTime": {
"amount": 4,
"unit": "h"
},
"testSizePercent": 30,
"winningMetric": "openRate"
},
"variants": {
"a": {
"content": {
"email": {
"contentID": "000000000000000000000001",
"preheader": "Check it out",
"replyToEmail": "support@example.com",
"senderEmail": "hello@example.com",
"senderName": "My Store",
"subject": "Welcome!"
}
},
"id": "000000000000000000000010"
},
"b": {
"content": {
"email": {
"contentID": "000000000000000000000001",
"preheader": "Check it out",
"replyToEmail": "support@example.com",
"senderEmail": "hello@example.com",
"senderName": "My Store",
"subject": "Welcome!"
}
},
"id": "000000000000000000000010"
}
}
},
"boosterSettings": {
"campaignID": "000000000000000000000001",
"delay": {
"amount": 48,
"unit": "h"
},
"sendTo": "nonOpeners"
},
"brandID": "000000000000000000000001",
"content": {
"email": {
"contentID": "000000000000000000000001",
"preheader": "Discover what we have in store for you",
"replyToEmail": "support@example.com",
"senderEmail": "hello@example.com",
"senderName": "My Store",
"subject": "Welcome to Omnisend!"
},
"sms": {
"compliance": {
"stopKeywordText": "Reply STOP to opt out",
"unsubscribeLinkText": "Unsubscribe [[unsubscribe_link]]"
},
"imageID": "000000000000000000000001",
"isLinkShorteningEnabled": true,
"message": "Hi! Check out our new deals",
"senderName": "My Store"
}
},
"createdAt": "2026-01-15T10:30:00Z",
"endedAt": "2026-01-15T10:30:00Z",
"id": "000000000000000000000001",
"language": "en_US",
"name": "Welcome Email Campaign",
"sendingSettings": {
"optimizeFor": "opens",
"respectQuietHours": true,
"scheduledAt": "2026-03-01T10:00:00Z",
"strategy": "immediate"
},
"startedAt": "2026-01-15T10:30:00Z",
"updatedAt": "2026-01-15T10:30:00Z",
"url": "https://app.omnisend.com/campaign/email/000000000000000000000001/settings"
}Changes
No recorded changes to this operation across all 1 revision of this API.