Hello!
I would like to set up a campaign or template via API, and then send it to 1 individual email at a time, also through the API.
I tried to do that with /api/campaigns/create endpoint and /api/email/target, but I got an error saying that the campaign must be in a running state.
In the documentation, parts that mention running state refer to triggered campaigns, and AFAIK there is no way to create those through the API.
It seems like the only way to send an email to 1 email address through the API is to create a campaign and subscriber list with only 1 subscriber for each send like that. Do I get this right, or am I missing something?
Any help would be appreciated.
Thanks!
Page 1 / 1
Hello Priscilla! I think the issue you are running into is that the campaigns/create API endpoint is used to create blast or scheduled campaigns.
This means that you are correct in using the workaround of having a List with just the 1 test user. This will allow you to create and send the blast campaign to the one desired user.
API doc:
https://support.iterable.com/hc/en-us/articles/204780579-API-Overview-and-Sample-Payloads-#create-campaign
Reply
Create a new Iterable Plaza community account
Already have an account? Login
Login to the Iterable Plaza Community
Not a customer? Create an account
Log in to Iterable (SSO)
Iterable customers and employees login/create an accountor
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.