The Automatic Inline Seeding API helps customers automatically send messages from their campaigns to seed addresses. This document is for customers that are sending with SparkPost.
Seeding options that will apply to campaigns that match the provided rules.
10000
Number of messages seen for a campaign before seed sending starts.
Maximum: 1,000,000
Minimum: 1,000
30
Number of minutes after threshold is met over which to spread out seed messages.
Maximum: 720
(12 hours)
Minimum: 20
24
Number of hours after threshold is met until seed sending can happen again.
Maximum: 168
(7 days)
Minimum: 22
Array of Campaign IDs or prefixes that are eligible. Strings ending with an asterisk are treated as prefixes.
Maximum: 5
entries.
Array of Campaign IDs or prefixes that are NOT eligible. Strings ending with an asterisk are treated as prefixes.
Maximum: 5
entries.
GET /api/v1/inline-seeds/config
{
"results": {}
}
Returns config details for the authenticated account. Only one seed config with 5 match/exclude rules max is currently supported. One or the other of (match, exclude) may be used, not both. Auth context (from API key) provides customer and subaccount IDs.
POST /api/v1/inline-seeds/config
{
"threshold": 1000,
"duration": 20,
"reset": 24,
"match": [
"my-*"
]
}
{
"results": {
"threshold": 1000,
"duration": 20,
"reset": 24,
"match": [
"my-*"
],
"exclude": []
}
}
POST /api/v1/inline-seeds/config
{
"threshold": 1000,
"duration": 20,
"reset": 24
}
{
"errors": [
{
"message": "Either match or exclude has to be specified"
}
]
}
Create seed config for the authenticated account.
PUT /api/v1/inline-seeds/config
{
"threshold": 1000,
"duration": 20,
"reset": 24,
"match": [
"my-*"
]
}
{
"results": {
"threshold": 1000,
"duration": 20,
"reset": 24,
"match": [
"my-*"
],
"exclude": []
}
}
PUT /api/v1/inline-seeds/config
{
"threshold": 1000,
"duration": 20,
"reset": 24,
"match": [
"fred-*",
"wilma-*",
"pebbles-*",
"barney-*",
"betty-*",
"bam-bam-*"
]
}
{
"errors": [
{
"message": "Match rule limit exceeded (found 6, max is 5)"
}
]
}
PUT /api/v1/inline-seeds/config
{
"threshold": 1000,
"duration": 20,
"reset": 24,
"match": [
"fred-*",
"wilma-*"
],
"exclude": [
"barney-*",
"betty-*"
]
}
{
"errors": [
{
"message": "Incompatible rule type combination: 'match' and 'exclude' are mutually exclusive."
}
]
}
Make updates to config details for the authenticated account. Only one seed config with 5 match/exclude rules max is currently supported. Auth context (from API key) provides customer and subaccount IDs.
GET /api/v1/inline-seeds/status
{
"results": [
{
"campaign": "my_campaign",
"sending_domain": "foo.example.com",
"count": 1256,
"threshold": 1256,
"seed_start": 1620078946682,
"duration": 30
},
{
"campaign": "second_campaign",
"sending_domain": "bar.example.com",
"count": 1337,
"threshold": 5000,
"seed_start": null,
"duration": 30,
"subaccount_id": 123
}
]
}
Returns read-only list of seed-eligible campaigns that have recent activity. Intended use case is informational - checking status via API or UI. Set the X-MSYS-SUBACCOUNT header to get campaigns for a specific subaccount (set the header to 0 to get campaigns for the primary account). Do not set the X-MSYS-SUBACCOUNT header to get campaigns for the primary account and all subaccounts.
GET /api/v1/inline-seeds/status?id=my_campaign&sending_domain=foo.example.com
{
"results": {
"campaign": "my_campaign",
"sending_domain": "foo.example.com",
"count": 1256,
"threshold": 1256,
"seed_start": 1620078946682,
"duration": 30
}
}
Returns read-only campaign metadata. Auth context (from API key) provides customer and subaccount IDs.
GET /api/v1/inline-seeds/options
{
"results": {
"enabled": true
}
}
Returns Inline Seeds options.
If no subaccount ID is provided via the X-MSYS-SUBACCOUNT header this will return the primary account and all subaccount options.
If a subaccount ID is provided this will return the subaccount's options.
false
Whether Automatic Inline Seeding is enabled or not.
false
Whether Automatic Inline Seeding is enabled for all subaccounts (including the primary account). Only returned when false and fetching a specific subaccount's options.
If enabled
is false Automatic Inline Seeding is currently paused. If set back to true a campaign will resume from its previous state unless it has reached the 24 hour timeout window and been reset. This will not interrupt a campaign that has already begun seeding.
A user can turn off Automatic Inline Seeding for all subaccounts (including the primary account) by setting the account level option "inline_seeds" to false via the Account API. The Account-level option supercedes the API-level option.
PUT /api/v1/inline-seeds/options
{
"enabled": false
}
// Empty response body
Make updates to options for the authenticated account. If no subaccount ID is provided via the X-MSYS-SUBACCOUNT header this will update the primary account's options.