Enter the Share Your Success Sweepstakes 2024 For the Chance to Win Great Prizes!

400 Bad Request when calling V3 API to get Campaign

user445666
Rookie
0 Votes

One of my client getting this error when calling the V3 api to get campaign detail. Can you please let me know 'why the campaign type is not supported'?

 

GET callout:CTCT/v3/emails/6da4e95f-5c3a-4005-9c47-2f6434f83255

Code: 400

[
{
"error_key": "email.emailcampaign.retrieve.badrequest",
"error_message": "Unable to retrieve Email Campaign information because this campaign type is not supported"
}]

1 REPLY 1
Aarron_G
Moderator
0 Votes

Hello @user445666!

While that endpoint will allow you to get details for an existing Email campaign, Automated Email campaigns are not supported (Automated Series, Welcome Emails, Birthday Emails, Anniversary Emails). The Campaign ID provided is for a Welcome Email campaign.

 

Regards,


Aarron G.
API Support Engineer
Did I answer your question? If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up