Got a 'How do I' question? Join 'Ask a Trainer' Monday to Friday, 11am to 4pm ET for instant help and pro tips!

API - Resource Not Found

DonnaP4507
Constant Contact Partner
0 Votes

I'm able to query Email Campaign Summary report through API using Python, however when I query an end point for Email Bounce Report, I get the "Requested Resource Not Found error". Is it something which I'm missing.
Here, is the short description of my python query for Bounce report (
report_url= "https://api.cc.email/v3/emails/reports/email_reports/" + campaign_activity_id + "/tracking/bounces"

header = {"Authorization":authorization_str, "Content-Type":"application/json", "cache-control":"no-cache"}
r = requests.get(base_url_bounce_report, headers=header)

 

authorization_str and campaign_activity_id  are variables which holds appropriate values.

Need to fill this out asap.

1 REPLY 1
Aarron_G
Moderator
0 Votes

Hello @DonnaP4507,

I see that you've also contacted us on this issue via email, which we've replied to, however I wanted to close the loop on this post as well. The endpoint path you provided includes an extra segment. The correct endpoint is:
https://api.cc.email/v3/reports/email_reports/{campaign_activity_id}/tracking/bounces

The documentation for this endpoint can be referenced here:
https://developer.constantcontact.com/api_reference/index.html#!/Email_Reporting/getBounces

 

Please let us know if you have any questions!

 

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